Allows players to seamlessly switch spectate/survival modes and reset to their survival position
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
James Fenn da8cc759d7 add pack.png icon 5 months ago
datapack initial commit 5 months ago
.gitignore update format to 1.18 5 months ago
.nvmrc update format to 1.18 5 months ago
Makefile update format to 1.18 5 months ago
README.md add readme 5 months ago
pack.png add pack.png icon 5 months ago
package.json remove resourcepack target 5 months ago

README.md

This datapack defines a /trigger spectate command that allows players to switch between the Survival and Spectator gamemodes. When switching to Spectator, a marker will be created at the player's location, which the player will immediately teleport to when switching back to Survival.

This means that, while Spectator can be used for looking around and exploring, it cannot be used as a method of fast-travel. It also eliminates the possible confusion of players accidentally suffocating in walls when leaving Spectator mode in an undesirable location.

I recommend using a custom command mod, such as CustomCommands, to map /trigger spectate to something like /s.

Please note: This datapack uses the /forceload command to keep its marker entities loaded while players are in Spectator mode. This may cause performance issues on servers with many players. The datapack should automatically remove loaded chunks when they are no longer needed, but it may be helpful to confirm this with /forceload query if anything strange occurs.