mojira.dev
MC-313564

`/rotate` regression breaks mob pathfinding

Steps to reproduce:

  1. Place an always active repeating command block with the below command:

execute as @e[type=pig] at @s run rotate @s ~ 0

This command rotates all pigs constantly to face their current direction (~) but keeps them tilted straight down the horizon (0), preventing them from looking up or down.

  1. Spawn a few pigs with spawn eggs

  2. Note that the pigs' AI only allows them to move forward in a singular direction. They cannot be tempted by carrots or pushed off track.

  3. Now, carry out the same test in 26.3

  • Note that the pigs can freely roam and are tempted by carrots, but cannot look up or down.

This pre-26.3 behavior is utilized tickly by creators to prevent mobs from looking up; if a singular direction is needed, rotate @s x ~ was previously used. This regression effectively makes rotate @s x 0 and rotate @s ~ 0 nearly indistinguishable when ran tickly.

This is related to MC-313290, reported separately due to new behavior created from that issue’s resolution.

Comments 2

Since you didn’t use at @s, the context rotation depends on the direction the command block is facing, making ~ effectively a constant. Is this what you intended?

EDIT: I can confirm broken mob pathfinding even with the fixed command, so I’ll update the description and confirm.

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

CreeperMagnet_

(Unassigned)

Confirmed

26.4 Pre-Release 1

Retrieved