Posted February 27, 201510 yr Hey everyone, I'm updating my mod at the moment and have several issues. But lets start with this one: My custom ore block gets rendered perfectly in the inventory and world - no problems here. But my custom cake gets only renderd when i place it. In the inventory its just this beautiful pink-black box. Here are my .json files (they are identically to the vanilla cake; just with different paths) blockstates { "variants": { "bites=0": { "model": "dlcmod:blockSchokoKuchen_uneaten" }, "bites=1": { "model": "dlcmod:blockSchokoKuchen_slice1" }, "bites=2": { "model": "dlcmod:blockSchokoKuchen_slice2" }, "bites=3": { "model": "dlcmod:blockSchokoKuchen_slice3" }, "bites=4": { "model": "dlcmod:blockSchokoKuchen_slice4" }, "bites=5": { "model": "dlcmod:blockSchokoKuchen_slice5" }, "bites=6": { "model": "dlcmod:blockSchokoKuchen_slice6" } } } models.block blockSchokoKuchen_slice1 - 6 (all 6 files look nearly identically) { "textures": { "particle": "dlcmod:blocks/blockSchokoKuchen_side", "bottom": "dlcmod:blocks/blockSchokoKuchen_bottom", "top": "dlcmod:blocks/blockSchokoKuchen_top", "side": "dlcmod:blocks/blockSchokoKuchen_side", "inside": "dlcmod:blocks/blockSchokoKuchen_inner" }, "elements": [ { "from": [ 7, 0, 1 ], "to": [ 15, 8, 15 ], "faces": { "down": { "uv": [ 7, 1, 15, 15 ], "texture": "#bottom", "cullface": "down" }, "up": { "uv": [ 7, 1, 15, 15 ], "texture": "#top" }, "north": { "uv": [ 1, 8, 9, 16 ], "texture": "#side" }, "south": { "uv": [ 1, 8, 9, 16 ], "texture": "#side" }, "west": { "uv": [ 1, 8, 15, 16 ], "texture": "#inside" }, "east": { "uv": [ 1, 8, 15, 16 ], "texture": "#side" } } } ] } blockSchokoKuchen_uneaten { "textures": { "particle": "dlcmod:blocks/blockSchokoKuchen_side", "bottom": "dlcmod:blocks/blockSchokoKuchen_bottom", "top": "dlcmod:blocks/blockSchokoKuchen_top", "side": "dlcmod:blocks/blockSchokoKuchen_side" }, "elements": [ { "from": [ 1, 0, 1 ], "to": [ 15, 8, 15 ], "faces": { "down": { "uv": [ 1, 1, 15, 15 ], "texture": "#bottom", "cullface": "down" }, "up": { "uv": [ 1, 1, 15, 15 ], "texture": "#top" }, "north": { "uv": [ 1, 8, 15, 16 ], "texture": "#side" }, "south": { "uv": [ 1, 8, 15, 16 ], "texture": "#side" }, "west": { "uv": [ 1, 8, 15, 16 ], "texture": "#side" }, "east": { "uv": [ 1, 8, 15, 16 ], "texture": "#side" } } } ] } models.item { "parent": "builtin/generated", "textures": { "layer0": "dlcmod:blocks/blockSchokoKuchen" }, "display": { "thirdperson": { "rotation": [ -90, 0, 0 ], "translation": [ 0, 1, -3 ], "scale": [ 0.55, 0.55, 0.55 ] }, "firstperson": { "rotation": [ 0, -135, 25 ], "translation": [ 0, 4, 2 ], "scale": [ 1.7, 1.7, 1.7 ] } } } I guarantee that all textures are available. There is also no Error code in the console. Thats how I register it: Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(blockSchokoKuchen), 0, new ModelResourceLocation("dlcmod:blockSchokoKuchen", "inventory")); As I sad, the "normal" blocks (eg my ore block) is working fine, but this is not rendered in the inventory but in the world. Hope someone can help me
February 27, 201510 yr I am not sure with this. But I think at models.item it has to be "layer0": "dlcmod:items/blockSchokoKuchen" not blocks/blockSchokuKuchen check it out, I got no other idea right now
February 27, 201510 yr Author I think at models.item it has to be "layer0": "dlcmod:items/blockSchokoKuchen" not blocks/blockSchokuKuchen Same result, nothing changed
February 27, 201510 yr I recently struggled through this myself. It is annoying that the game will show default textures without any console error or warning. Makes it difficult to debug. But the main thing I found is that you have to be very careful with the naming and cross-referencing, as well as the actual assets locations. Can you show what the actual names of all your files are, a picture of your asset folder structure, and also the code where you register the block item renderer? Check out my tutorials here: http://jabelarminecraft.blogspot.com/
February 27, 201510 yr Author I recently struggled through this myself. It is annoying that the game will show default textures without any console error or warning. Makes it difficult to debug. Thats right. I just tried a random texture name here - no error Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(blockSchokoKuchen), 0, new ModelResourceLocation("randomtexturename", "inventory")); Here is my assets list, but i'm sure its all right (was checking this several times) Never had a Block Item Renderer for my cake. I have a Renderer for my Campfire Block (which has the same and more problems btw; but thats a other story^^)
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.