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

Villagers are spawned in floating and offset in villages upon world generation, occasionally getting stuck

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 19w12b, Minecraft 1.14, Minecraft 1.14.2, Minecraft 1.14.3 Pre-Release 2, 1.14.4, 19w35a, 19w46b, 1.15 Pre-Release 2, 1.15 Pre-release 3, 1.15 Pre-release 4, 1.15 Pre-release 5, 1.15 Pre-release 6, 1.15 Pre-release 7, 1.15, 1.15.1, 1.15.1 Pre-release 1, 1.15.2 Pre-Release 1, 1.15.2 Pre-release 2, 1.15.2, 20w06a, 20w07a, 20w08a, 20w09a, 20w10a, 20w11a, 20w13a, 20w13b, 20w15a, 20w17a, 20w18a, 20w19a, 20w20a, 20w20b, 20w21a, 1.16 Pre-release 3, 1.16 Pre-release 5, 1.16 Release Candidate 1, 1.16, 1.16.1, 20w28a, 20w30a, 1.16.2 Pre-release 1, 1.16.2 Release Candidate 1, 1.16.2 Release Candidate 2, 1.16.2, 1.16.3 Release Candidate 1, 1.16.3
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed
    • Category:
      Structures, Village system, World generation

      Description

      The bug

      Villagers are spawned into the world one block too high. This causes them to occasionally get stuck, especially since they also are shifted into the wall occasionally.

      All types of villagers are affected (unemployed, nitwits, babies, and zombie villagers). Also, all biome variants of villagers are affected.

      How to reproduce

      1. Create a world with the seed 5322602735514886292
      2. Run
        /setblock ~ ~ ~ minecraft:repeating_command_block{auto:1b,Command:"execute as @e[type=villager,nbt=!{NoAI:1b}] run data merge entity @s {NoAI:1b}"}
        
      3. Run
        /tp @s -5967 68 2598
        
      4. Look around
        You will notice that all villagers are floating inside of the air, and the villager near /tp -5986 68 2555 even is stuck inside of the wall of its house

      If you reproduce this without the command block, most villagers will be able to roam around freely, but some still are stuck in walls.

      The cause

      All villagers in the villager structure files are spawned on top of the jigsaw block instead of inside of it. Also, some villagers (especially baby villagers) spawn with their hitbox partially outside of the block they're standing in.

        Attachments

        1. 2019-03-27_10.39.24.png
          2019-03-27_10.39.24.png
          1.59 MB
        2. 2019-03-27_10.49.58.png
          2019-03-27_10.49.58.png
          410 kB
        3. 2019-04-27_13.17.45.png
          2019-04-27_13.17.45.png
          319 kB
        4. 2019-04-27_14.07.55.png
          2019-04-27_14.07.55.png
          267 kB
        5. 2019-04-27_14.08.23.png
          2019-04-27_14.08.23.png
          253 kB
        6. 2019-04-27_14.09.49.png
          2019-04-27_14.09.49.png
          293 kB
        7. 2019-04-27_14.12.39.png
          2019-04-27_14.12.39.png
          330 kB
        8. 2019-04-27_14.12.50.png
          2019-04-27_14.12.50.png
          401 kB
        9. 2019-04-27_14.13.06.png
          2019-04-27_14.13.06.png
          534 kB
        10. 2019-05-14_10.30.52.png
          2019-05-14_10.30.52.png
          545 kB

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              Aalijah2010 Player
              Votes:
              16 Vote for this issue
              Watchers:
              11 Start watching this issue

                Dates

                Created:
                Updated:
                CHK: