0% found this document useful (0 votes)
439 views

Command Name Bedrock Edition Java Edition Command Syntax Example Command Description

hackinf for mobile

Uploaded by

sdfg
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
439 views

Command Name Bedrock Edition Java Edition Command Syntax Example Command Description

hackinf for mobile

Uploaded by

sdfg
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Minecraft Commands

Command ¹Bedrock ¹Java


Command Syntax Example Command Description
Name Edition Edition

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

Player Modification and Cheats


Clear Items from
✓ ✓ /clear [target] /clear PlayerName Deletes PlayerName's inventory.
Inventory
Deletes all Diamond Swords in
/clear [target] [item] /clear PlayerName diamond_sword
PlayerName's inventory.
Deletes one Diamond Sword in
/clear [target] [item] [amount] /clear PlayerName diamond_sword 1
PlayerName's inventory.
Add or Remove /advancement (grant/remove) [target] Adds or removes all advancements from
X ✓ /advancement grant PlayerName everything
Advancements everything the target player.
Grants an effect. If no duration given,
For Java: /effect give [entity] [effect]
Grant or Remove defaults to 30 seconds. If no level given,
✓ ✓ (duration) (effect level) (hide particles: /effect give PlayerName speed 1000 10 false
a Status Effect defaults to 0. If no hide particle boolean
true/false)
given, defaults to false.
Grants an effect. If no duration given,
For Bedrock: /effect [entity] [effect]
defaults to 30 seconds. If no level given,
(duration) (effect level) (hide particles: /effect PlayerName speed 1000 10 false
defaults to 0. If no hide particle boolean
true/false)
given, defaults to false.
Removes an effect. If no effect given,
For Java: /effect clear [entity] [effect] /effect clear PlayerName speed
removes all effects.
For Bedrock: /effect [entity] clear /effect PlayerName clear. Removes all effects.
Enchant Current /enchant [target] [enchantment ID] Enchants target's currently held weapon
✓ ✓ /enchant PlayerName fire_aspect 1
Weapon [level] with the specified enchantment.
Add or Remove
(/experience OR /xp) add [target] Grants two points of experience to
Experience ✓ ✓ /experience add PlayerName 2 points
[amount] (points/levels) PlayerName.
Points
(/experience OR /xp) set [target]
/experience set PlayerName 3 levels Sets PlayerName's total level to 3.
[amount] (points/levels)
/experience query [target] (points/
/experience query PlayerName points Shows player's total points or levels.
levels)
Give an Item to Gives an item to a specified item. If no
✓ ✓ /give [target] [item] [amount] /give PlayerName wood 64
Someone amount is given, defaults to 1.
Kill Entity ✓ ✓ /kill /kill Kills yourself.
/kill [target] /kill PlayerName Kills PlayerName.
Shows coordinates of the nearest
Locate Structure ✓ ✓ /locate [structure] /locate EndCity
requested structure.
Add or Remove /recipe (give/take) [player] [recipe
X ✓ /recipe give PlayerName Diamond_Sword Adds or removes a recipe from a player.
Recipes name]
Set Player's Sets your spawnpoint to your current
✓ ✓ /spawnpoint /spawnpoint
Spawn Point location.
Sets your spawnpoint to the given
/spawnpoint (x, y, z) /spawnpoint 100 100 100
coordinates.
Sets the target player's spawnpoint to
/spawnpoint [optional target] (x, y, z) /spawnpoint PlayerName 100 100 100
the given coordinates.
Summon an
✓ ✓ /summon [entity] /summon zombie Summons a zombie at your position.
Entity
Summons a zombie at Z = 100, Y = 100, Z
/summon [entity] (x, y, z) /summon zombie 100 100 100
= 100.
Teleport an Entity ✓ ✓ /teleport OR /tp (coords) /tp 100 100 100 Teleports you to the given coordinates.
Teleports the target to the given
/tp [target] (coords) /tp PlayerName 100 100 100
coordinates.
Teleports the target to the given
/tp [target] (coords) (rotation) /tp PlayerName 100 100 100 180 coordinates and rotates them as
specified in degrees.
Teleports the target to the given
/tp [target] (coords) facing (location) /tp PlayerName 100 100 100 facing 0 0 0 coordinates and rotates them to face the
given location.
Teleports the target to the given
/tp [target] (coords) facing [entity] /tp PlayerName 100 100 100 facing Player2 coordinates and rotates them to face an
entity.

World Editing and Management


Copies all blocks within the specified
Clone a Region of /clone (beginning coord of region) (end
✓ ✓ /clone 0 0 0 100 100 100 300 300 300 region and moves it to a destination
Blocks coord of region) (destination coords)
coordinate.
Replace Items in /replaceitem block (block coords) [slot] /replaceitem block 100 100 100 2 Adds or replaces an item in a block (eg:
✓ ✓
Blocks [item] (amount) diamond_sword 1 chests).

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

Team and Scoreboard Management


Modify Player Adds a team with a system name and a
X ✓ /team add [team name] [display name] /team add Team1 Robbers
Teams display name.
/team empty [team name] /team empty Team1 Removes all players from a team.
/team join [team name] [players] /team join Team1 PlayerName Adds a player to a team.
/team leave [players] /team leave PlayerName Kicks players from their teams.
/team list [team name] /team list Team1 Lists all players within a team.
/team modify [team name] [attribute]
/team modify Team1 color blue Modifies an attribute of a team.
[value]
/team remove [team name] /team remove Team1 Removes a team.

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.

Useful Target Modifiers


Target the Nearest Targets the closest player to the command
X ✓ @p /give @p door
Player activator.
Target a Random
X ✓ @r /kill @r Targets a random player.
Player
Target All Players X ✓ @a /tp @a Targets All Players.
Target All Entities X ✓ @e /kill @e Targets All Entities.
Modifies a targeter to only affect a given
Target a Team X ✓ [team=TeamName] /give @a[team=LuckyTeam] diamond_sword
team.
Target an Entity Modifies a targeter to only affect the given
X ✓ [type=EntityTypeName] /kill @e[type=creeper]
Type entity type.
Target Players
Modifies a targeter to only affect players at
With Specific EXP X ✓ [level=LevelNumber] /xp add @a[level=10] 2 levels
a certain level.
Levels
Modifies a targeter to only affect players
X ✓ [level=FromLevel..ToLevel] /xp add @a[level=10..30] 2 levels
between two levels.
Modifies a targeter to only affect players
X ✓ [level=AboveLevel..] /xp add @a[level=10..] 2 levels
above the given level.
Modifies a targeter to only affect players
X ✓ [level=..BelowLevel] /xp add @a[level=..10] 2 levels
below the given level.
Target Players in a
Modifies a targeter to only affect players on
Specific X ✓ [gamemode=GamemodeName] /gamemode survival @a[gamemode=creative]
a certain gamemode.
Gamemode
Targets Entities
Modifies a targeter to only affect entities
With a Specific X ✓ [name=TargetName] /kill @e[name=Bob]
with a specific name.
Name
Reverse a Target Changes a target modifier to affect
X ✓ [modifier=!target] /kill @e [type=!Cow]
Modifier everything but the given target.

¹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

You might also like