im making a lifesteal plugin and it all works except for the heart item, it works when its a songle item, but when its in a stack of 2 or more, it doesnt work. how do i make it work in stacks?
thanks
on right click:
player is holding a nether star named "&c❤ Heart"
cancel event
set {_hearts} to player's max health
if {_hearts} < {@max_hearts}:
add 1 to {_hearts}
set player's max health to {_hearts}
remove 1 of player's tool from player's inventory
send "&aYou have gained an extra heart!" to player
else:
send "&cYou already have the maximum hearts!" to player
#lifesteal
1 messages · Page 1 of 1 (latest)