These commands only work if cheats are turned on in your own world settings.
SYNTAX
/gamemode <creative|survival>WHAT IT DOES
Switches your game mode. Creative gives you unlimited blocks and flying; Survival makes you gather everything and watch your hunger.
EXAMPLE
/gamemode creativeSYNTAX
/teleport <player> <x> <y> <z>WHAT IT DOES
Instantly moves you (or another player) to a set of coordinates. Great for getting home fast or escaping a sticky spot.
EXAMPLE
/teleport @s 120 70 -340SYNTAX
/time set dayWHAT IT DOES
Instantly turns the world to daytime so monsters stop spawning and you can see clearly.
EXAMPLE
/time set daySYNTAX
/time set nightWHAT IT DOES
Sets the world to night. Handy if you want to fight mobs or test your base defenses in the dark.
EXAMPLE
/time set nightSYNTAX
/weather clearWHAT IT DOES
Stops all rain, snow, and thunderstorms so the sky turns blue and calm again.
EXAMPLE
/weather clearSYNTAX
/weather rainWHAT IT DOES
Starts raining right away. Useful for testing how water behaves or growing crops faster.
EXAMPLE
/weather rainSYNTAX
/give <player> <item> [amount]WHAT IT DOES
Puts items straight into your inventory. You must use the item's code name (like minecraft:diamond).
EXAMPLE
/give @s minecraft:diamond 64SYNTAX
/xp add <player> <amount> levelsWHAT IT DOES
Adds experience levels to a player so you can enchant your gear without grinding for it.
EXAMPLE
/xp add @s 30 levelsSYNTAX
/summon <mob> [x] [y] [z]WHAT IT DOES
Spawns a mob at a location. Use the mob's code name (like minecraft:zombie) — be careful with bosses!
EXAMPLE
/summon minecraft:cow ~ ~ ~SYNTAX
/difficulty <peaceful|easy|normal|hard>WHAT IT DOES
Changes how tough the game is. Peaceful removes all hostile mobs; Hard makes monsters hit harder.
EXAMPLE
/difficulty easySYNTAX
/setblock <x> <y> <z> <block>WHAT IT DOES
Places a single block at a specific location. Handy for fixing one spot or dropping in a block you can't reach.
EXAMPLE
/setblock ~ ~1 ~ stoneSYNTAX
/fill <x1> <y1> <z1> <x2> <y2> <z2> <block>WHAT IT DOES
Fills an area with a chosen block all at once — great for quickly building floors, walls, or platforms.
EXAMPLE
/fill ~ ~ ~ ~5 ~5 ~5 stoneOnly use commands in your own singleplayer world or a world where you're the owner/admin. Using unfamiliar commands on someone else's server can cause problems.