Skip to content

All Minecraft Java Edition Console Commands

CommandDescriptionExampleOP Level
/advancementGives, removes, or checks player advancement/advancement grant <playername> everything 2
/attributeQueries, adds, removes, or sets an entity attribute/attribute <playername> minecraft:generic.attack_speed base set 1002
/banAdds name to ban list/ban <playername>3
/ban-ipAdds IP address to ban list/ban-ip 123.45.67.893
/banlistDisplays list of banned players/banlist3
/bossbarCreates and modifiers bossbarsUsed in datapacks2
/clearClears items from player inventory/clear <playername>2
/cloneCopies blocks from one place to another/clone 0 0 0 100 100 100 -100 -100 -1002
/damageApplies damage to the selected entities/damage <playername> 10-
/dataGets, merges, modifies, and removes block entity and entity NBT dataUsed in datapacks2
/datapackControls loaded datapacks/datapack2
/debugStarts or stops a debugging session/debug3
/defaultgamemodeSets the default gamemode/defaultgamemode creative2
/deopDeops a player/deop <playername>3
/difficultySets the difficulty level/difficulty 32
/effectGives an entity an effect/effect give <playername> minecraft:regeneration2
/enchantAdds an enchantment to a players selected item/enchant <playername> minecraft:channeling2
/executeExecutes another command/execute run say I executed this! 2
/experienceAdds or removes player experience/experience add <playername> 1002
/fillFills region with specified block/fill 0 0 0 100 100 100 minecraft:diamond_block2
/fillbiomeFills region with specified biome/fillbiome 0 0 0 100 100 100 minecraft:badlands 2
/forceloadForces chunks to constantly be loaded or not/forceload add 0 0 02
/functionRuns a function/function <functionname>2
/gamemodeSets the gamemode of a player/gamemode <playername> creative2
/gameruleSets or queries a game rule/gamerule playersSleepingPercentage 202
/giveGives player an item/give <playername> minecraft:diamond_block 642
/helpProvides help for commands/help <commandname>0
/itemManipulates items in inventories/item replace entity <entityname> armor.chest with minecraft:netherite_chestplate2
/jfrStarts or stops a JFR profiling/jfr4
/kickKicks a player from the server/kick <playername>3
/killKills entities/kill <playername>2
/listLists players on the serverlist0
/locateLocates closest structure, biome, or point of interest/locate structure minecraft:ancient_city2
/lootDrops items from an inventory slot onto the ground/loot spawn ~ ~ ~ mine ~ ~-1 ~2
/meDisplays a message about the sender/me is playing Minecraft0
/msgAn alias of /tell and /w . Displays a private message to tother players/msg <playername> secret message!0
/opGrants operator status to a player/op <playername>3
/pardonRemoves entries from the banlst/pardon <playername>3
/pardon-ipRemoves entries from the banlist/pardon-ip 123.45.67.893
/particleCreates particles/particle minecraft:bubble ~ ~ ~ ~ ~ ~ 0.1 100 normal2
/perfCaptures info and metrics about the game for 10 seconds/perf4
/placeUsed to place a configured feature, jigsaw, template, or structure at a given location/place structure minecraft:village_desert2
/playsoundPlays a sound/playsound minecraft:ambient.cave2
/publishOpens single-player world to local network/publish4
/randomDraw a random value or control the random number sequence/random2
/recipeGives or takes player recipes/recipe give <playername> minecraft:crafting_table2
/reloadReloads loot tables, advancements, and functions from disk/reload2
/returnControl execution flow inside functions and change their return valueUsed in datapacks-
/rideUsed to make entities ride other entities, stop entities from riding, make rides evict their riders, or summon rides or riders/ride <entityname> mount <entityname>-
/save-allSaves the server to disk/save-all4
/save-offDisables automatic server saves/save-off4
/save-onEnables automatic server saves/save-on4
/sayDisplays a message to multiple players/say hello all!2
/scheduleDelays the execution of a function/schedule function myfunction 100s2
/scoreboardManages scoreboard objectives and players/scoreboard players set <playername> <objective> <value>2
/seedDisplays the world seed/seed2
/setblockChanges a block to another block/setblock 0 0 0 minecraft:slime_block replace2
/setidletimeoutSets the time before idle players are kicked/setidletimeout 1203
/setworldspawnSets the world spawn/setworldspawn 0 0 02
/spawnpointSets the spawn point for a player/spawnpoint <playername> 0 0 02
/spectateMakes one player in spectator mode spectate an entity/spectate <spectator> <spectatee>2
/spreadplayersTeleports entities to a random location/spreadplayers2
/stopStops a server/stop4
/stopsoundStops a sound for an entity/stopsound <playername> master2
/summonSummons an entity/summon minecraft:bat2
/tagControls entity tags/tag <entity> add myTag2
/teamControls teams/team add <teamname> <playername>2
/teammsgAn alias of /tm Specifies the message to send to team/teammsg help cap blue0
/teleportTeleports the player to a specified coordinate/tp <playername> 0 0 02
/tellAn alias of /msg and /w Displays a private message to other players/tell <playername> secret message!0
/tellrawDisplays a JSON message to players/tellraw hey guys check out my JSON message2
/timeChanges or queries the world’s game time/time set day2
/titleManages screen titles/title <playername> clear2
/tmAn alias of /teammsg. Specifies the message to send the team/tm where is the team right now0
/tpAn alias of teleport/tp <playername> 0 0 02
/triggerSets a trigger to be activated/trigger <triggername>0
/wAn alis of /tell and /msg Displays a private message to other players/w hello friend!0
/weatherSets the weather/weather clear2
/whitelistManages the server whitelist/whitelist add <playername>3
/worldborderManages the world border/worldborder add 1002
/xpAn alias of /experience Adds or removes player experience/xp add <playername> 1002