im having problems making it so people cant place it on the ground
code:
on join:
add diamond to {items::*}
add diamond sword to {items::*}
on right click:
if player is holding a chest named "lootbox":
give player random element out of {items::*}
remove 1 chest named "lootbox" from player's inventory
command /lootbox:
trigger:
give 1 chest named "lootbox" to player
code:
on join:
add diamond to {items::*}
add diamond sword to {items::*}
on right click:
if player is holding a chest named "lootbox":
give player random element out of {items::*}
remove 1 chest named "lootbox" from player's inventory
command /lootbox:
trigger:
give 1 chest named "lootbox" to player