Skip to content

Instantly share code, notes, and snippets.

@Dinnerbone
Created May 28, 2013 13:38
Show Gist options
  • Star 24 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Dinnerbone/5662824 to your computer and use it in GitHub Desktop.
Save Dinnerbone/5662824 to your computer and use it in GitHub Desktop.
As an essential step towards the Minecraft modding API, and also for sanity's sake in our own code, we're removing Texture Packs and replacing them with a new Resource Pack system. Ultimately, every mod/plugin will be its own resource pack, vanilla will be a resource pack by itself, and users will be able to apply multiple resource packs at once…
{
"//comment": "All metainfo files will be ORIGINAL_FILE.mcmeta. For example, textures/blocks/portal.png.mcmeta. The format is, of course, JSON.",
"animation": {
"//comment": "This block will be required for animated textures. It can be an empty block, but it will be needed to detect an animation.",
"frames": [
1,
{"index": 2, "time": 4},
3,
4
],
"frametime": 2,
"width": 2,
"height": 5
},
"texture": {
"//comment": "This block can go on any texture and it'll control how that is rendered out. Not yet implemented as of time of writing.",
"blur": true,
"clamp": false
},
"font": {
"//comment": "Font files will have all their data serialized out so that we don't break the font trying to figure everything out ourselves. Not yet implemented as of time of writing.",
"characters": {
"default": {
"spacing": 0.1,
"left": 0.2,
"width": 0.3
},
"0": {
"spacing": 0.2,
"left": 0.3
},
"1": {
"spacing": 0.3,
"width": 0.3
},
"2": {
"spacing": 0.5,
"left": 0.1,
"width": 0.2
}
}
},
"pack": {
"//comment": "This will be in your pack.png.mcmeta. It replaces pack.txt, and will contain more info in the future. Not yet implemented as of time of writing.",
"description": "hello world!",
"pack_format": 1
},
"//short_term_todo": "Sound registration, language registration"
}
@Ninja-Ace202
Copy link

I can't begin to explain how pumped I am for the mod api and being able to have simple methods for players to connect to things like a tekkit server without conplicating the lives of average players.

WHOOOOOOOO!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment