Please note that I'm just scratching the surface of the code of Minecraft. I have some experience coding multiplayer plug-ins and I've recently started learning the code from Minecraft.
So I'm trying to make a block in Minecraft to try to understand things a bit better. I'm not trying to make a mod or something for tohers to use. This is for me.
I want to make a new ore called Bronze.
This ore would:
Be similar to iron ore (when harvested, it drops the ore block, which is then smelted into ingots)
If I keep learning I would probably make tools based off it and armor
I'm not focused on coding it into the world generation code such that it spawns in the ground. I'm just focused on making the block.
For making the texture of the block. I have GIMP and can make a texture. It would be great if someone were to tell me how to associate a texture with the new block.
In 1.8, every block needs to have a BlockStates file (that describes which model to use for each variant of the block) and a Model file (that describes how to render each model).
You can read more about these files here or here. You can also look at Minecraft's BlockStates and Model files in the assets/minecraft/blockstates and assets/minecraft/models/block directories of the Forge JAR.
For a simple block with a single texture, the JSON isn't too complex. For example, these are the BlockStates and Model files for Iron Ore:
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
You say those directories in the Forge JAR. I'm not using Forge to make this. I'm just using MCP. Does that even matter?
They're Minecraft's files rather than Forge's, so they'll probably be in that directory in your decompiled workspace instead of in a JAR (I'm not very familiar with MCP).
I'd assume that the BlockSates and Models are the same (or at least very similar) even without Forge.
Rollback Post to RevisionRollBack
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
So I'm trying to make a block in Minecraft to try to understand things a bit better. I'm not trying to make a mod or something for tohers to use. This is for me.
I want to make a new ore called Bronze.
This ore would:
For making the texture of the block. I have GIMP and can make a texture. It would be great if someone were to tell me how to associate a texture with the new block.
You can read more about these files here or here. You can also look at Minecraft's BlockStates and Model files in the assets/minecraft/blockstates and assets/minecraft/models/block directories of the Forge JAR.
For a simple block with a single texture, the JSON isn't too complex. For example, these are the BlockStates and Model files for Iron Ore:
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
They're Minecraft's files rather than Forge's, so they'll probably be in that directory in your decompiled workspace instead of in a JAR (I'm not very familiar with MCP).
I'd assume that the BlockSates and Models are the same (or at least very similar) even without Forge.
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.