This bug report is related to MC-227058
Since it was established that hostility between non player mobs is intended in peaceful difficulty I'm making this bug report.
If a shulker gets attacked by a snow golem or other mob, he doesn't fight back in peaceful difficulty. On any other difficulty he defends himself when attacked.
This behaviour is also inconsistent, since a piglin that gets attacked in peaceful difficulty does attack back.
Linked issues
Comments


Affects 1.17

Can confirm in 1.17.1.

Can confirm in 1.18 Pre-release 2.
Won't happen for 1.18 due to closeness to the release

Confirmed in 1.19.2
Can confirm for 1.20.2

Confirmed in 1.21.4 prerelease 1
Can confirm.