#How to set custom model data threshold through code
1 messages · Page 1 of 1 (latest)
"model": {
"type": "range_dispatch",
"property": "custom_model_data",
"fallback": {
"type": "model",
"model": "minecraft:item/flint"
},
"entries": [
{"threshold": 1, "model": {"type": "model", "model": "custom/misc/player_hologram"}},
{"threshold": 2, "model": {"type": "model", "model": "custom/misc/losers_club"}}
]
}
}```
What version of Skript are you using? Also, when was threshold added? I don't remember that one.
btw better way is item models
custom model data is old\
does it work with a give command?
and yeah you could use item models as well
doesn't really matter
btw are there fallbacks with item models
glitch smp lmao 💀, also u need to item models its better oh wait twisted said that lmaoo
Brother I don't really want to leak my stuff so I took glitch smp's txtpack
2.14.2 and ig it was added in 1.21
No it doesn't works with commands too
I mean I dont know command to obtain item with threshold
But it works with plugin tho
use 2.14.3
Will this solve my problem?
maybe
Ig nope? Cause custom model data isn't updated in new versions
its just a new way to define numerical custom model data
in terms of skript code it literally doesnt matter
I mean if it works with a plugin then it also works with commands
just check the nbt of the item you get with the plugin that works
try giving that with commands
and with skript ofc
i downgraded the texture pack version