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 .....
Code:
if 1 of player's tool is tripwire hook named "{@zeus}" with lore "" and "{@keylore}":