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

Spectators can finish eating food they started eating in another gamemode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 24w03b
    • None
    • Confirmed
    • Spectator
    • Player

      If a player is eating food and mid-meal is placed into spectator mode, they will continue eating the food. Any effects of food will apply to the spectator once the food has been eaten. Most prominently, spectators will teleport due to chorus fruit or gain or lose status effects.

      This behavior is undesirable as one would expect spectators to not carry over actions into spectator mode that cannot be started into spectator mode. For example, a player turning into spectator mode would expect to stay at the same position and not succeed in teleporting.

      Steps to reproduce

      1. Set a command block to run a full repeater delay after activating on a pressure plate
      2. Set the command block to run /gamemode spectator @p[distance=..5]
      3. Start eating chorus fruit and immediately step onto the pressure plate
      4. Observe that the player continues eating the chorus fruit and teleports to another position within spectator mode

            Unassigned Unassigned
            haykam haykam
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: