Refactor music disc commands to use direct give syntax and add custom model data for various shops
Zip and Release / zip-and-release (push) Successful in 7s

This commit is contained in:
Chloe
2026-08-02 01:34:39 -04:00
parent ab56a1a865
commit e80fcde9e6
8 changed files with 68 additions and 7 deletions
+61
View File
@@ -0,0 +1,61 @@
{
"model": {
"type": "select",
"property": "custom_model_data",
"fallback": {
"type": "model",
"model": "item/music_disc_13"
},
"cases": [
{
"when": "interior_shop0",
"model": {
"type": "model",
"model": "item/interior_shop0"
}
},
{
"when": "pawn_shop1",
"model": {
"type": "model",
"model": "item/pawn_shop1"
}
},
{
"when": "food_mart2",
"model": {
"type": "model",
"model": "item/food_mart2"
}
},
{
"when": "hat_shop3",
"model": {
"type": "model",
"model": "item/hat_shop3"
}
},
{
"when": "clothing_shop4",
"model": {
"type": "model",
"model": "item/clothing_shop4"
}
},
{
"when": "jump_up5",
"model": {
"type": "model",
"model": "item/jump_up5"
}
},
{
"when": "city_under_siege6",
"model": {
"type": "model",
"model": "item/city_under_siege6"
}
}
]
}
}
@@ -1,2 +1,2 @@
#give City under siege to player
function new_music:custom_items/give {item:"minecraft:paper", model:"city_under_siege6"}
give @s minecraft:music_disc_13[minecraft:jukebox_playable="new_music:city_under_siege6",minecraft:custom_model_data={strings:["city_under_siege6"]}]
@@ -1,2 +1,2 @@
#give Clothing Shop to player
function new_music:custom_items/give {item:"minecraft:paper", model:"clothing_shop4"}
give @s minecraft:music_disc_13[minecraft:jukebox_playable="new_music:clothing_shop4",minecraft:custom_model_data={strings:["clothing_shop4"]}]
@@ -1,2 +1,2 @@
#give Food Mart to player
function new_music:custom_items/give {item:"minecraft:paper", model:"food_mart2"}
give @s minecraft:music_disc_13[minecraft:jukebox_playable="new_music:food_mart2",minecraft:custom_model_data={strings:["food_mart2"]}]
+1 -1
View File
@@ -1,2 +1,2 @@
#give Hat Shop to player
function new_music:custom_items/give {item:"minecraft:paper", model:"hat_shop3"}
give @s minecraft:music_disc_13[minecraft:jukebox_playable="new_music:hat_shop3",minecraft:custom_model_data={strings:["hat_shop3"]}]
@@ -1,2 +1,2 @@
#give Interior Shop to player
function new_music:custom_items/give {item:"minecraft:paper", model:"interior_shop0"}
give @s minecraft:music_disc_13[minecraft:jukebox_playable="new_music:interior_shop0",minecraft:custom_model_data={strings:["interior_shop0"]}]
+1 -1
View File
@@ -1,2 +1,2 @@
#give Jump Up to player
function new_music:custom_items/give {item:"minecraft:paper", model:"jump_up5"}
give @s minecraft:music_disc_13[minecraft:jukebox_playable="new_music:jump_up5",minecraft:custom_model_data={strings:["jump_up5"]}]
@@ -1,2 +1,2 @@
#give Pawn Shop to player
function new_music:custom_items/give {item:"minecraft:paper", model:"pawn_shop1"}
give @s minecraft:music_disc_13[minecraft:jukebox_playable="new_music:pawn_shop1",minecraft:custom_model_data={strings:["pawn_shop1"]}]