The bug
Non-player entities will play an event unique sound effect when applying the bad, raid or trial omen effect, even if the effect has no effect on them.
Steps to reproduce
Summon a pig.
/summon minecraft:pig ~ ~ ~
Use the following command:
/effect give @e[type=!player,limit=1,distance=..5] minecraft:bad_omen 300 0 false
Notice that the event sound effect plays even if the bad omen effect does not apply to the entity.
Linked issues
Attachments
Comments 2
Thank you for your report!
After consideration, the issue is being closed as Working as Intended.
Please note, that mechanics of the game may change between updates.
Things such as graphics, sounds, world creation, biomes, redstone, villagers, and animals may not work the same in current versions.
Full Version History – Snapshot Version History – The official Minecraft feedback site
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
Can confirm.