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

Buried treasure can create invalid block entities when generating in the location same as a block entity

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.17.1, 23w35a, 1.20.2 Pre-release 2, 1.20.2
    • Confirmed
    • Block states
    • Important
    • Platform

      The Bug:

      Buried treasure can create invalid block entities when generating in the location same as a block entity.

      When a buried treasure chest is generated, it duplicates the block it replaces to the sides and on top if there is air. This is a problem because in some cases, this can cause spawners from mineshafts to be duplicated, however, the spawners are empty

      Steps to Reproduce:

      1. Go to a newly generated chunk, go to 9, ~, 9 (chunk coordinates).
      2. Stand on the ground and summon some air below you using the command provided below.
        /fill ~-2 ~-4 ~-2 ~2 ~4 ~2 air
      3. Fly up a few blocks, but don't change your "x" or "z" coordinate.
      4. Summon a cave spider spawner and then a buried treasure by using the commands provided below.
        /execute positioned over world_surface run setblock ~ ~ ~ minecraft:spawner{SpawnData:{entity:{id:"minecraft:cave_spider"}}}
        /place structure minecraft:buried_treasure ~ ~ ~
      5. If the chest was placed under the spawner run the command provided below.
        /execute positioned over world_surface run clone ~-2 ~-1 ~-2 ~2 ~-1 ~2 ~-2 ~-2 ~-2 replace move
      6. Take note as to whether or not buried treasure can create invalid block entities when generating in the location same as a block entity.

      Observed Behavior:

      Observe that the buried treasure chest is surrounded on top and to the sides by empty spawners.

      Expected Behavior:

      If the said block is a block entity, the game should detect this and use a fallback block instead.

        1. MC-234396.mp4
          6.53 MB
        2. MC-234396.png
          MC-234396.png
          450 kB

            Unassigned Unassigned
            Avoma [Mod] Avoma
            Votes:
            16 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated:
              CHK: