```{
"criteria": {
"requirements": {
"trigger": "minecraft:entity_hurt_player",
"conditions": {
"damage": {
"blocked": true,
"source_entity": {
"equipment": {
"mainhand": {
"items": "#quantum:axes"
}
}
},
"type": {
"is_direct": true
}
}
}
}
},
"rewards": {
"function": "example:example"
}
}```
This advancement checks when an entity hits a player, then checks if the player blocked the hit with a shield and if the entity had an axe in its hand.
This effectively makes it detect if a player's shield was disabled by an entity holding an axe.
While testing with a piglin brute in 1.21.11, this advancement did not trigger when my shield was disabled.
While testing with a piglin brute in 1.21.1, this advancement did trigger when my shield was disabled.
example:example:
say hi
advancement revoke @s only example:shield_disable
Just to clarify, #quantum:axes is an actual item tag which contains #minecraft:axes and #minecraft:hoes.
The advancement worked on 1.21.1, which shows that it was not flawed.
When removing “blocked”:true it triggered in 1.21.11, however the purpose of it is only to trigger when I’m using a shield