mojira.dev
MC-117824

Advancement trigger player_hurt_entity is only triggered for mobs

The bug

The name of the advancement trigger player_hurt_entity suggests that it is triggered when the player damages any entity. Instead it is only triggered when the player hurts a mob.

How to reproduce

  1. Download the attached datapack

[media]
  1. and place it in the datapacks folder of your world

  2. Load the world

  3. Hit for example an armor stand or a boat
    ❌ The advancement is not made

  4. Hit for example a pig
    ✔ The advancement is made

Linked issues

Attachments

Comments 0

No comments.

marcono1234

(Unassigned)

Confirmed

Platform

Low

Advancements, Data Packs, Entities

advancement, advancement-trigger, damage, entity, hurt, player

Minecraft 1.12 Pre-Release 5, 20w07a, 1.16.1, 1.16.4, 21w11a, 1.17.1, 1.20 Pre-release 1, 1.20 Pre-release 6, 1.20.4, 24w03b

Retrieved