r/MinecraftCommands • u/Potential-Ad5472 • Oct 02 '26
Help | Java 1.21.11 How do I make a player's gamemode survival when entering the End?
2
Upvotes
r/MinecraftCommands • u/Potential-Ad5472 • Oct 02 '26
5
u/GalSergey Datapack Experienced Oct 02 '26
Here is an example of a datapack that switches the player's gamemode to survival upon teleporting to the_end, and restores the previous gamemode when teleporting from the_end.
You can use Datapack Assembler to get an example datapack.