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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 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, 1.16.4 Pre-release 1, 1.16.4 Pre-release 2, 1.16.4 Release Candidate 1, 1.16.4, 20w46a, 20w48a, 20w51a, 21w03a, 1.16.5, 21w05a, 21w05b, 21w06a, 21w07a, 21w08b, 21w11a, 1.17 Pre-release 2, 1.17.1 Release Candidate 2, 1.17.1, 21w40a, 21w41a, 21w43a, 21w44a, 1.18 Pre-release 1, 1.18 Pre-release 4, 1.18 Pre-release 5, 1.18 Pre-release 7, 1.18 Release Candidate 3, 1.18 Release Candidate 4, 1.18, 1.18.1 Release Candidate 1, 1.18.1, 22w03a, 22w05a, 22w07a, 1.18.2, 22w11a, 22w15a, 22w18a, 1.19 Pre-release 2, 1.19 Pre-release 3, 1.19, 1.19.1 Pre-release 5, 1.19.2, 22w44a, 1.19.3, 23w03a, 23w04a, 1.19.4, 1.20.5, 1.21, 1.21.1, 24w34a
    • Confirmed
    • Structures, Village system, World generation
    • Normal
    • Gameplay

      The bug

      Villagers, zombie villagers and passive mobs inside villages 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.

      See another example in this comment.

      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.

        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_14.09.49.png
          2019-04-27_14.09.49.png
          293 kB
        4. 2019-04-27_14.07.55.png
          2019-04-27_14.07.55.png
          267 kB
        5. 2019-04-27_14.12.39.png
          2019-04-27_14.12.39.png
          330 kB
        6. 2019-04-27_14.13.06.png
          2019-04-27_14.13.06.png
          534 kB
        7. 2019-04-27_14.12.50.png
          2019-04-27_14.12.50.png
          401 kB
        8. 2019-04-27_14.08.23.png
          2019-04-27_14.08.23.png
          253 kB
        9. 2019-04-27_13.17.45.png
          2019-04-27_13.17.45.png
          319 kB
        10. 2019-05-14_10.30.52.png
          2019-05-14_10.30.52.png
          545 kB
        11. MC-146770.png
          MC-146770.png
          413 kB
        12. MC-146770.mp4
          7.88 MB
        13. MC-146770-1.png
          MC-146770-1.png
          1.33 MB
        14. 2021-11-22_19.51.43.png
          2021-11-22_19.51.43.png
          849 kB
        15. 2021-11-22_19.53.27.png
          2021-11-22_19.53.27.png
          804 kB

            Unassigned Unassigned
            Aalijah2010 Player
            Votes:
            42 Vote for this issue
            Watchers:
            21 Start watching this issue

              Created:
              Updated:
              CHK: