Minecraft

Essential Minecraft Commands for 2026 (Full List for Players and Admins)

Updated 2026-07-07~8 min read

Commands are the heart of playing Minecraft flexibly. Whether you want to change game mode, spawn items, warp to a friend, lock time to permanent daytime, or set a server rule to keep items on death, it all takes a single line of command. But Minecraft has so many commands you cannot remember them all, and many require cheats or admin rights to use.

This article collects the most-used Minecraft commands into easy-to-scan tables, split into basic commands for regular players, a table of popular gamerules, and admin commands for server owners — plus how to enable cheats both on a single-player world and on a private server, so you can control your Minecraft world however you like.

Before Using Commands: Enable Cheats First

Most commands in Minecraft only work when "Allow Cheats" is enabled or you have admin rights on a server. If it is not enabled, typing a command just tells you that you lack permission — so you need to set this up correctly first.

On a single-player world, enable Cheats when creating a new world (in the More World Options screen), or for an existing world you can enable it temporarily by opening "Open to LAN" and choosing Allow Cheats: ON. On a private server, commands are reserved for those with OP (admin) rights, which we cover in the admin commands section.

  • Type a command by pressing the / (slash) key to open the command box, then follow it with the command name
  • Java Edition and Bedrock use similar basic commands, but some details (such as target selectors) differ slightly
  • If what you type turns red, the command syntax is wrong or cheats are not enabled
💡 On a rented server, you enable/disable these rights and settings through the control panel — no need to edit files by hand in a complicated way.

The Most-Used Basic Commands

This is the group of commands nearly every player uses, from changing game mode, spawning items, and teleporting, to controlling time and weather. Take a look at the table below with real usage examples.

CommandFunctionExample
/gamemodeChange game mode (survival/creative/adventure/spectator)/gamemode creative
/giveSpawn an item for a player/give @s diamond 64
/tp (teleport)Warp yourself or a player to a spot/another person/tp @s 100 64 -200
/time setSet time to day/night/time set day
/weatherChange the weather/weather clear
/killKill a target (quickly restart yourself)/kill @s
/xp or /experienceAdd experience/levels/xp add @s 30 levels
/effectApply/remove status effects/effect give @s speed 60 2
/setblock, /fillPlace/fill blocks over an area/fill ~ ~ ~ ~5 ~5 ~5 stone
/seedShow the current world seed/seed
💡 The symbols @s = yourself, @p = nearest player, @a = all players, @e = all entities are target selectors you can use with commands.

Popular Gamerules (Including the Keep-Items-on-Death Command)

The /gamerule command sets rules for the whole world or server — such as keeping items on death, stopping the day-night cycle, or disabling fire spread. It is the command server admins use most. The format is /gamerule <rule name> <true/false or a numeric value>.

gameruleResultValues
keepInventoryKeep all items on death instead of dropping themtrue / false
doDaylightCycleEnable/disable the day-night cycle (can freeze time)true / false
doWeatherCycleEnable/disable automatic weather changestrue / false
mobGriefingWhether mobs can destroy/change blocks (creeper explosions)true / false
doMobSpawningEnable/disable monster spawningtrue / false
doFireTickWhether fire spreads and burns continuouslytrue / false
doImmediateRespawnRespawn instantly on death without pressing a buttontrue / false
fallDamageWhether you take damage from high fallstrue / false
showDeathMessagesShow a message in chat when someone diestrue / false
randomTickSpeedSpeed of plant growth/random eventsNumber (default 3)
💡 A popular example: /gamerule keepInventory true is the command to "keep items" on death, while /gamerule doDaylightCycle false locks the world in permanent daytime.

Admin Commands for Server Management

If you open a server for friends, there is another group of commands reserved for admins (OP) — used to manage players, grant rights, ban troublemakers, and control access. These are typed in the server console or in-game by those with OP rights.

CommandFunctionExample
/opGrant admin (operator) rights to a player/op <player>
/deopRevoke admin rights/deop <player>
/whitelistManage the list of players allowed on the server/whitelist add <player>
/ban, /ban-ipBan a player or ban by IP/ban <player>
/pardonUnban a player/pardon <player>
/kickTemporarily kick a player from the server/kick <player>
/save-allSave the world immediately (before backup/restart)/save-all
/stopShut the server down safely/stop
/difficultySet the server difficulty/difficulty normal
💡 The /whitelist and /op commands are at the heart of keeping a server safe — read the detailed setup in the article on Whitelist and OP.

Tips to Use Commands Without Mistakes

Minecraft commands look complex at first, but once you grasp the basics you will type them fluently. The key tips are to use the auto-complete key and to understand how coordinates are structured.

  • Press Tab while typing to have the game auto-complete command/item/player names for you
  • Coordinates use the X Y Z format, where Y is height; use ~ (tilde) for "current position," e.g. ~ ~5 ~ is 5 blocks higher than you
  • Item names use lowercase English, e.g. diamond_sword, not Diamond Sword
  • If using on a server, test world-affecting commands (like /fill /gamerule) in a safe area first
  • Back up the world before using commands that edit many blocks, so you can revert if something goes wrong
💡 On a server that runs 24/7, regular backups matter a lot — especially before experimenting with new commands that affect the whole world.

Want to Try Commands Freely? Open a Private Server

Playing with commands on a single-player world is fun, but once you invite friends, admin commands like /op /whitelist /ban truly matter, because you get to manage a server of your own — control the rules, control the people, and set gamerules however you like across the whole server.

Plusweb Minecraft Hosting starts at just ฿150/mo, supports both JAVA and BEDROCK, and lets you set gamerules and use admin commands through the control panel. It is ready instantly, and the Thai datacenter keeps ping low so the server stays smooth 24 hours a day — no need to leave a computer running at home.

  • From ฿150/mo, supports both JAVA and BEDROCK
  • Set gamerules / use admin commands through the control panel
  • Install mods/modpacks/plugins, with automatic updates
  • Ready instantly, choose your number of player slots
  • Thai datacenter for low ping, 99.9% uptime
💡 In short: to use commands freely and control a server of your own, renting a private server is the most flexible route.

Want to play with friends without interruptions? Rent Minecraft Hosting

Supports both JAVA and BEDROCK · set gamerules/admin commands · ready instantly · Thai datacenter for low ping · from ฿150/mo

Frequently Asked Questions

What is the keep-items-on-death command in Minecraft?

It is /gamerule keepInventory true. When set to true, a player who dies does not drop their items and experience — everything is kept on respawn. To make items drop normally again, set it to false. This command requires cheats or admin rights first.

How do I type the change-game-mode command?

Use /gamemode followed by the mode name, e.g. /gamemode creative (unlimited items, fly), /gamemode survival, /gamemode adventure, /gamemode spectator (fly through blocks). Some versions accept short numbers, e.g. /gamemode 1 for creative.

Why does my command not work when I type it?

The most common causes are not having enabled Allow Cheats on a single-player world, or not having OP (admin) rights on a server. Another case is a typo in the command syntax, such as wrong spacing or a misspelled item name. Try pressing Tab to have the game auto-complete the command correctly.

What is the difference between gamerule and time set?

/time set changes the current time once, e.g. /time set day switches to day immediately, but time keeps moving. /gamerule doDaylightCycle false "stops" the time cycle from advancing. For permanent daytime, use both together: set the time to day, then disable daylightCycle.

Are commands on a server different from single-player?

Basic commands are the same, but a server adds admin commands like /op /whitelist /ban /kick /stop for managing players and controlling the server, usable only by those with OP rights. On a rented server like Plusweb, you set rights and use these commands conveniently through the control panel.