mojira.dev
MC-198669

Armor stands are destroyed by firework explosions

The bug

Unlike other non-living entities (items, boats, etc.), armor stands are destroyed by explosions created by fireworks. They will drop any armor and held items, but not the armor stand itself. This does not affect invisible or marker armor stands.

To reproduce

  1. Give yourself a crossbow already loaded with a firework rocket by using the command provided below.

    /give @s minecraft:crossbow{Charged:1b,ChargedProjectiles:[{id:"minecraft:firework_rocket",Count:1b,tag:{Fireworks:{Explosions:[{Flicker:1,Trail:1,Type:1}]}}}]}
  2. Place down an armor stand and shoot the firework rocket at it.

  3. Take note as to whether or not the armor stand is destroyed by the firework explosion.

Code analysis

Armor stands are the only non-mob/player entity that's classified as LivingEntity, and firework rockets damage only LivingEntities within a certain radius, as opposed to all entities (like normal explosions do). Armor stands break without dropping themselves if damaged by anything classified as explosion damage, which includes fireworks.

Linked issues

Attachments

Comments 12

I can confirm for 20w46a.

Can confirm in 20w51a.

Can confirm in 21w03a.

Can confirm in 21w05a.

2 more comments

Can confirm in 21w08b. Video attached.

Can confirm in 21w16a.

Can confirm in 1.17.

Can confirm in 1.17.1.

Can confirm in 1.18.1.

Sonicwave

(Unassigned)

Confirmed

Entities, Projectiles

1.16.2, 1.16.3 Release Candidate 1, 1.16.3, 1.16.4, 20w46a, ..., 1.19.3, 23w07a, 1.19.4, 23w14a, 1.20.1

Retrieved