Hey, somehow the format inventory slot expression isnt working like before (i updated skript, skquery and skellett so i decided to put this here since its a skquery thing)
with the latest versions about a month ago i could do:
code_language.skript:
on right click on nitwit:
cancel event
name of clicked entity is "&aExchange"
wait 1 tick
open chest with 1 row named "&eCoin Exchange" to player
format slot 0 of player with black_stained_glass_pane named " " to be unstealable
set slot 1 of player's current inventory to glowing emerald named "&aBuy 1 Coin" with lore "&afor 100 Claim Blocks"
set slot 2 of player's current inventory to glowing emerald named "&aBuy 10 Coins" with lore "&afor 1000 Claim Blocks"
set slot 3 of player's current inventory to glowing emerald named "&aBuy 64 Coins" with lore "&afor 6400 Claim Blocks"
format slot 4 of player with black_stained_glass_pane named " " to be unstealable
set slot 5 of player's current inventory to grass named "&6Sell 1 Coin" with lore "&6for 100 Claim Blocks"
set slot 6 of player's current inventory to grass named "&6Sell 10 Coins" with lore "&6for 1000 Claim Blocks"
set slot 7 of player's current inventory to grass named "&6Sell 64 Coins" with lore "&6for 6400 Claim Blocks"
format slot 8 of player with black_stained_glass_pane named " " to be unstealable
but on the latest version the black glass pane wont be unstealable unless i add another tick delay, else the people could use that slot, so now this is the working skript:
code_language.skript:
on right click on nitwit:
cancel event
name of clicked entity is "&aExchange"
wait 1 tick
open chest with 1 row named "&eCoin Exchange" to player
wait 1 tick #<--This
format slot 0 of player with black_stained_glass_pane named " " to be unstealable
set slot 1 of player's current inventory to glowing emerald named "&aBuy 1 Coin" with lore "&afor 100 Claim Blocks"
set slot 2 of player's current inventory to glowing emerald named "&aBuy 10 Coins" with lore "&afor 1000 Claim Blocks"
set slot 3 of player's current inventory to glowing emerald named "&aBuy 64 Coins" with lore "&afor 6400 Claim Blocks"
format slot 4 of player with black_stained_glass_pane named " " to be unstealable
set slot 5 of player's current inventory to grass named "&6Sell 1 Coin" with lore "&6for 100 Claim Blocks"
set slot 6 of player's current inventory to grass named "&6Sell 10 Coins" with lore "&6for 1000 Claim Blocks"
set slot 7 of player's current inventory to grass named "&6Sell 64 Coins" with lore "&6for 6400 Claim Blocks"
format slot 8 of player with black_stained_glass_pane named " " to be unstealable
which is kinda annoying since i already have to have a tick delay on the right click event since the cancel event thing wont work anyways but thats not an issue thats related to any plugins....
And yes, im bothered by that tick