Advancement player_hurt_entity do not detected Creaking
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!
2024-12-09, 07:12 PM
2024-12-09, 07:17 PM
2024-12-09, 07:17 PM
0
0
-