#if player has enchanted tool skript not working

1 messages · Page 1 of 1 (latest)

thorn basalt
#

i have this script which works with skript but it doesnt display hello message when i do it, i removed the "if diamond sword is enchanted with sharpness 5" part and it worked, but i am trying to do it with enchants, can someone help me?

on inventory click:
if event-inventory = (metadata tag "pickaxe" of player):
if index of event-slot is 11:
if player has diamond sword:
if diamond sword is enchanted with sharpness 5:
send "hello" to player

pseudo tinsel
#

Skript has no clue what diamond sword you are referring too

#

You can either try checking in the previous statement (player has sword of sharp 5) or loop their inventory until you find the sword item and check if it has sharp 5

trail chasm
#

^
Id also recommend inline conditions