
Minecraft Console Commands Guide: Java Edition, Bedrock Edition, How to Enter, & more
Posted on by
Minecraft contains a variety of commands that can be helpful both in single-player and when playing with friends. Yet so many are overlooked due to the sheer number that each version of the game has. So, today, we explore all Minecraft console commands, what they do, and how you can make the most of these countless nifty tools.
Minecraft console commands can be issued in a variety of ways, including the chat box, server’s console, or even command blocks in-game. In singleplayer, most commands will require that commands (formally cheats) are enabled. On servers, the players attempting to use commands will need sufficient permissions, often gained through being an operator.
Once sufficient permissions have been obtained, commands can be issued in-game by using “/” followed by the desired command and then the settings or names it may require after. A simple example that grants players the operator permissions we mentioned prior is as follows:
While many Minecraft console commands contain a variety of subcommands, “gamerule” especially has a vast selection often used by players and server owners alike. For this reason, they have been included as their own separate list.
All game rule commands begin with “/gamerule” followed by the subcommands below. For further examples showing game rule use, please see the “How to Use Minecraft Console Commands” section found at the top of this article or the video above.
How to Use Minecraft Console Commands

- /op NameHere
- /gamemode creative NameHere
- /gamerule <gamerule> <true/false> <value>
- /gamerule keepInventory true
- /gamerule playerSleepingPercentage 100
All Minecraft Console Commands

