mojira.dev
MC-165109

Exploding beds and respawn anchors don't trigger the player_hurt_entity advancement criteria

The Bug

Although an unconventional weapon, beds and respawn anchors can be used to hurt and kill entities like any other weapon, but yet they've been forgotten about in the advancement code. Using a bed or respawn anchor does not trigger the advancement criteria player_hurt_entity.

How to Reproduce

I've attached a simple datapack with three advancements: One with a tick criteria telling you you've successfully downloaded the datapack and it's working. Another just with a player_hurt_entity trigger without any conditions, and lastly one that's the same except it has an is_explosion condition.

You'll find that hurting entities using exploding beds and respawn anchors doesn't even trigger the second advancement.

Linked issues

Attachments

Comments 2

Confirmed, mobs don't drop experience as well

Update: Included the same problem with respawn anchors.

Paint

(Unassigned)

Confirmed

Advancements

bed-explosion, respawn_anchor

1.14.4, 19w44a, 19w45a, 19w45b, 1.15 Pre-release 1, ..., 20w20a, 20w28a, 1.16.2, 1.16.3, 1.20.2

Retrieved