I'm trying to select an item from a chest in a specific world in order to give it to a player so that I can bypass hardcoding a bunch of different items over and over again. I'm making a random kits server so I also don't know how to randomly select one of those items to give to a player and not just a specified slot.
command /rkit:
trigger:
set {_bootsloc} to location(9, -57, -2, world "kits_storage")
set {_boots} to item at slot 0 of chest at 9, -57, -2, in world "kits_storage"
send "%{_boots}%" to player
the command is just a placeholder and i had the {_bootsloc} variable as another way to try and get the item. I've already tried to use the same location string as i did in the top trigger but that also didn't work. Can anyone help me?
command /rkit:
trigger:
set {_bootsloc} to location(9, -57, -2, world "kits_storage")
set {_boots} to item at slot 0 of chest at 9, -57, -2, in world "kits_storage"
send "%{_boots}%" to player
the command is just a placeholder and i had the {_bootsloc} variable as another way to try and get the item. I've already tried to use the same location string as i did in the top trigger but that also didn't work. Can anyone help me?