Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-200135

Wither with NoAI updates its rotation when it shouldn't

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.16.3, 20w49a, 20w51a, 21w03a, 1.16.5, 21w08b, 1.17.1, 1.21
    • Confirmed
    • (Unassigned)

      Wither with the NoAI:1b tag updates rotation if it is teleported. This update in rotation can be caused by attacking it or walking into it, which will cause the wither to look away from where you were when you punched it as soon as it is teleported. This change in rotation overrides the use of commands to change the wither's rotation.
      This bug only affects the wither's rotation. To be clear, the way I tested this was by using the following command:
      /execute as @e[type=wither] at @s run tp @s ~ ~ ~
      Using this command after attacking the wither causes the wither to face away from where the player was when they attacked the wither. What's worse is that this rotation update overrides the use of commands to change the wither's rotation for a few seconds, making it impossible to correct.

      Steps to Reproduce:

      1. Summon a No AI wither:
        /summon wither ~ ~ ~ {NoAI:1b}
        
      2. Place down a repeating command block that runs the following command:
        /execute as @e[type=wither] at @s run tp @s ~ ~ ~
        
      3. Punch the wither
        Whenever the wither is punched, it will face away from the player.

      Using the command, /execute as @e[type=wither] at @s run tp @s ~ ~ ~ ~5 ~, the wither will rotate 5 degrees clockwise until it is punched, in which case it will stop rotating when it faces away from the player for a few seconds.

      This test shows some problems map-makers may face from this:

      • Summon a No AI wither.
      • Place down a repeating command block that runs the following command: /execute as @e[type=wither] at @s run tp @s ^ ^ ^.3 ~5 ~
      • Punch the wither
        The wither will go in circles until it is punched, in which case it will fly away from the player for a few seconds before the rotation part of the command kicks in again.

      Clearly, a mob with no AI should not be updating its rotation like this, and it certainly should not be overriding rotation changes from commands. I hope this is soon fixed.

        1. After Punching the Wither.png
          After Punching the Wither.png
          286 kB
        2. After Running the Teleport.png
          After Running the Teleport.png
          299 kB
        3. Before.png
          Before.png
          260 kB
        4. MC-200135.mp4
          8.85 MB

            Unassigned Unassigned
            Eman3600 Evan Stagl
            Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              CHK: