mojira.dev
MC-313340

Invulnerable axolotls can play dead when attacked even though they take no damage

The Bug:

Invulnerable axolotls can play dead when attacked even though they take no damage.

Axolotls play dead in response to attacks that hurt them. However, axolotls with their "Invulnerable" NBT tag set to "1b" can start playing dead from attacks that deal them no damage, therefore introducing an inconsistency.

Steps to Reproduce:

  1. Find some water and stand in it.

  2. Summon an axolotl with its "Invulnerable" NBT tag set to "1b" and low health by using the command provided below.

    /summon minecraft:axolotl ~ ~ ~ {Invulnerable:1b,Health:4.0f}
  3. Switch to survival mode and hit the axolotl several times with an empty hand.

  4. Observe if the axolotl plays dead even though it takes no damage.

Observed Behavior:

Axolotls play dead even though the attacks deal them no damage.

Expected Behavior:

Axolotls would not play dead since the attacks don't hurt them.

Attachments

Comments 1

Avoma

(Unassigned)

Unconfirmed

26.3, 26.4 Snapshot 10

Retrieved