The right click ability doesn't work when there's attributes on the item. How do I fix this
on join:
set {%player%.debt} to 0
on right click:
if player's held item is a stick named "&4&krrrrr&4&lDebt Collector&4&l&krrrrr":
if {%player%.debt} is 0:
push player forward at speed 1.6
push player up at speed 0.2
wait 0.5 seconds
create a safe explosion of force 2 at player
kill entities in radius 4 around player
set {%player%.debt} to 1
wait 1 seconds
set {%player%.debt} to 0
else:
send "&7This is on cooldown!"
on damage of player:
if attacker is a player:
if attacker's item is a stick:
if name of attacker's item is "&4&krrrrr&4&lDebt Collector&4&l&krrrrr":
kill victim
on damage:
if victim is a player:
if victim's item is a stick:
if name of victim's item is "&4&krrrrr&4&lDebt Collector&4&l&krrrrr":
cancel event
on join:
set {%player%.debt} to 0
on right click:
if player's held item is a stick named "&4&krrrrr&4&lDebt Collector&4&l&krrrrr":
if {%player%.debt} is 0:
push player forward at speed 1.6
push player up at speed 0.2
wait 0.5 seconds
create a safe explosion of force 2 at player
kill entities in radius 4 around player
set {%player%.debt} to 1
wait 1 seconds
set {%player%.debt} to 0
else:
send "&7This is on cooldown!"
on damage of player:
if attacker is a player:
if attacker's item is a stick:
if name of attacker's item is "&4&krrrrr&4&lDebt Collector&4&l&krrrrr":
kill victim
on damage:
if victim is a player:
if victim's item is a stick:
if name of victim's item is "&4&krrrrr&4&lDebt Collector&4&l&krrrrr":
cancel event