#my textures isn't displaying, help pls
33 messages · Page 1 of 1 (latest)
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.
It doesn't show the layer0 texture because nothing in your model has been told to use that texture
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?
this would display nothing
cause there is no model to display
huh, it works fine though. in minecraft
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.
This cannot possibly render anything.
Cause this tells the game nothing about the model.
There are no elements, there is no parent to inherit any information from, nothing.
if you put that in a resource pack in models/item and name it stick.json then ingame the stick will be completely invisible
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
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.
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
it works fine for me
yeah, cause you have that parent line here in the heart model
you didn't have that here
ah my bad
but the gasly texture even didn't show when i put that line
so it let me either use the heart texture, or the other texture
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.
what is the solution to fix that?
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.
omg i didn't know that exist
i thought i gotta make the model myself, by cubes and stuff
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
ayy it works!