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

Spectator mode uses survival block and entity reach distance instead of creative

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 1.10.2, Minecraft 16w41a, Minecraft 1.11, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 17w43a, Minecraft 17w43b, Minecraft 18w06a, Minecraft 1.13.1
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed
    • Game Mode:
      Spectator
    • Category:
      (Unassigned)

      Description

      The bug

      In spectator mode you have the same block and entity reach distance as in survival or adventure mode when you try to open containers.
      I would expect it to use the reach distance of creative mode as a higher reach distance gives no gameplay advantage in spectator mode but makes interaction a little bit easier.

      How to reproduce

      1. Change your gamemode to creative
      2. Stand in the middle of a block
      3. Use the following command or just place a chest in +x direction manually
        /setblock ~1 ~ ~ chest
        
      4. Use the following command
        /tp ~-4.4 ~ ~
        
      5. Try to open the chest; it should work
      6. Switch to spectator mode and try to open the chest again
        You are unable to open the chest

      The reason

      The following is based on a decompiled version of Minecraft 1.10 using MCP 9.30.

      The method net.minecraft.client.multiplayer.PlayerControllerMP.getBlockReachDistance() returns only 4.5 if the player is in creative mode otherwise it returns 4. Additionally the method net.minecraft.client.multiplayer.PlayerControllerMP.extendedReach() is called to test if the player is in creative mode and in that case sets the entity reach distance to 6 (might not be the case anymore in 1.11+).

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              marcono1234 [Mod] Marcono1234
            • Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                CHK: