mojira.dev
MC-193744

Blocking an arrow with a shield still counts as a damage event

I used the command: "clear @a[nbt={HurtTime:1s}]" in a command block for a survival world so that taking damage would cause my items to be deleted - a fun little challenge - but I realized as I played that when an arrow shot by a skeleton is blocked with a shield, the items are removed anyway. I'm no expert but it seems to me as if this must mean that an attack blocked with a shield still registers a damage event, which IĀ  would assume is not an intentional feature.

Linked issues

Comments 4

I can confirm that putting

clear @a[nbt={HurtTime:1s}]
clear @a[nbt={HurtTime:1s}]

into a repeating command block in 1.16.4 will clear the player's inventory even if the damage was blocked by a shield. This affects blocking melee attacks too, not just arrows. This might be related to MC-105068?

This might also be related to MC-118954? However, MC-118954 is triggered by both blocking an attack with a shield and by standing in fire while the player has fire resistance. The command in this ticket is not triggered by standing in fire while the player has fire resistance.

I discovered that this ticket is actually a duplicate of MC-166786.

Thank you for your report!
We're tracking this issue in MC-166786, 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
šŸ““ Project Summary – āœļø Feedback and Suggestions – šŸ“– Game Wiki

Ethan Botterill

(Unassigned)

Community Consensus

(Unassigned)

1.16.1, 1.16.4

Retrieved