#my textures isn't displaying, help pls

33 messages · Page 1 of 1 (latest)

dense wadi
#

I have this code and the problem that it doesn't show `layer0` but it show `2` texutre, how do I make it display `layer0` with `2`?

clear bayBOT
#
Welcome to the help forum!

Please make sure to read #1029373817119838218 as it may answer your question!

Once your question has been resolved, please mark the post as closed by using the </close:1163944441741049897> command.

rough narwhal
dense wadi
#

ah

#

do I need to create an element for that?

#

this display the layer

{
    "credit": "Made with Blockbench",
    "texture_size": [32, 32],
    "textures": {
        "layer0": "heart_model:item/heart"
    }
}
#

but when i added the texture (the other layer) it makes it not display

#

what should I do in this case?

rough narwhal
dense wadi
#

huh, it works fine though. in minecraft

rough narwhal
#

If you are thinking of extruded texture models, those reference a parent model (item/generated etc.), which internally tells the game to generate the model from the layer texture(s), which completely overwrites any elements you would have specified in the first place.

rough narwhal
#

if you put that in a resource pack in models/item and name it stick.json then ingame the stick will be completely invisible

dense wadi
#

i put iron_nugget.json in assets\minecraft\models\item

{
  "parent": "minecraft:item/generated",
  "textures": {
    "layer0": "minecraft:item/iron_nugget"
  },
  "overrides": [
    { "predicate": { "custom_model_data": 1 }, "model": "heart_model:item/heart" }
  ]
}

and heart.json in assets\heart_model\models\item and it shows the texture

{
    "credit": "Made with Blockbench",
    "texture_size": [32, 32],
    "textures": {
        "layer0": "heart_model:item/heart"
    }
}
#

i'm sorry i'm bad at this

rough narwhal
#

hmm, that would be weird, if it would work like that 🤔 (though I'd need to test it myself to see if I can reproduce that)
Cause overrides are meant to be just "load that model instead" not "import the data from that model into this model"

#

Anyways, in regards to your original problem:
You can't mix generated/extruded texture models with custom models (in one model). It's one or the other.

rough narwhal
#

yup, invisible for me

#

blaze_rod.json:

{
    "parent": "minecraft:item/generated",
    "textures": {
        "layer0": "item/blaze_rod"
    },
    "overrides": [
        { "predicate": { "custom_model_data": 1 }, "model": "item/test" }
    ]    
}```
test.json:
```json
{
    "textures": {
        "layer0": "item/stick"
    }
}```
#

so no idea what you are using/doing for that to show up as anything but invisible

dense wadi
rough narwhal
rough narwhal
dense wadi
#

ah my bad

dense wadi
#

so it let me either use the heart texture, or the other texture

rough narwhal
#

Anyways, in regards to your original problem:
You can't mix generated/extruded texture models with custom models (in one model). It's one or the other.

dense wadi
#

what is the solution to fix that?

rough narwhal
#

There is no "fix" cause that's just not a thing
You could make Blockbench add an extruded version of the texture with cubes via File > Import > Extruded Image in your custom model.

dense wadi
#

omg i didn't know that exist

#

i thought i gotta make the model myself, by cubes and stuff

rough narwhal
#

well, usually the "let the game generate it" method is easier and more performant
but for more "complex" stuff you can do that if it's needed

dense wadi
#

ayy it works!