Can't get the lights and dye colors to work on a custom pocket computer model #2469
-
|
Making a simple custom model of the pocket computer and cannot get the lights or colors to work. Both show up as the stock white when I try to use them. I have the textures named the same in the folder so i assumed it would work, but alas I was incorrect (and unsurprised). Is there a way to get this to work? Not the end of the world if no; the custom model is sort of a joke model where the bit is that it looks like a normal item but is different on the back. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Just to double check, you've changed the model JSON file, and not just the textures? Without seeing the resource pack, I can't say for sure, but I suspect the issue here is that the model doesn't have any tint indices. To explain, the colour applied to a texture is defined by the model, not the name of the texture. In the built-in Specifically for pocket computer models, a tint index of 1 corresponds to the pocket computer's colour, and a tint index of 2 corresponds to the light's colour. |
Beta Was this translation helpful? Give feedback.
-
|
Exactly what I was looking for, thank you! I figured it was something like that, but couldn't find it for the life of me. |
Beta Was this translation helpful? Give feedback.
Just to double check, you've changed the model JSON file, and not just the textures? Without seeing the resource pack, I can't say for sure, but I suspect the issue here is that the model doesn't have any tint indices.
To explain, the colour applied to a texture is defined by the model, not the name of the texture. In the built-in
minecraft:item/generated, each layer of the texture uses a tint with the corresponding index (e.g.layer0uses tint 0). If you're using a custom model though, then this is not done automatically, and you'll need to specify thetintindexproperty on each face — see the Minecraft wiki for more info.Specifically for pocket computer models, a tint index of 1 corres…