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

Intersecting structures can create corrupted block entities (spawner / chest)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.17 Pre-release 1
    • 1.14.4, 1.16.2, 1.16.3, 21w03a
    • None
    • Confirmed
    • World generation
    • Normal

      The bug

      When two or more structures with block entities (such as spawners or chests) intersect, it can happen that the data of the block entities becomes corrupted:

      • there is a mismatch between block and block entity (can be verified using /data get)
        E.g. the block is a chest, but the block entity is a spawner
      • block entity data is reset to default values
        E.g. spawner starts spawning pigs (the default mob)

      This also causes errors and warnings similar to the following to appear in the log:

      Failed to fetch mob spawner entity at (-1186, 17, -309)
      Block entity invalid: minecraft:chest @ fx{x=-1186, y=17, z=-309}
      

      See also videos Pig Spawner in Vanilla Survival 1.16 and Quintuple Pig Spawner Cluster in Vanilla 1.16 and explanation (Discord).

      Example seeds and coordinates

      Note: Due to world generation changes the following examples might not work anymore. In case no intersecting dungeons generate there anymore please do not claim that this issue is "fixed" if you cannot prove it.

      Last tested in 1.16.2
      Seed: 356317745171599556

      /execute in minecraft:overworld run tp @s -1186.32 18.52 -308.62 -84.90 73.35
      

      Last tested in 1.16.3
      Seed: -397443552349737100

      /execute in minecraft:overworld run tp @s 435.96 48.37 -117.43 61.20 45.60
      

      Last tested in 1.16.3
      Seed: 943861164873658153

      /execute in minecraft:overworld run tp @s -1634.34 25.55 -3616.51 143.40 47.10
      
      Quintuple pig spawner

      Last tested in 21w03a
      Seed: -2464334185163669257

      /execute in minecraft:overworld run tp @s 6105.55 59.00 18970.90 539.25 51.45
      

        1. 2020-04-30_14.18.24.png
          3.86 MB
          Aaron Atkins
        2. 2020-09-10_10.36.12.png
          627 kB
          Sam Nessim
        3. 2020-09-10_10.38.43.png
          1.13 MB
          Sam Nessim
        4. crafters.one-2023-10-16_19.54.29.png
          1014 kB
          Lark
        5. latest.log
          2 kB
          Aaron Atkins
        6. pigspawner.jpg
          438 kB
          HexedHero

            cojomax99 [Mojang] Cory Scheviak
            HexedHero HexedHero
            Votes:
            12 Vote for this issue
            Watchers:
            16 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: