How can I save items in a storage like Hypixel Skyblock wardrobe?

  • 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!

EngineeredBuilds

New Member
Aug 8, 2023
7
0
1
I want to make a wardrobe system for my server like Hypixel Skyblock's for players to store their armour sets. Can anyone give me some guidance for this? I also want it to only be in the world [survival].
 
You would likely use a GUI for this kinda thing. I would look into simple GUI tutorials for setting that up the way you'd like most. As for saving armor/items in general, you can check if an item has the word(s): "chestplate, leggings or boots" then store the item itself into a variable like:

Code:
#Check if item's name contains chestplate/leggings/etc here
   set {s1::%player%} to player's held item # for 1 slot (Helmet maybe)

Then later, you can simply set a slot in a GUI to that variable and the item will be there:

Code:
set slot 1 of {_yourgui} to {s1::%player%}
Keep in mind, this will only store the item if you decide to code it like this. If you want it to save the item in the gui only to be removed later, you'll have to add code which removes the item from the player then returns the item when the player removes it from their wardrobe. I hope this helps out!