mojira.dev
MC-279721

Using an item with the `blocks_attacks` component to partially block attacks prevents the player hurting sound from playing

If you use an item that has the blocks_attacks component and you partially block an attack (block it but still take some damage from the attack) player hurt sounds will not be played, potentially making it harder to realize you have been hit. It will still however turn your screen and cause your player to be red momentarily like normal.

Attachments

Comments 3

We do not have enough information to reproduce this issue.

Please include the following information to help us understand your problem:

Steps to Reproduce:
1. (Explain what needs to be done for the issue to happen)
2.
3.

Observed Results:
(Briefly describe what happens)

Expected Results:
(Briefly describe what should happen)

Please also attach any needed commands, add-ons/behavior packs, data packs, resource packs, screenshots, videos, or worlds needed to help reproduce this issue.

Refer to the Bug Tracker Guidelines for more information about how to write helpful bug reports. Bug reports with insufficient information may be closed as Incomplete.

This issue is being temporarily resolved as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

Steps to reproduce:

  • use a command like /give @s minecraft:copper_sword[minecraft:blocks_attacks={damage_reductions:[{base:0,factor:0.5,horizontal_blocking_angle:90}]}] the key part being that it does not fully block damage.

  • hold right click while having a mob attack you

no player hurt sound will be made even though you have taken damage

while it is possible to set the block attack sound to player hurt, this makes it impossible to make it play the player hurt sound and a custom block sound at the same time.

Winman74

(Unassigned)

Confirmed

Platform

Normal

Data Packs, Sound

25w04a, 1.21.11, 26.1 Pre-Release 1

Retrieved