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

Entity model in spawners set to spawn projectiles (e.g. snowballs) rotates oddly depending on player viewpoint

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.18.2, 22w14a, 1.19, 1.19.4, 1.20.4
    • None
    • Confirmed
    • Rendering
    • Low
    • Platform

      Relates to MC-779, MC-189565, MC-199429, MC-195599, MC-196141, MC-249451 and MC-249686. May also relate to MC-3867, MC-87183 or MC-111339.

      The bug

      If a spawner is placed which spawns a "2D" projectile entity which rotates to face the player, the shrunken entity model found inside of the spawner will also rotate depending on the player's facing direction, but in a weird way. This is especially easy to see in Spectator.

      How to reproduce

      1. Place a spawner via the following command:
        /setblock ~ ~ ~ minecraft:spawner{SpawnData:{entity:{id:"minecraft:snowball"}}}
      2. Enter Spectator mode
      3. Enter the spawner

      Expected results

      Either the snowball would be unaffected by the player's facing direction and would merely be tilted just like all other entities in spawners, or it would always face the player directly and be unaffected by the spawner's tilt.

      Actual results

      It appears to be affected by both simultaneously, causing it to rotate weirdly depending on the player's camera angle.

      How to fix

      A cheap fix would be for either snowballs in spawners to ignore the player's camera direction or ignore the spawner's tilting of entitites.

      A preferable solution, however, may be to give projectiles custom models distinct from item models (similar to arrows, but preferably make them customizable models like blocks and items have). This way, there would be no need for the projectiles to be forced to face the player (averting MC-57861's possible resurgence) as the model would be 3D.

        1. 2022-04-13_15.21.24.png
          2022-04-13_15.21.24.png
          336 kB
        2. 2022-04-13_15.21.26.png
          2022-04-13_15.21.26.png
          233 kB
        3. 2022-04-13_15.21.27.png
          2022-04-13_15.21.27.png
          207 kB
        4. 2022-04-13_15.21.29.png
          2022-04-13_15.21.29.png
          275 kB
        5. 2022-04-13_15.21.34.png
          2022-04-13_15.21.34.png
          293 kB
        6. 2022-04-13_15.21.35.png
          2022-04-13_15.21.35.png
          277 kB
        7. 2022-04-13_15.21.36.png
          2022-04-13_15.21.36.png
          275 kB

            Unassigned Unassigned
            Awesoman3000 Connor Steppie
            Votes:
            4 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              CHK: