Minecraft gives you a full console command system in every version of the game. You do not need mods or third-party tools. The built-in cheat system covers everything from item spawning to world control.
This guide covers every platform and every command you need.
HOW TO ENABLE CHEATS IN MINECRAFT
PC (Java Edition):
When creating a world, toggle Allow Cheats to On under More World Options.
For existing worlds, open to LAN and enable cheats from the pause menu.
PC (Bedrock Edition):
Toggle Activate Cheats when creating a new world.
For existing worlds, go to Settings, Game, and enable Cheats.
PS5 and Xbox:
Go to Settings inside your world, then Game, then activate Cheats.
Note: Enabling cheats permanently disables achievements for that world.
ESSENTIAL COMMANDS FOR EVERY PLAYER
Change game mode:
/gamemode creative (builds without resource limits)
/gamemode survival (standard gameplay)
/gamemode spectator (fly through walls, no interaction)
Give yourself any item:
/give @s diamond 64
/give @s netherite_sword 1
Replace "diamond" with any valid item ID from the Minecraft Wiki.
Teleport to coordinates:
/tp @s 100 64 200
The three numbers are X, Y, and Z coordinates.
Use /tp @s ~ ~10 ~ to teleport 10 blocks straight up from your current position.
WEATHER AND TIME COMMANDS
/time set day (sets time to daytime)
/time set night (sets time to night)
/weather clear (clears rain and storms)
/weather thunder (triggers a thunderstorm)
/gamerule doDaylightCycle false (freezes the current time permanently)
SURVIVAL SHORTCUTS
/kill @e[type=!player] (removes all entities except players, clears lag)
/effect @s minecraft:instant_health 1 255 (instant full health)
/effect @s minecraft:saturation 99999 255 (infinite food bar)
/enchant @s sharpness 5 (applies max Sharpness to your held weapon)
/xp add @s 1000 levels (adds 1000 experience levels)
MULTIPLAYER AND SERVER COMMANDS
/op username (gives a player admin/operator status)
/ban username (bans a player from your server)
/whitelist add username (adds a player to your server whitelist)
/seed (shows your current world seed for sharing)
/difficulty hard (sets the difficulty to Hard for all players)
ITEM SPAWNING FOR RARE RESOURCES
Netherite gear without mining:
/give @s netherite_ingot 4
/give @s ancient_debris 8
End game items:
/give @s elytra 1
/give @s totem_of_undying 5
/give @s ender_dragon_spawn_egg 1
WHICH COMMANDS WORK ON CONSOLE
PS5 and Xbox support all Bedrock Edition commands listed above.
Java Edition commands do not transfer to console versions.
Console players get a command menu by pressing the chat button, same as PC.