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

Interacting with entities at the edge of the world border yields unexpected behavior in certain directions and sizes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.21.1, 1.21.2 Release Candidate 1, 1.21.2
    • None
    • Confirmed
    • Entities
    • Important
    • Platform

      Hitting or interacting with entities that intersect the world border yields different results depending on in which direction they are in relation to the world border. Entities just inside the northern and western side of the world border cannot be hit, and entities just outside the southern and eastern side of the world border can be hit.

      This is likely caused by using the entity's block position to check if they are inside the world border, instead of their actual position.

      Steps to Reproduce

      1. Create a new superflat world with cheats and without structures
      2. Run /teleport @s 0 ~ 0
      3. Run /worldborder center 0.01 0.01
      4. Run /worldborder set 10
      5. Run /summon minecraft:armor_stand 3.5 -60.0 -4.5
      6. Run /summon minecraft:armor_stand 5.5 -60.0 -2.5
      7. Try hitting and/or interacting with the summoned armor stands

      Excepted behavior
      The entities that are visually inside the world border should be interactable and the entities that are visually outside the world border should not be interactable.

      Observed behavior
      The player can interact with entities that are visually outside the world border at the same time as they can't interact with entities that are visually inside the world border.

            Unassigned Unassigned
            Maartin Maartin
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              CHK: