Not really sure what you mean by "meshed" but this is what I have with the same result.
Client Proxy:
I went to the JSON Lint thing and it said all of my JSON Files were valid. I'll go ahead and let you check them out, though.
assets.compuchests.blockstates.copperOre:
asssets.compuchests.models.block.copperOre:
assets.compuchests.models.item.copperIngot:
assets.compuchests.models.item.copperIngot:
And then I've got my textures in assets.compuchests.textures.blocks & .textures.items with the corresponding names copperOre.png and copperIngot.png.
Hopefully this info can help you help me even more than you already have.
Thanks!
I fixed that, but now I've got another problem. I'm not sure if the two are related. When I have the block or item in my inventory, they don't have the texture I assigned. However, when I place the block it has the texture... any idea what this might be? Again, let me know if you need any additional code.
I've changed a little code since I made thread, but still the problem occurs except with the ItemRenderer this time. Can you be a little bit more specific with the solution?
This is the default code I use to register stuff:
I made this to resemble how I register Blocks and items:
The ModItems code:
This is my main code:
Thanks so much, and if you need anything else just let me know.
Hi, I'm trying to get an ore to generate in the world. When I run Minecraft with my mod, it throws a "java.lang.NullPointerException" error when initializing. The error is in my world gen code at this line:
this.genCopperOre = new WorldGenMinable(ModBlocks.copperOre.getDefaultState(), 3 + random.nextInt(4));
This is the important part that the console kicks out:
This is my world gen code:
Here is the code for the block in ModBlocks:
BasicBlock is a default constructor that I plan to use for all blocks in my mod. Here is its code:
6 replies
Important Information
By using this site, you agree to our Terms of Use.