-
Bug
-
Resolution: Duplicate
-
None
-
1.21.4
-
None
-
Unconfirmed
-
(Unassigned)
When a player hit the creaking, sound and particles are applied, but the advancement player_hurt_entity is not trigger.
Creaking has Health:1f and is Invulnerable:0b. Its invulnerability is hardcodded.
There is no damage, so it sounds "ok" to not get the interraction, but this leaves 0 way to detect the interraction with this mob.
In a datapack:
# advancement test:hurt
{
"criteria": {
"player_hit_creaking": {
"trigger": "minecraft:player_hurt_entity",
"conditions": {
"entity": {
"type": "minecraft:creaking"
}
}
}
},
"rewards": {
"function": "test:hurt"
}
}
# function test:hurt advancement revoke @s only test:hurt say I hit a Creaking!
- duplicates
-
MC-278365 player_hurt_entity advancement trigger doesn't trigger when trying to attack naturally spawned creakings
- Resolved