so I have this item definition
{
"model": {
"type": "minecraft:select",
"property": "minecraft:component",
"component": "minecraft:custom_data",
"cases": [
{
"when": {
"dagger": true
},
"model": {
"type": "minecraft:select",
"property": "minecraft:component",
"component": "minecraft:custom_data",
"cases": [
{
"when": {
"used": true
},
"model": {
"type": "minecraft:model",
"model": "cults:item/used_dagger"
}
}
],
"fallback": {
"type": "minecraft:model",
"model": "cults:item/dagger"
}
}
}
],
"fallback": {
"type": "minecraft:model",
"model": "minecraft:item/iron_sword"
}
}
}
that's supposed to have a different model when the sword has custom data dagger and another one when it also has used
give @s iron_sword[minecraft:custom_data={"dagger":true}] has the correct model but
give @s iron_sword[minecraft:custom_data={"dagger":true,"used":true}] just has the default