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

Villagers with invalid home/job site/meeting point cause crash

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 19w11a
    • None
    • Unconfirmed

      Villagers summoned or modified to have a brain tag with positions that don't correspond to real village coordinates will cause the game to either immediately crash, or crash after the villager dies to natural means. This is due to the game being unable to locate that position as it was never registered to a village. Additionally, attempting to kill these villagers will result in an `Unexpected error` in the chat.

      Crash details: The game crashed whilst ticking entity
      Error: java.lang.IllegalStateException: POI never registered at eu

      {x=-3121, y=71, z=25}

      To Reproduce:

      /summon minecraft:villager ~ ~ ~ {Brain:{memories:{"minecraft:home":{pos:[I;1000,100,1000],dimension:"minecraft:overworld"}}}}
      This villager when spawned will cause the game to crash after natural means. This includes: dying to lava, dying to water, dying to zombies, etc., but does not include killing by punching by the player.

      /summon minecraft:villager ~ ~ ~ {Brain:{memories:{"minecraft:home":{pos:[I;1000,100,1000],dimension:"minecraft:overworld"}}}}
      This causes an immediate game crash

      /summon minecraft:villager ~ ~ ~ {Brain:{memories:{"minecraft:home":{pos:[I;1000,100,1000],dimension:"minecraft:overworld"}}}}
      This also causes an immediate game crash

            Unassigned Unassigned
            onnowhere Onnowhere
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: