if player is holding 1 or more

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

sdhfhsdfsdf

Member
Feb 24, 2021
4
0
1
22
Code:
on rightclick:
  if "%region at clicked block%" contains "{@region}":
    cancel event
    if clicked block is light blue stained glass:
      if player is holding tripwire hook named "{@zeus}" with lore "" and "{@keylore}":
        if inventory of player doesn't have enough space for 1 of blue shulker box:
          send "{@p}: {@fullinvmsg}" to player
          play sound "ENTITY_VILLAGER_NO" at volume 100 and pitch 1 for player
        else:
          remove 1 of tripwire hook named "{@zeus}" with lore "" and "{@keylore}" from player's inventory
          openCrate(player, "zeus")
      else:
        send "{@p}: {@denymsg}" to player
        play sound "ENTITY_VILLAGER_NO" at volume 100 and pitch 1 for player

So i have a part of my skript for crates right here and when i give myself en crate key, and i right click on the crate. it works fine but as soon as im holding 2 or more it just returns to ''you are not holding the crate key''

is their a way to ask
Code:
If player is holding 1 or more tripwire hook .....
[doublepost=1678872983,1678869729][/doublepost]I got help from someone on the discord server:
Code:
if 1 of player's tool is tripwire hook named "{@zeus}" with lore "" and "{@keylore}":
 
Status
Not open for further replies.