Make sure you subscribe to my channel: https://www.youtube.com/c/howtogurus/featured?sub_confirmation=1
You can download the correct file for your version from the list below the description.
This is what is in the pack.mcmeta file, it is best to edit this with Notepad++. If you use Windows Notepad instead then make sure it is saved to the ANSI encoding. You don't need to do that with Notepad++.
{
"pack": {
"description": "The default data for Minecraft",
"pack_format": 18
}
}
The file must be saved with the name of pack.mcmeta, don't put a txt at the end, the .mcmeta replaces the .txt. So normally it would be pack.txt and then you rename that to pack.mcmeta.
Change the description to whatever you want, make sure to leave the quotes. Change the pack format to match your version of Minecraft, refer to the list below.
Minecraft pack.mcmeta files, unzip to get the file:
1.20.2 pack format 18.zip
1.20-1.20.1 pack format 15.zip
1.19.4 pack format 13.zip
1.19.3 pack-format-12.zip
1.19-1.19.2 pack format 9.zip
1.18 pack format 8.zip
1.17 pack format 7.zip
1.16.2 - 1.16.5 pack format 6.zip
1.15 - 1.16 pack format 5.zip
1.13 - 1.14.4 pack format 4.zip
1.11 - 1.12.2 pack format 3.zip
1.9 - 1.10.2 pack format 2.zip
1.6.1 - 1.8.9 pack format 1.zip
Sample pack.png files, right click and download image