Custom Card Deck Models
This commit is contained in:
@@ -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" } }
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user