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

The player can break / interact with blocks outside protected areas through blocks from spawn protection

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.20.1, 1.20.2 Pre-release 2
    • None
    • Confirmed
    • Networking
    • Low
    • Platform

      Another long standing issue similar to MC-265199, but this case with blocks instead of entities.

      Players can break or interact with blocks like chests, beds, or any other block outside the spawn protection area, even if there's protected blocks between them. The server doesn't check for this case and validates any interaction done client-side when server-side shouldn't be possible.

      How to reproduce

      1. Create a void world in a server with a certain spawn protection radius.
      2. Give op permissions to someone else aside from you.
      3. Place a wall of any low hardness block at the edge of spawn protection.
      4. Place a chest outside the spawn protection area, close to the wall.
      5. Move inside the protected area, get close to the wall of blocks and deop yourself.
      6. Try to interact with the chest by breaking the wall consecutively (you need to be fast).
      7. Notice how the server validates your actions.

      Expected result
      The server wouldn't let you be able to interact with the chest behind protected blocks, even if client-side is seemingly possible.

      Observed result
      The server validates the player actions in this case, making able to interact with the chest behind blocks in protected areas.

        1. 2023-09-02_21.59.25.png
          2023-09-02_21.59.25.png
          157 kB
        2. 2023-09-02_21.59.34.png
          2023-09-02_21.59.34.png
          121 kB
        3. 2023-09-02_21.59.51.png
          2023-09-02_21.59.51.png
          116 kB
        4. 2023-09-02_22.13.01.png
          2023-09-02_22.13.01.png
          162 kB
        5. 2023-09-02_22.13.05.png
          2023-09-02_22.13.05.png
          141 kB
        6. 2023-09-08_19.15.35.png
          2023-09-08_19.15.35.png
          158 kB
        7. 2023-09-08_19.16.17.png
          2023-09-08_19.16.17.png
          145 kB

            Unassigned Unassigned
            Chavamix700 syarumi
            Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              CHK: