I'm trying to make a super smash mobs remix using item projectiles. Having trouble damaging entities accounting for what armour they have on.
Example I damage loop-entity by 2 with no armour and it deals 2 hearts of damage while I damage loop-entity by 2 with full diamond armour and does the same damage.
Example I damage loop-entity by 2 with no armour and it deals 2 hearts of damage while I damage loop-entity by 2 with full diamond armour and does the same damage.
Code:
on item projectile hit:
drawDot count 1, particle "explosionlarge", center event-location, rainbowMode false, visibleRange 32, pulseDelay 0, keepFor 1 ticks
play raw sound "random.explode" at event-location with pitch 2 volume 1.5
loop entities in radius 0.2 around event-location:
damage loop-entity by 2
stop loop