Gamemode Command Generator
Build a /gamemode command for yourself or another player — switch between survival, creative, adventure, and spectator with the exact Java syntax.
Most of these need operator permission — run them from an op's chat, a command block, or the server console.
Looking for more Minecraft tools?
A suite of client-side generators, viewers and converters — all free, all in your browser.