mojira.dev
MC-257141

Invulnerable ocelots and cats don't scare creepers

To not be confused with the generic "creepers ignore cats" reports.

How to reproduce:

  1. Summon a cat

  2. Summon a creeper

  3. Toggle the cat's invulnerability

    /data merge entity @e[type=cat,limit=1] {Invulnerable:1b}
    /data merge entity @e[type=cat,limit=1] {Invulnerable:0b}

Observed Results:

The creeper will not flee while the cat is invulnerable.

Screenshots/Videos:

In this video I also spawned a phantom, it was fleeing the invulnerable cat as expected.

https://youtu.be/sAxXtTmf6O4

Linked issues

Attachments

Comments 2

Can confirm in 1.21.9

Adding ocelots to the title since I can’t imagine Mojang would want for this behavior to differ between the two mob types.

migrated

(Unassigned)

Confirmed

Platform

Low

Commands, Mob behaviour

cat, creeper

1.19.2, 22w44a, 1.19.3, 1.19.4, 1.20 Release Candidate 1, 1.21.4

Retrieved