mojira.dev
MC-278365

player_hurt_entity advancement trigger doesn't trigger when trying to attack naturally spawned creakings

Advancements using the player_hurt_entity trigger do not trigger when the entity being attacked is a Creaking linked to a Creaking Heart.

This applies to a few advancements already in the game, such as "Take Aim" (reported as MC-277104) and "A Throwaway Joke" (reported as MC-277687), MC-277687 was marked as "Works as Intended" while MC-277104 remains unresolved.

How to reproduce:

To demonstrate that this issue affects any advancements using the player_hurt_entity trigger, a data pack that adds a custom one (

[media]

) has been attached to this issue.

  1. Create a world with the attached data pack.

  2. Summon a creaking with a creaking heart.

  3. Attack the creaking with your fist, a sword, a bow, or any projectile.

Expected result:

The advancements trigger accordingly and are granted to the player.

Observed result:

The advancements do not trigger at all.

Linked issues

Attachments

Comments 3

You're not hurting it, just hitting.

True, but then that would mean mobs with Resistance V wouldn't trigger the advancement as you're technically not hurting them.

Also its just inconvenient to be unable to detect when a player attacks a transient Creaking, especially when some things rely on advancements to trigger.

Thank you for your report!
After consideration, the issue is being closed as Working as Intended.

Please note, that mechanics of the game may change between updates.
Things such as graphics, sounds, world creation, biomes, redstone, villagers, and animals may not work the same in current versions.

Full Version HistorySnapshot Version HistoryThe official Minecraft feedback site

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

GoldSlimeling91

(Unassigned)

Confirmed

(Unassigned)

1.21.3, 24w46a, 1.21.4 Pre-Release 1, 1.21.4

Retrieved