When players ride a horse, donkey, mule, skeleton horse, zombie horse, or camel with a saddle, they assume control. Similarly, holding a carrot on a stick while riding a pig, or a warped fungus on a stick while riding a strider, grants control. However, in these instances, knockback inflicted by attacks doesn't consistently function for the controlled mob. Additionally, frogs do not consistently pull them when eating them.
Steps to test the bug
Spawn a pig and saddle it
Mount the pig
/effect give @e[type=pig,limit=1,sort=nearest,distance=..2] minecraft:slowness infinite 6 true
/effect give @e[type=pig,limit=1,sort=nearest,distance=..3] minecraft:resistance infinite 4 true
Hold a carrot on a stick in your offhand.
Toss harming potions towards the pig.
/damage @e[type=minecraft:pig,limit=1,sort=nearest] 1 minecraft:player_attack by @s
Download the provided datapack.
Spawn a frog
Similar actions can be performed on any other entity from the listed ones that players can control. Although the methods may vary slightly, you should be able to figure out how to do it yourself.
Observation: The pig inconsistently experiences being pulled by the frog or taking knockback from harming potions or the /damage command.
Expectation: The knockback should be accurately conveyed to the client, ensuring that mobs take knockback as anticipated when controlled by a player.
Attachments
Comments 2
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
Can confirm. Affects 1.20.5 pre-release 2.