How to format a slot using a menu?

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

Status
Not open for further replies.

Funtime

Active Member
Apr 24, 2017
54
0
0
I'd like to create a shop where players can buy items, but if they click on something they can't afford a barrier will appear for 2 seconds named "Error!" then go back to normal.
I was wondering if this is possible, and if so, how?
 
SkQuery:

code_language.skript:
command /construct:
    trigger:
        open chest with 1 rows named "&4My first test menu" to player
        format slot 0 of player with 5 of steak named "Item 1" to close then run "say The first item was clicked! Menu Closed!"
        Wait 5 seconds
        format slot 0 of player with fire named "Close Menu" with lore "I will close this menu.||Nothing more, nothing less." to close
 
Status
Not open for further replies.