#CustomModelData for items in commands?

1 messages · Page 1 of 1 (latest)

unique sigil
#

^

tawdry otter
#

go the itemmeta and use ItemMeta::setCustomModelData

unique sigil
tawdry otter
#

what command

#

you add an argument for the data

#

just like you did for other arguments

unique sigil
#

I should then be able to specify the custommodeldata for each item, so like this: sand,dirt{CustomModelData:5},green_dye

tawdry otter
#

then you could probably just do the data in the same way

#

or like that

#

but basically just like ... sand,dirt,green_dye 5,23,1 or whatever

#

and then check if the arrays have the same length and map each model to an item

#

or you do it like you said and then use like a regex to get the components

unique sigil
tawdry otter
#

I have no idea haha

#

havent looked much into custommodeldata

#

or they have no modeldata

#

since its not custom

#

so use like 0 or -1 or whatever

#

and check for that number specifically to ignore the modeldata