mojira.dev
MC-131426

Slimes have little to no attack cooldown

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:

  1. Modify the player's knockback resistance:

    /attribute @p minecraft:generic.knockback_resistance base set 100
  2. Give the player regeneration:

    /effect give @p minecraft:regeneration infinite 255 true
  3. Summon a slime with a size large enough to attack you

    /summon minecraft:slime ~ ~ ~ {Size:3}
  4. 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.

Screenshots/Videos:

[media]

Notes:

This bug causes MC-266584 and MC-169167

Related issues

Attachments

Comments

migrated
[media][media]
migrated

Confirmed for 1.13.1.

migrated

Confirmed in 1.15.2. Gnembon explains why this occurs from 11:00 to 13:00 in this video https://youtu.be/42QvewJqKF0 Essentially slimes deal damage whenever their hitbox intersects with a player, rather than actively attacking.

migrated

It's not a bug, it's just how slimes work. Magma cubes do it too.

Avoma

Can confirm in 20w48a.

Avoma

Can confirm in 21w06a. Closely relates to MC-169167.

Avoma

Can confirm in 1.16.5 and 21w08b.

Avoma

Can confirm in 1.17.1.

syarumi

This isn't just exclusive to big slimes. Medium sized slimes and all sizes of magma cubes also have this issue. It's only noticeable from big slimes due to their hitbox.

Avoma

Can confirm in 1.19.

Avoma

Can confirm in 1.19.2.

[Mod] Jingy

Can confirm in 1.20.5 Pre-Release 1. Considering the original reporter has not been active since the creation of this issue, I'd like to request ownership of it.

Viradex

Can confirm in 24w19b. This is immediately apparent when blocking with a shield.

Brevort

As affects magma cubes. I was in snapshot 25w06a & I had a magma cube get stuck in a tunnel with me and it basically killed me before I could even react even with 2 pieces of protection armor on.

[Mod] Jingy

(Unassigned)

Confirmed

Combat, Mob behaviour

attack, slime

Minecraft 1.12.2, Minecraft 1.13-pre2, Minecraft 1.13.1, 1.15.2, 20w20b, ..., 1.17.1, 1.19, 1.19.2, 1.20.5 Pre-Release 1, 1.20.5

Retrieved