A lightweight and multiplayer-safe datapack that lets players freely switch between Survival and Spectator mode using simple trigger commands—no OP required.
/trigger sms_on → switch to Spectator mode/trigger sms_off → return to Survival modeEach player is assigned a unique internal ID so their saved location and teleport marker are completely isolated from other players, ensuring smooth and reliable switching even in large multiplayer worlds.