#CustomModelData for items in commands?
1 messages · Page 1 of 1 (latest)
go the itemmeta and use ItemMeta::setCustomModelData
I know how that works, but how would it work with the command?
what command
you add an argument for the data
just like you did for other arguments
Yes but the command can receive multiple items so that the player can receive a random item. So the command would be /sc add SCRAPE (thats the particle) 5 (countdown) sand,dirt,green_dye
I should then be able to specify the custommodeldata for each item, so like this: sand,dirt{CustomModelData:5},green_dye
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
Ill give this a try, thanks. Normal items without specified custommodeldata have a custommodeldata of 1 right?