Players in Spectator mode (/gamemode spectator) are intended to be completely invulnerable and unable to interact with the world. However, executing the /kill command targeting a spectator player successfully kills them, which is inconsistent with the expected behavior of Spectator mode.
Steps to reproduce:
Create a new world and enable cheats.
Switch the game mode to Spectator mode using /gamemode spectator.
Open the chat and execute the command /kill @s.
Observe that you are killed and forced to respawn, despite being in Spectator mode.
Linked issues
Attachments
Comments 2
This is intentional behavior, See MCPE-153869
Thank you for helping us improve Minecraft! We saved your files: