-
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
- duplicates
-
MC-129909 Players in spectator mode continue to consume foods and liquids shortly after switching game modes
- Open