Advancement damage taken condition does not consider reduction from armor/potions/absorption
The bug
Advancement damage taken condition does not consider reduction from armor/potions/absorption.
How to reproduce
- Create an advancement with a "taken": "min": 1.0 condition
- Summon a zombie with either armor or the generic armor attribute
- Punch zombie
- Advancement triggers even though the zombie sustained less than 1.0 damage
Example advancement:
{
"criteria": {
"custom_test_name": {
"trigger": "minecraft:player_hurt_entity",
"conditions": {
"damage": {
"taken": {
"min": 1.0
}
}
}
}
}
}
Example command:
summon zombie ~ ~1 ~ {Attributes:[{Name:"generic.armor",Base:30.0}],NoAI:1b}
2017-08-10, 04:58 PM
2023-10-08, 01:20 PM
8
6
-