TheSckwadbros999 Posted September 26, 2021 Share Posted September 26, 2021 Hello so I have my skript: command /test: open virtual chest inventory with size 3 named "test" to player format gui slot 0 of player with paper named "test" to run: if {test::%player's uuid%} >= 10: set slot 0 of clicked inventory to 1 green dye named "test" when ever I click to paper it turns into the green dye but when I close the inventory the green dye doesn't stay there how do I make it so it stays there? THANKS! Link to comment Share on other sites More sharing options...
NotKaizo Posted September 26, 2021 Share Posted September 26, 2021 Set it to a variable and check if that variable is set when they execute the command. Something like this: command /test: trigger: open virtual chest inventory with size 3 named "test" to player if {var::%player's uuid%} is not set: format gui slot 0 of player with paper named "test" to run: if {test::%player's uuid%} >= 10: format gui slot 0 of player with green dye named "test" else: format gui slot 0 of player with green dye named "test" Owner of play.hiveminez.net ⊱------------------------------⊰ Joined Minehut on 1/28/2021 (Same day I got Minecraft) [VIP] - 3/14/2021 [LEGEND] - 5/27/2021 ⊱------------------------------⊰ Discord - NotKaizo#0001 In-game name - iKaizo_ If you need any help, feel free to contact me. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now