AxtGame

Minecraft Admin & Console Commands

25 verified Minecraft server administration, moderation, and gameplay commands with copyable examples.

Need a Minecraft server? Requirements, free self-hosting & 3 hosts compared Hosting guide →
CommandSyntax & UsageExampleAction
/fill Building /fill <from> <to> <block> [destroy|hollow|keep|outline|replace]
Fills a 3D region with a specific block.
/fill ~-5 ~-1 ~-5 ~5 ~-1 ~5 minecraft:stone
/setblock Building /setblock <pos> <block> [destroy|keep|replace]
Places a single block at specific coordinates.
/setblock ~ ~ ~ minecraft:diamond_block
/kill Entities /kill [targets]
Kills targeted entities (or clears dropped items with @e[type=item]).
/kill @e[type=minecraft:item]
/summon Entities /summon <entity> [pos] [nbt]
Summons a mob or entity at the specified coordinates.
/summon minecraft:ender_dragon ~ ~ ~
/enchant Items & Loot /enchant <targets> <enchantment> [level]
Enchants the item currently held by the target player.
/enchant @p minecraft:sharpness 5
/give Items & Loot /give <target> <item> [count]
Gives an item or block to one or more players.
/give @p minecraft:diamond_sword 1
/ban Moderation /ban <player> [reason]
Adds a player's profile to the server ban list.
/ban Griefer Griefing spawn
/deop Moderation /deop <player>
Revokes operator status from a player.
/deop Steve
/kick Moderation /kick <player> [reason]
Disconnects a player from the server.
/kick Steve AFK
/op Moderation /op <player>
Grants operator (admin) status to a player.
/op Steve
/pardon Moderation /pardon <player>
Removes a player from the server ban list.
/pardon Steve
/whitelist Moderation /whitelist <on|off|add|remove|list> [player]
Manages the server player whitelist.
/whitelist add Steve
/effect Player Mode /effect give <targets> <effect> [seconds] [amplifier]
Applies a status effect to players or mobs.
/effect give @p minecraft:night_vision 300 0
/gamemode Player Mode /gamemode <survival|creative|adventure|spectator> [target]
Changes a player's game mode.
/gamemode creative @p
/xp Progression /xp add <targets> <amount> [levels|points]
Adds or sets experience points or levels.
/xp add @p 30 levels
/save-all Server Maintenance /save-all [flush]
Saves the world chunks and player data to disk.
/save-all flush
/stop Server Maintenance /stop
Gracefully saves and shuts down the dedicated server.
/stop
/tp Teleportation /tp <targets> <destination|x y z>
Teleports players or entities to another entity or coordinates.
/tp @p 0 100 0
/locate World & Weather /locate <structure|biome|poi> <id>
Displays the nearest coordinates and distance to a structure or biome.
/locate structure minecraft:stronghold
/seed World & Weather /seed
Displays the world generation seed.
/seed
/time set World & Weather /time set <day|noon|night|midnight|ticks>
Sets the internal daytime clock of the world.
/time set day
/weather World & Weather /weather <clear|rain|thunder> [duration]
Changes the current weather in the Overworld.
/weather clear 600
/difficulty World Rules /difficulty <peaceful|easy|normal|hard>
Sets the server difficulty level.
/difficulty hard
/gamerule World Rules /gamerule <rule> [value]
Sets or queries a world gamerule (e.g., keepInventory, doDaylightCycle).
/gamerule keepInventory true
/worldborder World Rules /worldborder set <distance> [time]
Sets the diameter of the playable world border in blocks.
/worldborder set 10000