#Crate system

1 messages · Page 1 of 1 (latest)

pine totem
#

Vid by Nxrps lol i made this for zenith realm

void sable
pine totem
#

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

void sable
#

oh

pine totem
#

and to put the items again is a /clone

#

Look at the command blocks, that's all

void sable
#

how did you know their special data values?

pine totem
#

The crate system is through scripting API

pine totem
#

/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

void sable
#

Oh okay 👍

pine totem
#

Aight

random aurora
#

I should recomend to up the data value 6 to more just for preventing issues...

young fog
#

this seems more like a kit system

vivid wedge
#

rewards look to be changeable so i think he just set it to those as an example.

pine totem
#

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

vivid wedge
#

It definitely could be used as one though

#

But each kit would probably have to have an individually key

pine totem
#

XD

#

Bro this has nothing to do with kits

#

It's a crate system

#

But yes, can also be used as kit giver, you create a chest with only 1 kit and its own key

#

And is a kit giver