So im trying to make a player on rightclick on a certain sign, with nothing in hand open a gui. but skript says holding a hand isnt an item id. what can i replace holding a hand with?
Current code:
Current code:
Code:
options:
p: &7&l| &3&lNight&b&lPrison &7&l|
on rightclick on sign:
line 1 is "{@p}"
line 2 is "&4&lVAGT SHOP"
line 3 is "&cHer kan du"
line 4 is "&cKøbe dit gear!"
if player is holding a Hand:
if player has permission "C-Vagt", "B-Vagt" or "A-Vagt":
open chest with 3 rows named "{@p}&7 Køb" to player
wait 1 tick
format slot 2 of player with 16 cooked porkchop named "&aKøb 16 porkchop!" with lore "&2Pris: &a50" to close then run [make player execute command "vsporkchopc"]
format slot 6 of player with shiny stick named "&aKøb en knockback stick!" with lore "&2Pris: &a50" to close then run [make player execute command "vsknockbackc"]
format slot 10 of player with shiny golden helmet named "&aKøb en hjelm!" with lore "&2Pris: &a200" to close then run [make player execute command "vsironhelmetc"]
format slot 12 of player with shiny iron chestplate named "&aKøb en brystplade!" with lore "&2Pris: &a250" to close then run [make player execute command "vsironchestplatec"]
format slot 14 of player with shiny iron leggings named "&aKøb bukser!" with lore "&2Pris: &a250" to close then run [make player execute command "vsironleggingsc"]
format slot 16 of player with shiny iron boots named "&aKøb sko!" with lore "&2Pris: &a250" to close then run [make player execute command "vsironbootsc"]
format slot 20 of player with shiny iron sword named "&aKøb en sværd!" with lore "&2Pris: &a250" to close then run [make player execute command "vsironswordc"]
format slot 22 of player with 64 arrows named "&aKøb 64 pile!" with lore "&2Pris: &a125" to close then run [make player execute command "vsarrowsc"]
format slot 24 of player with shiny bow named "&aKøb en bue!" with lore "&2Pris: &a300" to close then run [make player execute command "vsbowc"]
Last edited: