Pack.mcmeta Format

1 view
Skip to first unread message

Pascale

unread,
Aug 5, 2024, 1:53:27 PM8/5/24
to licutornai
Openingthe pack.mcmeta in notepad shouldn't be an issue (it's a text file), that's what I use to open the file to edit its contents. Make sure you didn't accidentally mess up the format.

Here is what my texture packs "pack.mcmeta" contains. Copy and paste it into yours and just edit the description to your taste. Should fix any error you're having.




I am trying to create a custom texture pack for Minecraft, however, it is not working I suspect because of the mcmeta file. I am on a Mac and see that people have had trouble with smart quotes, however, I have these turned off. I am making a texture in 1.13.2. I have a mypack folder in my Library/Application Support/Minecraft/resourcepacks folder. This mypack contains the assets folder, a pack icon, and a pack.mcmeta file. I created the pack.mcmeta file by making a TextEdit file with the following code:


I then saved the TextEdit file to my mypack folder. I right clicked this file, went to Get Info, and changed the file from a .rtf file to a .mcmeta file. I clicked yes to change the file type. I then came out with my pack.mcmeta file. However, I am pretty sure that the pack.mcmeta file was created incorrectly because the icon is a file icon and not the normal terminal icon that I have seen on other people's mcmeta files.


And this right here is where you went wrong. Rich Text Format (.rtf) is not the same as the plain Text format (.txt). To convert a file to .mcmeta by changing the file extension, it must first be a .txt file in the proper format. Just changing the file extension from .rtf to .txt and then to .mcmeta isn't going to work. They're formatted very differently, so the file has to start as a genuine .txt file... preferably encoded with UTF-8 Without BOM.


Thanks for the help! That makes a lot of sense and I just heard this from someone else, however, when I made it a normal text file and switched the setting to UTF-8, it still did not become the right type of file when I changed it to .mcmeta. I ended up just pasting another pack's pack.mcmeta file into mine and I am happy with that as it works fine, except for the description is different than what I wanted. However, if anyone finds out what I could do instead of just copying and pasting other pack.mcmeta files, please let me know! Thanks for the help again!


An MCMETA file is a custom resource pack configuration file used by Minecraft (Java Edition). It contains either information Minecraft uses to load a resource pack and show it on the Select Resource Packs menu or information used to modify a Minecraft texture. MCMETA files are written using JSON.


Many Minecraft (Java Edition) players enjoy customizing the game. One of the ways players modify Minecraft is by replacing the game's default textures, items, sounds, music, and animations with their own.


To do this, players create custom resource packs that contain their modified game assets. In its top-level directory, each resource pack contains a pack.mcmeta file. This file specifies the resource pack's name, as well as what version of Minecraft (Java Edition) the pack is meant to be used with.


Resource packs may contain additional MCMETA files, which are used to modify how textures behave in the game. For example, an MCMETA file named stone.png.mcmeta may contain code used to animate or alter the stone.png texture. These MCMETA files are stored in resource pack sub-directories, alongside the textures they modify.


You can open and edit an MCMETA file in any text or source code editor. Source code editors, such as Microsoft Visual Studio Code (multiplatform), contain tools that will help you edit the JSON-format text MCMETA files contain more efficiently.


MCMETA files cannot be loaded directly in Minecraft (Java Edition). Assuming you found your MCMETA file within a Minecraft (Java Edition) resource pack, you can place the pack in Minecraft's resourcepacks directory to make the pack available on the Select Resource Packs menu.


The FileInfo.com team has independently researched the Minecraft Java Edition Resource Pack Configuration file format and Mac, Windows, and Linux apps listed on this page. Our goal is 100% accuracy and we only publish information about file types that we have verified.


For the past couple days, I have been trying to figure out why my language file, for internalisation, hasn't been loading; I think I have found the reason why, in the debug files for Minecraft I see that pack.mcmeta cannot be loaded, therefore, I assume the language file will not be found correctly causing it to not load.


Curse/Overwolf: If you are using the Curse Launcher, their configurations break Forge's log settings, fortunately there is an easier workaround than I originally thought, this works even with Curse's installation of the Minecraft launcher as long as it is not launched THROUGH Twitch:


When you have an issue with your mod the most helpful thing you can do when asking for help is to provide your code to those helping you. The most convenient way to do this is via GitHub or another source control hub.


When setting up a GitHub Repo it might seem easy to just upload everything, however this method has the potential for mistakes that could lead to trouble later on, it is recommended to use a Git client or to get comfortable with the Git command line. The following instructions will use the Git Command Line and as such they assume you already have it installed and that you have created a repository.


I use eclipse, I have done ./gradlew clean then ./gradlew build and ran the mod it output in normal Minecraft (instead of in eclipse's version of Minecraft), however, I still got this (see attached picture).

3a8082e126
Reply all
Reply to author
Forward
0 new messages