Page 1 of 1

the model and texture are not visible

Posted: 04 Jun 2022, 07:52
by Mathdn
Hello, I tried to create a dead tube coral model, but the shape and texture of the model do not show up.
the 3d model supposed to replace dead tube coral is "livre_1"
I describe below the files I used with their location:

assets/minecraft/blockstates/dead_tube_coral.json :
{
"variants": {
"": [
{ "model": "custom/livre_1" },
]
}
}
assets/minecraft/models/custom/livre_1.json :
{
"__comment": [...],
"textures": {
"livre_1": "custom/blocks/livre_1"
},
"elements": [
{
[...]
}
}
]
}

the location of the texture is : assets/minecraft/textures/custom/block/livre_1

thank you in advance for your help :)

Re: the model and texture are not visible  [Solved]

Posted: 04 Jun 2022, 11:01
by HanFox
The blockstate you've posted isn't valid json.

You should verify it using a website like https://jsonlint.com/

Basically you have an extra comma where it shouldn't be.

Re: the model and texture are not visible

Posted: 04 Jun 2022, 12:01
by Mathdn
It works now, thank you :)