Add custom item models for various shops using paper as the base item
Zip and Release / zip-and-release (push) Successful in 7s

This commit is contained in:
Chloe
2026-08-01 15:11:18 -04:00
parent 40e8b059ce
commit ab56a1a865
10 changed files with 19 additions and 9 deletions
@@ -4,7 +4,7 @@
"property": "custom_model_data",
"fallback": {
"type": "model",
"model": "item/music_disc_13"
"model": "item/generated"
},
"cases": [
{
@@ -1,2 +1,2 @@
#give City under siege to player
give @s minecraft:music_disc_13[minecraft:jukebox_playable="new_music:city_under_siege6",minecraft:custom_model_data={strings:["city_under_siege6"]}]
function new_music:custom_items/give {item:"minecraft:paper", model:"city_under_siege6"}
@@ -1,2 +1,2 @@
#give Clothing Shop to player
give @s minecraft:music_disc_13[minecraft:jukebox_playable="new_music:clothing_shop4",minecraft:custom_model_data={strings:["clothing_shop4"]}]
function new_music:custom_items/give {item:"minecraft:paper", model:"clothing_shop4"}
@@ -0,0 +1,4 @@
# Generic helper for giving custom items with a custom model.
# Example usage:
# function new_music:custom_items/give {item:"minecraft:paper", model:"city_under_siege6"}
give @s $(item)[minecraft:custom_model_data={strings:["$(model)"]}]
@@ -0,0 +1,6 @@
# Generic registration helper for custom item models.
# This keeps the item namespace separate from the display model name.
# Usage: function new_music:custom_items/register {item:"minecraft:paper", model:"city_under_siege6"}
# The resource pack handles the visual model via the shared item selector.
# This function exists as a general entry point for future custom items.
@@ -1,2 +1,2 @@
#give Food Mart to player
give @s minecraft:music_disc_13[minecraft:jukebox_playable="new_music:food_mart2",minecraft:custom_model_data={strings:["food_mart2"]}]
function new_music:custom_items/give {item:"minecraft:paper", model:"food_mart2"}
+1 -1
View File
@@ -1,2 +1,2 @@
#give Hat Shop to player
give @s minecraft:music_disc_13[minecraft:jukebox_playable="new_music:hat_shop3",minecraft:custom_model_data={strings:["hat_shop3"]}]
function new_music:custom_items/give {item:"minecraft:paper", model:"hat_shop3"}
@@ -1,2 +1,2 @@
#give Interior Shop to player
give @s minecraft:music_disc_13[minecraft:jukebox_playable="new_music:interior_shop0",minecraft:custom_model_data={strings:["interior_shop0"]}]
function new_music:custom_items/give {item:"minecraft:paper", model:"interior_shop0"}
+1 -1
View File
@@ -1,2 +1,2 @@
#give Jump Up to player
give @s minecraft:music_disc_13[minecraft:jukebox_playable="new_music:jump_up5",minecraft:custom_model_data={strings:["jump_up5"]}]
function new_music:custom_items/give {item:"minecraft:paper", model:"jump_up5"}
@@ -1,2 +1,2 @@
#give Pawn Shop to player
give @s minecraft:music_disc_13[minecraft:jukebox_playable="new_music:pawn_shop1",minecraft:custom_model_data={strings:["pawn_shop1"]}]
function new_music:custom_items/give {item:"minecraft:paper", model:"pawn_shop1"}