Java Edition
All Minecraft console commands in Java Edition begin with “/” when used in-game. However, the “/” is not required when directly typing the commands into a server’s console.- advancement – Adds, removes, or checks a player’s advancements.
- attribute – Adds, removes, sets, or queries an entity attribute.
- ban – Adds a player to the server’s banlist, removing the player and preventing them from rejoining.
- ban-ip – Adds an IP to the server’s banlist, removing players with that IP and preventing them from rejoining.
- banlist – Lists all players and IPs on the server’s banlist.
- bossbar – Creates or modifies boss health bars.
- clear – Removes all items from a player's inventory.
- clone – Copies blocks from one location to another.
- damage – Deals damage to specified entities.
- data – Lists, merges, modifies, or removes block entity and entity NBT data.
- datapack – Lists, enables, or disables data packs or adjusts data pack load order.
- debug – Begins or ends a debugging session.
- defaultgamemode – Sets the default game mode for connecting players.
- deop – Removes operator (op) from a player.
- dialogue – Opens or modifies NPC dialog screens.
- difficulty – Changes the difficulty.
- effect – Applies or removes a status effect from a player.
- enchant – Applies an enchantment to an item.
- execute – Executes another command with additional variables.
- experience – Adds or removes experience from a player.
- xp – Alternative command for “experience.”
- fill – Fills a region with a specified block.
- fillbiome – Fills a region with a specified biome.
- forceload – Forces a chunk to remain loaded even if no players are nearby. Player presence is still required for crop growth.
- function – Runs a list of commands.
- gamemode – Changes a player's game mode.
- gamerule – Enables, disables, or adjusts a game rule.
- give – Spawns an item or items for a specified player.
- help – Lists and provides assistance with commands.
- item – Edits or copies items in inventories or storage blocks.
- jfr – Begins or ends profiling with Java Flight Recorder.
- kick – Disconnects a player from the server.
- kill – Kills specified entities, including players, mobs, and items.
- list – Lists all players on the server.
- locate – Provides the distance and coordinates for the closest specified structure or biome.
- loot – Spawns items from a specified loot table into a player’s inventory or onto the ground.
- me – Sends a message in third person.
- msg – Sends a private message to a specified player.
- tell – Alternative command for “msg.”
- w – Alternative command for “msg.”
- op – Grants operator (op) to a player.
- pardon – Removes a specified player from the banlist.
- pardon-ip – Removes a specified IP from the banlist.
- particle – Creates particle effects.
- perf – Captures ten seconds of game info and metrics.
- place – Places a configured feature, jigsaw, template, or structure at a specified location.
- playsound – Plays a specified sound.
- publish – Opens a singleplayer world to the local network.
- random – Generates a random value.
- recipe – Grants or removes known recipes from a player.
- reload – Reloads a world or server’s data packs and plugins.
- return – Controls execution flow inside functions and changes their return value.
- ride – Makes entities ride other entities or removes entities from their mounts.
- rotate – Rotates an entity.
- save-all – Saves the server.
- save-off – Disables automatic server saves.
- save-on – Enables automatic server saves.
- say – Sends a message to all players.
- schedule – Sets a function to execute at a specified time.
- scoreboard – Creates or modifies scoreboard objectives.
- seed – Provides the world seed.
- setblock – Changes a block to another specified block.
- setidletimeout – Sets an automatic removal time for idle players.
- setworldspawn – Moves world spawn to a specified location.
- spawnpoint – Moves a player’s spawn point to a specified location.
- spectate – Spectates a specific entity when in spectator mode.
- spreadplayers – Teleports entities to random locations within a specified area.
- stop – Shuts down the server.
- stopsound – Stops a specified sound.
- summon – Spawns a specified entity.
- tag – Controls entity tags.
- team – Controls teams.
- teammsg – Sends a message to a team.
- tm – Alternative command for “teammsg.”
- teleport – Teleports specified entities, including players, to specified locations.
- tp – Alternative command for “teleport.”
- tellraw – Sends a JSON message to a specified player.
- test – Modifies and executes GameTests.
- tick – Changes the world or server’s tick rate.
- time – Lists or changes the in-game time of day.
- title – Controls screen titles.
- transfer – Sends a player to another specified server.
- trigger – Sets a trigger to be activated for scoreboards.
- weather – Changes the in-game weather.
- whitelist – Enables and controls the server whitelist, allowing only pre-approved players to join.
- worldborder – Enables and controls the world border, preventing players from traveling past a specified distance.
Bedrock Edition
All Minecraft console commands in Bedrock Edition begin with “/” when used in-game.- ability – Grants or removes a special ability from a specified player.
- allowlist – Enables and controls the server allowlist, allowing only pre-approved players to join.
- whitelist – Alternative command for “allowlist.”
- aimassist – Modifies aim assist settings for a specified player.
- alwaysday – Locks the day and night cycle to daytime.
- daylock – Alternative command for “alwaysday.”
- camera – Changes camera perspective.
- camerashake – Enables or disables camera shake.
- changesetting – Changes a server setting while the server is running.
- clear – Removes all items from a player's inventory.
- clearspawnpoint – Removes a specified player’s spawn point.
- clone – Copies blocks from one location to another.
- connect – Attempts to connect to the websocket server.
- wsserver – Alternative command for “connect.”
- deop – Removes operator (op) from a player.
- dialogue – Opens or modifies NPC dialog screens.
- difficulty – Changes the difficulty.
- effect – Applies or removes a status effect from a player.
- enchant – Applies an enchantment to an item.
- event – Triggers an event on an entity.
- execute – Executes another command with additional variables.
- fill – Fills a region with a specified block.
- fog – Modifies fog settings.
- function – Runs a list of commands.
- gamemode – Changes a player's game mode.
- gamerule – Enables, disables, or adjusts a game rule.
- gametest – Modifies and executes GameTests.
- gametips – Enables or disables game tips.
- give – Spawns an item or items for a specified player.
- help – Lists and provides assistance with commands.
- ? – Alternative command for “help.”
- hud – Adjusts HUD visibility.
- immutableworld – Allows or disallows changes to the world.
- inputpermission – Specifies the operation for a player’s permission status.
- kick – Disconnects a player from the server.
- kill – Kills specified entities, including players, mobs, and items.
- remove – Alternative command for “kill.”
- list – Lists all players on the server.
- locate – Provides the distance and coordinates for the closest specified structure or biome.
- loot – Spawns items from a specified loot table into a player’s inventory or onto the ground.
- me – Sends a message in third person.
- mobevent – Enables or disables a specified mob event.
- msg – Sends a private message to a specified player.
- tell – Alternative command for “msg.”
- w – Alternative command for “msg.”
- music – Plays or stops a specified track of music.
- op – Grants operator (op) to a player.
- particle – Creates particle effects.
- permission – Reloads and applies permissions.
- ops – Alternative command for “permissions.”
- place – Places a configured feature, jigsaw, template, or structure at a specified location.
- playanimation – Activates a specified animation.
- playsound – Plays a specified sound.
- recipe – Grants or removes known recipes from a player.
- reload – Reloads a world or server’s functions and scripts in behavior packs.
- reloadconfig – Reloads configuration files.
- replaceitem – Replaces an item in an inventory slot with another specified item.
- ride – Makes entities ride other entities or removes entities from their mounts.
- save – Creates a server backup.
- say – Sends a message to all players.
- schedule – Sets a function to execute at a specified time.
- scoreboard – Creates or modifies scoreboard objectives.
- script – Provides debugging options for GameTest Framework.
- scriptevent – Triggers a script event.
- set_movement_authority – Sets the client or server to check player movement speed.
- setblock – Changes a block to another specified block.
- setmaxplayers – Changes the maximum number of players allowed to join.
- setworldspawn – Moves world spawn to a specified location.
- spawnpoint – Moves a player’s spawn point to a specified location.
- spreadplayers – Teleports entities to random locations within a specified area.
- stop – Shuts down the server.
- stopsound – Stops a specified sound.
- structure – Saves and loads structures.
- summon – Spawns a specified entity.
- tag – Controls entity tags.
- teleport – Teleports specified entities, including players, to specified locations.
- tp – Alternative command for “teleport.”
- tellraw – Sends a JSON message to a specified player.
- testfor – Counts specified entities.
- testforblock – Tests if a specified block is in a specified region.
- testforblocks – Tests if specified blocks in two regions match.
- tickingarea – Lists, adds, or removes ticking areas.
- time – Lists or changes the in-game time of day.
- title – Controls screen titles.
- titleraw – Controls screen titles with JSON messages.
- toggledownfall – Starts or stops weather.
- transfer – Sends a player to another specified server.
- trigger – Sets a trigger to be activated for scoreboards.
- weather – Changes the in-game weather.
- worldbuilder – Enables or disables the ability to place and break blocks.
- wb – Alternative command for “worldbuilder.”
- xp – Adds or removes experience from a player.
All Minecraft Game Rules

