the first step in creating a recource pack for Minecraft is locating the recource pack folder. To do this open your in-game minecraft menu and go to options + recource pack then press open pack folder
this is what your path should look like:
then, in that folder, right-click and hover over new, then click on folder. This is where we will be working.
inside our folder create a new text document (right-click and hover over new, then click on text document) and name it "pack". make sure the file extension is ".mcmeta" and not ".txt", or download this example for versions after 1.21.7 or
if the example pack.mcmeta was downloaded, you need to manualy add the pack format