#How to set custom model data threshold through code

1 messages · Page 1 of 1 (latest)

olive tapir
#

I have a texture pack that uses threshold and custom model data to set texture but when I use with custom model data in skript it doesn't trigger the texture on item

#
    "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"}}
        ]
    }
}```
fickle urchin
#

What version of Skript are you using? Also, when was threshold added? I don't remember that one.

rare walrus
#

custom model data is old\

feral vine
#

and yeah you could use item models as well
doesn't really matter

rare walrus
feral vine
#

don't think so

#

so custom model data might be better if the rp is optional

mild python
olive tapir
olive tapir
olive tapir
#

I mean I dont know command to obtain item with threshold

#

But it works with plugin tho

rare walrus
olive tapir
rare walrus
#

maybe

olive tapir
sterile veldt
#

in terms of skript code it literally doesnt matter

feral vine
#

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

olive tapir
#

i downgraded the texture pack version