


Description
This is a Minecraft Datapack that is compatible with version 1.21+.
It allows all players to toggle between spectator mode and survival mode.
It is especially useful for Vanilla multiplayer server, if you don't wish to op players or have any plugins installed in order to do that.
The commands are /trigger enterSpectate and /trigger exitSpectate.
You will return to your original position when you exit spectator mode. This is to avoid survival players to get to unintended places by abusing this.
How to install
Download the ToggleSpectate folder and put it inside your world datapacks folder. You might have to do a /reload to load the newly installed datapack.
- Edition: Minecraft Java
- File type: .jar
- Minecraft version listed: 1.21
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Modrinth — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — see the MC Java Mods guides for the full walkthrough.
- Downloads as ToggleSpectator.zip
- Download size: 3 KB
- Download link checked 7 Sept 2026 — working
These come from our own check of the pack file, not from the source page.