Player holding nothing

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

Lemonboy911

Member
Oct 7, 2019
10
0
0
18
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:
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:
And when you reload the script you don't recive any error in the console?
nope. no errors in the console. the chest just doesnt open
[doublepost=1570977735,1570977308][/doublepost]
nope. no errors in the console. the chest just doesnt open
found out. its the not holding anything. it says theres not any errors. but when i make it so the player has to hold stone. the skript works
 
Status
Not open for further replies.