#Crate system
1 messages · Page 1 of 1 (latest)
How do you make them not able to take items in chest?
Commands
All items have a special data value
In this case is 6
So /clear all iron chestplate with data value 6
and same for all items in the chest
oh
how did you know their special data values?
The crate system is through scripting API
/give @s iron_chestplate 1 6
/clear @a iron_chestplate 6
/give <selector> <itemId> <amount> <datavalue>
/clear <selector> <itemId> <dataValue>
The data value is to detect the special item, if it does not have a special data value it will remove all iron chestplates, not matter if they are not from the chest
Oh okay đ
Aight
I should recomend to up the data value 6 to more just for preventing issues...
this seems more like a kit system
rewards look to be changeable so i think he just set it to those as an example.
XD it's not
You can put structure names
To give multiple items
And as you can see, the reward is in a array
This means you can put multiple rewards in one
mĂșltiple structures or structures and items
newItem function returns ItemStack btw