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

Moving through portals in Spectator mode and changing game mode after moving away teleports the player through

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 24w45a, 1.21.4, 25w02a, 25w03a, 25w05a, 25w06a
    • None
    • Community Consensus
    • Collision, Player
    • Normal
    • Platform

      Moving through a nether portal, end portal or end gateway in Spectator mode and switching to a different game mode after moving out of the block acts as if the player is still inside the block and teleports them.

      How to reproduce:

      1. Execute one of the following commands:
        /setblock ~ ~ ~2 minecraft:nether_portal

        /setblock ~ ~ ~2 minecraft:end_portal

        /setblock ~ ~ ~2 minecraft:end_gateway{exit_portal:[I;0,0,0]}
      2. Switch to Spectator mode.
      3. Fly through the block you placed.
      4. Switch to Adventure, Creative or Survival mode.
        You are teleported as if you were still inside the portal/gateway.

      Expected result:

      The player would not be teleported through a portal or gateway when not inside it.

      Observed result:

      The player is teleported through a portal or gateway when not inside it by moving through it in Spectator mode and switching to another game mode.

            Unassigned Unassigned
            ManosSef [Mod] ManosSef
            Votes:
            14 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              CHK: