Code:
{
"model": {
"type": "select",
"property": "custom_model_data",
"fallback": {
"type": "model",
"model": "item/paper"
},
"cases": [
{
"when": red,
"model": {
"type": "model",
"model": "item/red_paper"
}
}
]
}
I made custom model data in 1.21.4 and how do I get this from the script?
Code:
loop {_amount} times:
set {_item} to 1 paper named "&cRed"
set custom model data of {_item} to 1
set glint override of {_item} to true
give player {_item}
The old method A doesn't work