Command Name Bedrock Edition Java Edition Command Syntax Example Command Description
Command Name Bedrock Edition Java Edition Command Syntax Example Command Description
Server Management
Bans specified target from the server, with
Ban Player X ✓ /ban [target] [reason] /ban PlayerName Griefing.
an optional reason.
Bans specified IP address, or IP address of
Ban IP Address X ✓ /ban-ip [target/IP address] [reason] /ban-ip PlayerName Griefing.
specified player, with an optional reason.
View Banned Users X ✓ /banlist players /banlist players Displays all banned players.
/banlist IPs /banlist ips Displays all banned IP addresses.
Change Default /defaultgamemode (survival/creative/ Changes the gamemode for new players to
X ✓ /defaultgamemode survival
Gamemode adventure/spectator) survival, creative, adventure, or spectator.
Remove Operator Removes operator status from specified
✓ ✓ /deop [target] /deop PlayerName
Privileges player.
Force a Chunk to Adds or removes a forced load status to a
X ✓ /forceload (add/remove) (chunk coords) /forceload add 0 0 100 100
Load Constantly chunk.
/forceload remove all /forceload remove all Removes all forced load statuses.
/forceload query (chunk coords) /forceload query 0 0 100 100 Checks if a chunk has a forced load status.
Set the Current /gamemode (survival/creative/adventure/ Changes specified player's gamemode to
✓ ✓ /gamemode survival PlayerName
Gamemode spectator) [target] survival, creative, adventure, or spectator.
Set a Gamerule ✓ ✓ /gamerule [RuleName] (RuleValues) /gamerule commandBlockOutput true Changes a game rule.
List Players on
✓ ✓ /list /list Lists all players on the server.
Server
Lists all players and their UUIDs on the
/list uuids /list uuids
server.
Kicks a player out of the server, with optional
Kick Player X ✓ /kick [target] [reason] /kick PlayerName Griefing.
reason.
Give Operator
✓ ✓ /op [player] /op PlayerName Grants a player Operator status.
Status
Unban Player X ✓ /pardon [player] /pardon PlayerName Unbans a specified player.
Unban IP Address X ✓ /pardon-ip [address] /pardon-ip 192.168.1.2 Unbans a specified IP address.
Allow LAN Users to
Opens up a singleplayer world for LAN users
Join a Singleplayer X ✓ /publish [port] /publish 555
to join.
World
Save a Backup of a
✓ (BDS Only) X /save hold /save hold Begins the preparation of a backup.
World
/save query /save query Checks the status of a current backup.
/save resume /save resume Resumes an existing backup.
Begins to save the server information over
Save a Server X ✓ /save-all (flush) /save-all
time. If "flush" is added, will save instantly.
Disable Automatic
X ✓ /save-off /save-off Stops the server from saving its own data.
Server Saves
Enable Automatic
X ✓ /save-on /save-on Allows the server to save its own data.
Server Saves
Sets the allowed idle time in minutes, after
Change Idle Kick
X ✓ /setidletimeout [minutes] /setidletimeout 5 which an idle player is kicked out of the
Time
server.
Set Maximum Sets the maximum amount of players
✓ X /setmaxplayers [amount] /setmaxplayers 10
Player Count allowed to join the server, between 1-30.
Set Default Spawn
✓ ✓ /setworldspawn /setworldspawn Sets the respawn point at your position.
Point
Sets the respawn point at X = 100, Y = 100, Z
/setworldspawn (x, y, z) /setworldspawn 100 100 100
= 100.
Make Spectator Forces someone in Spectator mode to
X ✓ /spectate [target] [player] /spectate PlayerName PlayerSpectator
Follow Entity watch a specified entity.
Spreads players out from a center location
/spreadplayers (center coords) [distance
Spread Players at a set distance. If team spread is true, all
✓ ✓ of spread] [maximum range] [team spread: /spreadplayers 100 00 1000 true @a
Across World members of the same team will be together
true/false] [targets]
after the spread.
Shut Down Server X ✓ /stop /stop Saves the server and then closes it.
Counts the number of specified entites
Count an Entity ✓ X /testfor [target] /testfor creeper
currently active.
Transfer to Transfers you to another server via the given
✓ X /transferserver [ip address] [port] /transferserver 192.168.1.2 555
Another Server port.
Modify the Server
X ✓ /whitelist (add/remove) [player] /whitelist add PlayerName Adds or removes a player from the whitelist.
Whitelist
/whitelist (on/off) /whitelist on Enables or disables the whitelist.
/whitelist list /whitelist list Lists players on the whitelist.
Reloads the whitelist if names were added
/whitelist reload /whitelist reload
outside the game.
Copyright © 2019 MakeUseOf. For more cheat sheets, head over to www.makeuseof.com
Command ¹Bedrock ¹Java
Command Syntax Example Command Description
Name Edition Edition
Enable/Disable /mobevent minecraft:wandering_trader_event
X ✓ /mobevent [event] (true/false) Enables or disables specific mob events.
Mob Events true
Connect to a
WebSocket ✓ X /wsserver OR /connect [ip] /connect 192.168.1.2 Connects to a WebSocket Server.
Server
Copyright © 2019 MakeUseOf. For more cheat sheets, head over to www.makeuseof.com
Command ¹Bedrock ¹Java
Command Syntax Example Command Description
Name Edition Edition
Change a Block
Modifies a block at the stated
to a Different ✓ ✓ /setblock (x, y, z) [block] /setblock 100 100 100 minecraft:sand
coordinates.
Block
/fill (beginning region coord) (end
Edit Blocks in a
✓ ✓ region coord) [block type] (destroy/ /fill 0 0 0 100 100 100 minecraft:sand destroy Edits a region of blocks.
Region
hollow/keep/outline/replace)
Test if a Block is Checks if the specified block is at the
✓ X /testforblock (x, y, z) [block name] /testforblock 100 100 100 minecraft:sand
Present given location.
Test if Blocks in /testforblocks (beginning coord of
Checks if the region of blocks given is
Two Regions Are ✓ X region) (end coord of region) /testforblocks 0 0 0 100 100 100 300 300 300
identical to another region.
Identical (comparison coords)
Add or Remove a /tickingarea add (beginning coord of Adds a ticking area to the specified
✓ X /tickingarea add 0 0 0 100 100 100 region1
Ticking Area region) (end coord of region) [name] region.
Adds a circular ticking area to the
/tickingarea add circle (center coord)
/tickingarea add circle 100 100 100 3 circle1 specified coords, with a radius between 1
(radius) [name]
and 4.
/tickingarea remove (name/all) /tickingarea remove region1 Removes a specific, or all, ticking areas.
Adjust or See the Adds time to the clock, or sets at a
✓ ✓ /time (add/set) [amount] /time add 10000
World Time specific time.
Returns the total age of the specified
/time query (daytime/gametime/day) /time query day
period.
Display or Edit a /title [player] (title/subtitle/actionbar) Displays a title, subtitle, or a title in the
✓ ✓ /title PlayerName title Prologue
Title Screen [title] action bar.
/title [player] times [fadein time] [stay Sets the fade in, staying time, and fade
/title PlayerName times 100 10000 100
time] [fadeout time] out period in ticks.
/title [player] clear /title PlayerName clear Removes titles.
/title [player] reset /title PlayerName reset Resets the titles to their default values.
Turn Rain On or
✓ X /toggledownfall /toggledownfall Enables or disables rain or snow effects.
Off
Change the Forces specific weather for a period of
✓ ✓ /weather (clear/rain/thunder) [duration] /weather clear 100
Weather time, in seconds.
Display the World Shows the unique identifying seed of the
X ✓ /seed /seed
Seed world.
Increases the world border by a number
Modify the World
X ✓ /worldborder add [distance] [time] /worldborder add 50 10 of blocks over a period of time in
Border
seconds. If no time is given, defaults to 0.
Recenters the world border at the
/worldborder center (coords) /worldborder center 100 100
specified location.
/worldborder damage (amount/buffer) Adjusts the damage and buffer distance
/worldborder damage amount 1
[variables] for the world border.
/worldborder get /worldborder get Returns the diameter of the world border.
/worldborder set [distance] [time] /worldborder set 1000 0 Adjusts the diameter of the world border.
/worldborder warning (distance/time) Adjusts the warning distance or time for
/worldborder warning distance 900
[variables] the world border.
Toggle World Enables or disables the ability to modify
✓ X /worldbuilder OR /wb /wb
Builder Status forbidden blocks.
Communication
Display Custom Displays a chat message as a roleplayed
✓ ✓ /me [action] /me waves to you.
Action in Chat action.
Send a Private (/msg OR /tell OR /w) [player] Sends a private message to the specified
✓ ✓ /msg PlayerName Hello!
Message [message] player.
Displays a message to everyone. If a
Send a Message
✓ ✓ /say [message] /say Hello! message is entered with no command,
to the Server
the console defaults to /say.
Send a Message
X ✓ (/teammsg OR /tm) [message] /tm Watch out! Sends a message to your team.
to Your Team
Send a JSON
Message to All ✓ ✓ /tellraw [player] (message) /tellraw PlayerName Hello! Sends a JSON message to a player.
Players
Copyright © 2019 MakeUseOf. For more cheat sheets, head over to www.makeuseof.com
Command ¹Bedrock ¹Java
Command Syntax Example Command Description
Name Edition Edition
Modify the /scoreboard objectives (add/list/ Modifies the objectives on the
✓ ✓ /scoreboard objectives list
Scoreboard modify/remove/setdisplay) [variables] scoreboard.
/scoreboard players (add/enable/get/
list/operation/remove/reset/set) /scoreboard players list Modifies the players on the scoreboard.
[variables]
Add, Remove, or
View Scoreboard ✓ ✓ /tag [target] list /tag PlayerName list Lists scoreboard tags on a player.
Tags
Adds or removes a scoreboard tag from a
/tag [target] (add/remove) [tag] /tag PlayerName add tagname
player.
Trigger a
/trigger (objective name) [add/
Scoreboard X ✓ /trigger goal1 add 2 Modifies a scoreboard objective.
set(number)]
Objective
Data Management
Customize Boss /bossbar (add/get/list/remove/set) Adds, removes, and manages boss health
X ✓ /bossbar add minecraft:bar1 Titan
Health Bars [bossbar id] [additional parameters] bars.
Modify How Data
Packs are Loaded X ✓ /datapack disable [data pack name] /datapack disable pack1 Disables a data pack.
and Unloaded
/datapack enable [data pack name] (first/ Sets a data pack to enable before/after all
/datapack enable pack1 last
last) other data packs.
/datapack enable [data pack name] Sets a data pack to enable before/after a
/datapack enable pact2 after pack1
(before/after) [data pack] specific pack.
/datapack list (available/enabled) /datapack list enabled Lists all available or enabled datapacks.
Enable or Disable
X ✓ /debug (start/stop/report) /debug start Begins debugging.
Debugging
Get Help for a Gets help for a command. If no page is given,
✓ ✓ /help [page] [command] /help execute
Command defaults to page 1.
/playsound [sound] [category] [player] Plays a sound at the given location. The
/playsound minecraft:creeper.primed voice
Play a Sound ✓ ✓ [source coord] [volume] [pitch] [min source coordinates, volume, pitch, and
PlayerName
volume] minimum volume are optional.
Stop a Sound
✓ ✓ /stopsound [target] /stopsound PlayerName Stops all sounds emanating from the target.
Playing
Reload Data Packs ✓ ✓ /reload /reloads Reloads all data packs from disk.
Schedules a function to run after a set
Schedule a /schedule function [function path] [time(d/
X ✓ /schedule function functionspath 2d amount of days (d), seconds (s) or ticks (t)
Function to Run s/t)]
have passed.
Run a Function ✓ ✓ /function [function path] /function namespace:functionspath Runs a function from the specified path.
¹Minecraft cheats are not available in every version of the game. Also, they’re not enabled by default. The setting for enabling cheats varies depending on the Minecraft version you’re using.
Copyright © 2019 MakeUseOf. For more cheat sheets, head over to www.makeuseof.com