Expected behavior
the trigger activating whenever the player hit's an entity.
Actual behavior
some entities, namely armor stands, bypass this rule
Steps to reproduce
1. summon armor stand
2. add this advancement into a datapack:
{
"criteria": {
"requirement": {
"trigger": "minecraft:player_hurt_entity",
"conditions": {
"entity": {
}
}
}
},
"rewards": {
"function": "SOME FUNCTION"
}
}
3. notice the function doesn't activate for armor stands but does for other entities with hitboxes{*}{*}
Linked issues
Attachments
Comments 4
This is expected behavior, as armor stands do not take damage at all when attacked by the player (notice how the health consistently stays 20.0):
[media]
They do however take damage from other sources, such as fire or lava. This would make sense, because if the player did do damage to armor stands, they would not consistently break at the same speed due to the lost health from previous attacks.
[media]
Thank you for your report!
We're tracking this issue in MC-117824, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.
Confirmed for 1.20-pre6.
Any invulnerable entity shows this same behavior:
Hitting this slime in survival or adventure does not advance the 'hurt entity' advancement.
I'm guessing in the case of invulnerable mobs, this makes sense, as you aren't "hurting" them.
But in the case of armor stands it is not intuitive that the first three hits which cause it to wobble don't constitute as hurting it.