I'm using iron_sword, and right now just the first dura value, so 0.00398406374, and then the default iron sword on full dura, so 0.
What I've done now, which isn't working, is
in minecraft/models/item I have iron_sword.json and iron_sword1.json
iron_sword.json looks like this
Code: Select all
{
"parent": "item/handheld",
"textures": {
"layer0": "items/iron_sword"
},
"overrides": [
{ "predicate": {"damaged": 1, "damage": 0}, "model": "item/iron_sword"},
{ "predicate": {"damaged": 0, "damage": 0}, "model": "item/iron_sword"},
{ "predicate": {"damaged": 0, "damage": 0.00398406374}, "model": "item/iron_sword1"},
}
Code: Select all
{
"__comment": "Designed by Matt Hartnett with Cubik Studio - https://cubik.studio",
"textures": {
"particle": "mesh_palette",
"texture": "mesh_palette",
"mesh_palette": "item/1hansolo"
},
"elements": [
Then the texture is saved in minecraft/textures/models/items as 1hansolo.png
in game both the default iron sword texture and the durability value one show up as the cube black/purple. I've tried a TON of stuff, moving the files around to different locations etc but none of it is working. What am I doing wrong?