Java & Bedrock Edition Shared Game Rules
- commandBlockOutput – Enables or disables whether command blocks notify admins when they perform commands.
- doDaylightCycle – Enables or disables the daylight cycle.
- doEntityDrops -Enables or disables whether entities that are not mobs have drops.
- doFireTick – Enables or disables fire spread.
- doImmediateRespawn – Enables or disables whether respawns occur immediately without showing the death screen.
- doInsomnia – Enables or disables phantom spawns.
- doLimitedCrafting – Enables or disables whether players can craft recipes they have not unlocked.
- doMobLoot – Enables or disables mob item drops.
- doMobSpawning – Enables or disables mob spawns. Does not affect monster spawners, raids, or other special spawn conditions.
- doTileDrops – Enables or disables block drops.
- doWeatherCycle – Enables or disables whether the weather can change naturally.
- drowningDamage – Enables or disables whether players take damage when drowning.
- fallDamage – Enables or disables whether players take fall damage.
- fireDamage – Enables or disables whether players take fire damage.
- freezeDamage – Enables or disables whether players take freeze damage when inside powder snow.
- keepInventory – Enables or disables whether players keep items and experience after dying.
- locatorBar – Enables or disables the locator bar.
- maxCommandChainLength – Modifies the maximum number of commands a command chain in a function or command block can execute during one tick.
- mobGriefing – Enables or disables whether mobs can change blocks and pick up items.
- naturalRegeneration – Enables or disables whether players can regenerate health naturally if their hunger is full enough.
- playersSleepingPercentage – Modifies the percentage of players that must be sleeping to skip the night.
- projectilesCanBreakBlocks – Enables or disables whether arrows can break certain blocks such as chorus flowers and pots.
- randomTickSpeed – Modifies how often a random block tick occurs per chunk section per game tick. Setting the number to 0 disables random ticks.
- sendCommandFeedback – Enables or disables whether the feedback from commands executed by a player shows up in chat and if command blocks store their output text.
- showDeathMessages – Enables or disables death messages in chat when a player dies. This setting also enables or disables whether a message is sent to a pet’s owner when the pet dies.
- spawnRadius – Modifies the maximum block distance from the world spawn that players spawning or respawning at world spawn can randomly appear.
- tntExplodes – Enables or disables TNT explosions.
- tntExplosionDropDecay – Enables or disables whether block loot is randomly lost in explosions.
Java Edition Exclusive Game Rules
- allowFireTickAwayFromPlayer – Enables or disables whether fire and lava ticks can occur outside of the eight-chunk range of a player.
- announceAdvancements – Enables or disables whether advancements are announced in chat.
- blockExplosionDropDecay – Enables or disables whether block loot is randomly lost in explosions.
- commandModificationBlockLimit – Sets a maximum value for the number of blocks that can be modified by the “clone,” “fill,” and “fillbiome” commands.
- disableElytraMovementCheck – Enables or disables whether the server skips checking player speed when the player is wearing elytra.
- disablePlayerMovementCheck – Enables or disables whether the server skips checking player movement speed.
- disableRaids – Enables or disables raids.
- doPatrolSpawning – Enables or disables patrol spawns.
- doTraderSpawning – Enables or disables wandering trader spawns.
- doVinesSpread – Enables or disables whether vines spread.
- doWardenSpawning – Enables or disables warden spawns.
- enderPearlsVanishOnDeath – Enables or disables whether thrown ender pearls vanish upon death.
- forgiveDeadPlayers – Enables or disables whether angered neutral mobs stop being angry when the targeted player dies nearby.
- globalSoundEvents – Enables or disables whether global sounds are heard by all players.
- lavaSourceConversion – Enables or disables whether new lava source blocks can form.
- logAdminCommands – Enables or disables whether admin commands appear in the server log.
- maxCommandForkCount – Modifies the maximum number of forks in a function or command block that can be created during one tick.
- maxEntityCramming – Modifies the maximum number of pushable entities a mob or player can push at once before taking six suffocation damage per half-second. 0 or lower disables the rule.
- mobExplosionDropDecay – Enables or disables whether mob loot is randomly lost in explosions.
- playersNetherPortalCreativeDelay – Modifies the time a player in creative mode must wait in a nether portal before teleporting to or from the nether.
- playersNetherPortalDefaultDelay – Modifies the time a player not in creative mode must wait in a nether portal before teleporting to or from the nether.
- reducedDebugInfo – Enables or disables whether the debug screen shows all or reduced information and whether the effects of F3+B and F3+G are shown.
- snowAccumulationHeight – Modifies the maximum number of snow layers that can accumulate on each block.
- spawnChunkRadius – Modifies the size of the spawn chunk in the world.
- spectatorsGenerateChunks – Enables or disables whether players in spectator mode can generate chunks.
- universalAnger – Enables or disables whether angered neutral mobs attack any nearby player rather than just the player that angered them.
- waterSourceConversion – Enables or disables whether new water source blocks can form.
Bedrock Edition Exclusive Game Rules
- commandBlockEnabled – Enables or disables whether command blocks function in-game.
- functionCommandLimit – Modifies the maximum number of commands that can be executed by the “function” command at once.
- pvp – Enables or disables whether players can damage other players.
- recipesUnlock – Enables or disables whether players need to collect items to unlock recipes.
- respawnBlocksExplode – Enables or disables bed and respawn anchor explosions in other dimensions.
- showBorderEffect – Enables or disables border block effect visibility.
- showCoordinates – Enables or disables whether a player’s coordinates are displayed.
- showDaysPlayed – Enables or disables whether a player’s total days played are displayed.
- showRecipeMessages – Enables or disables recipe unlock notifications.
- showTags – Hides or unhides the "Can place on" and "Can destroy" block lists from item lore, as well as item lock indicators.
Join our Newsletter
Subscribe for the latest updates on all things gaming!
How would you rate this blog?
Share your opinion and help us make our blogs even better!
Didn't like
Neutral
Liked

Need a game server?
Rent a game server where you and your friends can play privately with low latency and custom settings. Choose from 70+ games, invite people from around the globe, and enjoy private matches, or build your own online community with your own rules.

Relevant Blogs

GET THE INSIDE SCOOP!
Join our email for updates on our hosted games, company news and exclusive deals. Stay in the loop!

