Custom Card Deck Models

This commit is contained in:
2024-12-12 18:26:01 +00:00
parent 4b3178ac02
commit 6861580717
5 changed files with 464 additions and 0 deletions
@@ -0,0 +1,48 @@
{
"model":
{
"type": "select",
"property": "custom_model_data",
"fallback": {
"type": "minecraft:select",
"cases": [
{
"model": {
"type": "minecraft:condition",
"on_false": {
"type": "minecraft:model",
"model": "minecraft:item/bundle"
},
"on_true": {
"type": "minecraft:composite",
"models": [
{
"type": "minecraft:model",
"model": "minecraft:item/bundle_open_back"
},
{
"type": "minecraft:bundle/selected_item"
},
{
"type": "minecraft:model",
"model": "minecraft:item/bundle_open_front"
}
]
},
"property": "minecraft:bundle/has_selected_item"
},
"when": "gui"
}
],
"fallback": {
"type": "minecraft:model",
"model": "minecraft:item/bundle"
},
"property": "minecraft:display_context"
},
"cases": [
{ "when": "deck", "model": { "type": "model", "model": "cards:item/deck" } },
{ "when": "deck_custom", "model": { "type": "model", "model": "cards:item/custom/deck" } }
]
}
}