-
Bug
-
Resolution: Unresolved
-
None
-
1.14.4, 19w44a, 19w45a, 19w45b, 1.15 Pre-release 1, 1.15 Pre-Release 2, 1.15 Pre-release 3, 1.15 Pre-release 4, 1.15, 1.15.1, 1.15.1 Pre-release 1, 1.15.2 Pre-release 2, 1.15.2, 20w06a, 20w07a, 20w09a, 20w10a, 20w11a, 20w13a, 20w14a, 20w15a, 20w16a, 20w19a, 20w20a, 20w28a, 1.16.2, 1.16.3, 1.20.2
-
Confirmed
-
Advancements
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.