Steps to Reproduce:
Create a superflat world.
/gamerule doMobSpawning false
Summon a zombie piglin and a goat.
/damage @e[type=zombie_pigman] 1 ram_attack entity @e[type=goat]
/fill ~-8 ~ ~-8 ~8 ~8 ~8 stone hollow
Summon a lot of goats and zombie piglins in the stone house.
Wait for goats knocking against zombie piglin.
Observed Results:
After step 4, the zombie piglin doesn't counterattack.
After step 7, zombie piglins counterattack.
Expected Results:
Zombie piglins should not counterattack goats like Java Edition.
Other Information:
Relates toΒ MC-227625
Attachments
Comments 7

I am able to reproduce it in 1.21.21 and Preview 1.21.30.34, however the following occurs:
Repeating steps 4 and 7 with 1 Zombified Piglin would result in no attack on the Goat. The Zombie Piglin simply ignores the goat
Repeating steps 4 and 7 with 2+ Zombified Piglins would result in an attack on the Goat. The Piglin that gets hurt does not try to initiate the attack, however the other Piglins will start attacking the Goat. The first Piglin (that got hurt) will later follow them (usually half a second later, the Piglin gets triggered to attack as well)
This might be related to MCPE-62439, MCPE-182041 and MCPE-38533
This might be related to MCPE-62439, MCPE-182041 and MCPE-38533
Thank you for your report!
After consideration, the issue is being closed as Won't Fix.
Please note that this is not the same as Working as Intended, as this bug report correctly describes behavior in the game that might not be the intended or desirable behavior, but it will not be fixed right now. Sometimes, this is because the issue reported is minor and/or impossible to change without large architectural changes to the code base.
Quick Links:
π Bug Tracker Guidelines β π¬ Community Support β π§ Mojang Support (Technical Issues) β π§ Microsoft Support (Account Issues)
π Project Summary β βοΈ Feedback and Suggestions β π Game Wiki