Item from a chest

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

evsoulx

New Member
Jan 19, 2025
5
1
3
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?
 

Attachments

  • 2025-09-02_11.12.59.png
    2025-09-02_11.12.59.png
    46.3 KB · Views: 91