Hey! i made this code and the wither drops the stuff i want to but the chestplate abilities are not working and abilities of the leggings are not working i don't know why
Code:
on death:
if victim is wither:
chance of 50%:
set {_idem} to leather tunic named "&0Wither Chestplate"
dye {_idem} black
drop {_idem} at victim's location
stop
chance of 50%:
set {_ilem} to leather leggings named "&0Wither Leggings" with lore "&f&lRight click: fly" and "&a&lLeft click: stop flying"
dye {_ilem} black
drop {_ilem} at victim's location
on damage:
if attacker's chestplate is {_idem}:
apply poison to the victim for 3 seconds
add 5 to the damage
on right click:
if player is wearing leather leggings named "&0Wither Leggings":
set player's flight mode to true
on left click:
if player is wearing leather leggings named "&0Wither Leggings":
set player's flight mode to false