mojira.dev
MC-93760

Cannot Use Layers in Block Modeling like you can with Item Modeling in Resource pack making

I was working on my resource pack, when I couldn't use layers like you could with items. Instead, I get the "Missing Texture." I have not modified the "cube.json" file, I have also not moved the 2 texture files elsewhere, they are both in fact in the textures/blocks/ folder. I have also checked that my model file is in the models/blocks folder, too. Also, this seems to be a problem with the ores, not sure if this affects every block, though. And for reference, here is my file:

---------------- Beginning of my file (this part is not in the file) ----------------
{
"parent": "block/cube",
"textures": {
"particle": "blocks/coal_ore",
"layer0": "blocks/stone",
"layer1": "blocks/coal_ore"
}
}

------------------- End of the file (this part is not in the file) -------------------

And below will be my texture files
(And on a positive note, the particles do work, too)

Also, feel free to also tell me if I ACTUALLY did do something wrong here.

Attachments

Comments 3

That's not how models work. You need to specify actual cuboids with textured faces. Layers are a hard-coded thing that only works for the item/generated model.

Oh, sorry, I didn't know that, I thought there was something wrong with the modeling, since most people hadn't update their guides on 1.9 modeling yet... Sorry about that, I'll go check that out. And just to confirm, I just have to replace "block/cube" with "item/generated"?

No. item/generated is for items held in your hands. The level renderer can't do anything with it and even if it could, you would literally just have a flat plane standing in the world rather than a full cube. Look at some of the default models or watch a tutorial on modelling to figure it out. This isn't really the place for this kind of discussion.

101ToonLink

(Unassigned)

Unconfirmed

Minecraft 15w49b

Retrieved