#Commands for gamemodes depending on dimensions.

1 messages · Page 1 of 1 (latest)

haughty kayak
#

I’m trying to have it via command blocks where something like every player in the overworld be in creative but until they enter the nether which will then put them into survival mode.

So far I have gotten "execute in minecraft:nether as @e[type=player] run gamemode survival"

"execute in minecraft:overworld as @e[type=player] run gamemode creative"

hollow steppe
#

execute as @a if dimension ...

sharp heron
#

Does as suffice here? Because it does not affect execution location, I would expect at or positioned to be required somewhere in the execute chain.

formal pecan
spiral pulsar
#

You could also detect when player change dimension with advancement to set their gamemode accordingly