Solved How to give shulker boxes containing stuff?

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

    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!

Status
Not open for further replies.

AndrewKopera

Member
Mar 18, 2021
18
0
1
24
Hello.
I am making a shop with skript that sells shulker boxes with items in them. I know how to make the shop gui but I need help with giving the player a shulker that has stuff in it.
My code:
Code:
command /shoptest:
    permission: shop.test
    trigger:
        open virtual chest with size 6 named "&6&lSet reseller" to player
       format gui slot 0 of player with Shulker box named "warrior set" with lore "Shulker from PremiumCrate", "&6&lBuy price 30$", "Sell price 3$" to run:
            if player's balance is greater than 30:
                give player red shulker box named "warrior" with lore "--"
                stop
            else:
                send "You dont have enough money." to player
                stop

Thanks for the help.
 
You can set the shulker box you want to give as a variable then make in the gui on click event which gives the shulker box like this

hold the shulker box containing the stuff and type in chat "!set {shulkerbox's variable} to tool"
then in the gui code you add "give {shulkerbox's variable} to player

Make sure enable effect commands is true and allow ops to use effect commands is true in the config
 
U
You can set the shulker box you want to give as a variable then make in the gui on click event which gives the shulker box like this

hold the shulker box containing the stuff and type in chat "!set {shulkerbox's variable} to tool"
then in the gui code you add "give {shulkerbox's variable} to player

Make sure enable effect commands is true and allow ops to use effect commands is true in the config
U're a fricking legend.
Thanks
 
Status
Not open for further replies.