Slimes have no attack cooldown, resulting in the player taking numerous hits repeatedly depleting their health far quicker than other mobs with normal attack cooldowns.
Steps to Reproduce:
- Modify the player's knockback resistance:
/attribute @p minecraft:generic.knockback_resistance base set 100
- Give the player regeneration:
/effect give @p minecraft:regeneration infinite 255 true
- Summon a slime with a size large enough to attack you
/summon minecraft:slime ~ ~ ~ {Size:3}
- Walk up next to the slime
Observed Behavior:
The player is attacked in rapid succession, with no delay in between each attack.
Expected Behavior:
The player would be some invulnerability before taking damage again, like other mobs.