The Bug:
Silent illusioners play their displacing sounds when invisible and being attacked.
When illusioners have their "Silent" NBT tag set to "1b", their hurt sounds aren't played. However, their displacing sounds are still played when they're hurt while invisible, therefore introducing an inconsistency.
Steps to Reproduce:
Enable closed captions.
Summon a silent, invisible illusioner by using the command provided below.
/summon minecraft:illusioner ~ ~ ~3 {Silent:1b,NoAI:1b,active_effects:[{id:"minecraft:invisibility",duration:6000}]}Damage the illusioner.
Observe if the "Illusioner displaces" closed caption is shown.
Observed Behavior:
Silent illusioners play their displacing sounds.
Expected Behavior:
Silent illusioners would not play their displacing sounds.