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

The end portal kills mobs at spawnChunkRadius 0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 24w04a
    • 24w03a
    • None
    • Confirmed
    • Chunk loading
    • Very Important
    • Platform

      Sending mobs through the end portal in the end dimension will kill them if the chunk at the world spawnpoint is not loaded.

      This happens because the game uses LevelReader#getHeightmapPos (mojmap) here to determine the correct height to teleport the mob to. This method only samples the heightmap of a chunk if that chunk is loaded in the world - otherwise it defaults to the minimum build height, causing the mob to get teleported into the void.

      Demonstration: 2024-01-18 11-43-22 (streamable.com)

      Reproduction Steps:

      1. Create a singleplayer world or server
      2. /tp 0 100 0
      3. /setworldspawn at surface height (if its an ocean, build a platform)
      4. /execute in minecraft:the_end run tp 0 100 0
      5. /kill @e[type=minecraft:ender_dragon] (to spawn the end portal)
      6. /gamerule spawnChunkRadius 0
      7. /execute in minecraft:overworld run data get block 0 100 0 - wait until you get "That position is not loaded"
      8. Spawn a villager and move it into the end portal.
      9. Go through yourself and find out it disappeared. You can confirm that the villager fell into the void by checking your log file.

            panda4994 [Mojang] Panda
            Wesley1808 Wesley1808
            Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: