mojira.dev
MC-307687

Rabbits keep their armor after having their RabbitType modified

The bug

When a rabbit has its RabbitType set to 99 (The Killer Bunny), it gets 8.0 armor as its base armor attribute. However, when it’s set to something else, the armor is not removed. It’s kept permanently.

How to reproduce

  1. Spawn a normal rabbit

  2. Hit it with a stone shovel
    -> ✅ It dies

  3. Spawn a killer bunny: /summon rabbit ~ ~ ~ {RabbitType:99}

  4. Hit it with a stone shovel
    -> ✅ It survives due to having 8 armor points

  5. Spawn one again

  6. Modify it back to a normal rabbit: /data merge entity @n[type=rabbit] {RabbitType:0}

  7. Hit it with a stone shovel
    -> ❌ It survives even though it’s not the killer bunny

Expected behavior

Like the killer bunny’s attack damage, it’s armor should be removed when it switches variants.

Observed behavior

The armor is not removed.

Notes

This could be fixed by setting the base attribute back to 0, but a modifier would be more appropriate here, just like is already used for attack damage. Or this could just be WF since killer bunny is unsupported 🙂

Linked issues

Comments 0

No comments.

tryashtar

(Unassigned)

Confirmed

(Unassigned)

26.1.2, 26.2 Snapshot 4

Retrieved