{
"model": {
"type": "minecraft:select",
"property": "minecraft:component",
"component": "minecraft:custom_name",
"cases": [
{
"when": "redstone_sheath",
"model": {
"type": "minecraft:condition",
"on_false": { "type": "minecraft:model", "model": "minecraft:item/redstone_sheath" },
"on_true": { "type": "minecraft:model", "model": "minecraft:item/redstone_sheath_blocking" },
"property": "minecraft:using_item"
}
}
],
"fallback": {
"type": "minecraft:condition",
"on_false": {
"type": "minecraft:special",
"base": "minecraft:item/shield",
"model": { "type": "minecraft:shield" }
},
"on_true": {
"type": "minecraft:special",
"base": "minecraft:item/shield_blocking",
"model": { "type": "minecraft:shield" }
},
"property": "minecraft:using_item"
}
}
}
#I want to know if possibly I could change it from Custom Name to Item Model, and if I could: How?
1 messages · Page 1 of 1 (latest)
What
I'm still trying to figure out the shield lol sorry
I was trying to figure out if I could change it from Custom Name to Item Model, and if I could: How?
I couldn't find the vanilla shield item definition, but was able to find the Custom Name which changes models stuff
in other words; Can someone teach me how to do Custom Shields? for 1.21.5
You're getting super lost, that's not a thing
The vanilla shield item definition is in assets/minecraft/item/shield.json
You don't need to do anything to change it to item_model and certainly not from custom name. You just need to take that vanilla item definition, put it in your resource pack under your own namespace, change the name as you see fit, change the models it references, and then set that item definition as the one referenced by your item's item_model component in-game
is this it?
{
"parent": "builtin/entity",
"display": {
"thirdperson_righthand": {
"rotation": [ 0, 90, 0 ],
"translation": [ 10, 6, -4 ],
"scale": [ 1, 1, 1 ]
},
"thirdperson_lefthand": {
"rotation": [ 0, 90, 0 ],
"translation": [ 10, 6, 12 ],
"scale": [ 1, 1, 1 ]
},
"firstperson_righthand": {
"rotation": [ 0, 180, 5 ],
"translation": [ -10, 2, -10 ],
"scale": [ 1.25, 1.25, 1.25 ]
},
"firstperson_lefthand": {
"rotation": [ 0, 180, 5 ],
"translation": [ 10, 0, -10 ],
"scale": [ 1.25, 1.25, 1.25 ]
},
"gui": {
"rotation": [ 15, -25, -5 ],
"translation": [ 2, 3, 0 ],
"scale": [ 0.65, 0.65, 0.65 ]
},
"fixed": {
"rotation": [ 0, 180, 0 ],
"translation": [ -2, 4, -5],
"scale":[ 0.5, 0.5, 0.5]
},
"ground": {
"rotation": [ 0, 0, 0 ],
"translation": [ 4, 4, 2],
"scale":[ 0.25, 0.25, 0.25]
}
},
"overrides": [
{
"predicate": {
"blocking": 1
},
"model": "item/shield_blocking"
}
]
}