So, im trying to make a command that opens up for you a chest and i want it to choose a random slot and put in dirt in there, But it no work
script:
edit: when i do the command it shows me only a empty chest with 3 rows named Dirt Chest in pink which is good but i dont see any dirt
script:
Code:
command /dirtchest:
trigger:
set {_slot} to a random integer between 0 and 25
set {_dirt} to a random integer between 1 and 3
set metadata tag "DIRTchest" of player to chest inventory with 3 rows named "&dDirt Chest"
set slot {_slot} of metadata tag "DIRTchest" of player to {_dirt} dirt
open (metadata tag "DIRTchest" of player) to player