Minecraft Execute entity?

el
6

I want that if you are in gamemode 0, you go straight back to gamemode 1.

I've always tried: / execute if entity @p [type = player, gamemode = surival] run gamemode creative @p. Unfortunately nothing happens…

ca

I would make a cmd block with a clock that keeps going / gamemode creative @a

That is enough every 2 seconds

el

Yes, but it should only do that if you are in gamemode 0 and not if you are in gamemode spectator

ca

I don't know sorry

Uh nonsense

ca

Something like this in [] the brackets behind it write everything except spectator modew. I'll look again at what that is exactly

ca

[gamemode =! Spectator] that must be behind it

el

Ah, thanks a lot times🤗