Mojira Archive
MC-165508

Magma cubes still deals damage when their generic.attack_damage attribute is set to 0

The bug

Magma cubes still deals damage when their generic.attack_damage attribute is set to 0 despite MC-47091 is fixed.

How to reproduce

Summon a big Magma cube 

/summon magma_cube ~ ~1 ~ {Size:10}

now set the attribute generic.attack_damage to 0:

/execute as @e[type=magma_cube] run attribute @s minecraft:attack_damage base set 0

 The magma cube still deals damage