

Survival Freecam Data Pack
This data pack provides the ability to temporarily switch to Spectator mode and back to Survival mode using the commands "/trigger spectator" and "/trigger survival".
The functionality resembles a free camera - you can explore the world as a spectator but cannot use this for travel. For example, if your original coordinates were x:10, y:50, z:-200, then after activating spectator mode and moving to any point in the world, when returning to survival mode you will automatically teleport back to the original coordinates (10,50,-200).
This feature is particularly useful for inspecting your builds or others' creations from a bird's-eye view, as well as for diagnosing complex redstone mechanisms when you need to find the cause of a malfunction.
Important Features
The data pack works in both singleplayer and multiplayer modes, supporting all world dimensions.
On multiplayer servers, to prevent abuse (such as exploring new chunks to find structures), you can use the command "/gamerule spectatorsGenerateChunks false", which disables chunk generation for spectators. However, it's worth noting that in version 1.20.1 there is a bug that prevents reconnecting to the world/server if you are in spectator mode with chunk generation disabled.
When activating spectator mode near a wall, there is a chance of taking minor damage (half a heart) when returning to survival mode - be careful when at low health.
In rare cases, if two players simultaneously use the command to return to survival mode, an error message may appear suggesting to try again.
Development Plans
Future plans include fixing discovered bugs and adding new features as interesting ideas emerge.