1 / 14
LESSON 1 OF 14

WHAT ARE COMMANDS?

Commands are text instructions you type into Minecraft that make things happen instantly — teleporting, spawning items, changing the weather, and much more.

THE BASICS

In Minecraft Bedrock Edition, a command is a line of text that starts with a forward slash / and tells the game to do something. Think of it like talking directly to the game engine.

Instead of manually walking somewhere, you can type /tp @s 100 64 200 and instantly teleport. Instead of waiting for sunrise, type /time set day and the sun rises immediately.

ANATOMY OF A COMMAND

Every command follows the same basic structure:

SYNTAX
/command <required> [optional]
 
// Example:
/give @s diamond 64
↑ ↑ ↑ ↑
slash command target arguments
  • Slash — Every command starts with /
  • Command name — The action you want (give, tp, time, etc.)
  • Arguments — The details: who, what, where, how much

WHAT CAN COMMANDS DO?

Commands in Bedrock let you control almost every aspect of the game:

  • Teleport yourself or others anywhere in the world
  • Give or remove items from any player's inventory
  • Change the world — time, weather, difficulty, game rules
  • Spawn entities — mobs, items, even lightning
  • Build instantly — fill areas with blocks, clone structures
  • Create game logic — scoreboards, tags, automated systems
PRO TIP

You can press ↑ Up Arrow in the chat to cycle through previously typed commands. Great for re-running commands with small tweaks.

BEDROCK vs JAVA

Bedrock and Java editions share most commands, but there are important differences. This entire course is Bedrock-only. Every syntax example, every argument, every quirk is specific to Bedrock Edition running on console, mobile, or Windows 10/11.

Key Bedrock differences you'll learn about:

  • No /data command — you can't read or modify NBT data
  • Different /execute syntax than Java
  • Bedrock uses /replaceitem instead of Java's /item
  • Block/item IDs don't require the minecraft: prefix
  • Bedrock has exclusive commands like /tickingarea, /camerashake, /dialogue
REMEMBER

If you see a tutorial online that uses /data, /attribute, or /worldborder, that's Java-only. It won't work on Bedrock. This course will never lead you astray.

LESSON 2 OF 14

ENABLING COMMANDS

Before you can use any command, you need to turn on cheats in your world. Here's exactly how — and what it costs you.

TURNING ON CHEATS

In Bedrock Edition, commands are called "cheats" in the settings. To enable them:

  • Open your world settings (pencil icon on the world)
  • Scroll to Game section
  • Toggle "Activate Cheats" to ON
  • Confirm the popup warning
WARNING

Enabling cheats permanently disables achievements for that world — even if you turn cheats off later. Create a separate world for learning commands so your survival achievements stay safe.

CREATING A PRACTICE WORLD

We recommend creating a dedicated world for this course:

  • Create New World → name it "Command Practice"
  • Set to Creative Mode (gives you flight + unlimited blocks)
  • Set World Type to Flat (clean workspace)
  • Turn on Activate Cheats
  • Turn on Always Day (optional, but nice)

OPENING THE CHAT

Commands are typed in the chat window. How you open it depends on your platform:

PLATFORMHOW TO OPEN CHAT
Windows 10/11Press T or / (slash auto-fills the prefix)
XboxPress D-Pad Right, then tap the chat icon
PlayStationPress D-Pad Right, then tap the chat icon
SwitchPress D-Pad Right, then tap the chat icon
MobileTap the chat bubble icon at the top of the screen
PRO TIP

On keyboard, pressing / instead of T opens chat with the slash already typed — saves a keystroke every time.

YOUR FIRST COMMAND

Let's run your very first command. Open chat and type:

TRY IT
/time set day
 
→ Set the time to 1000

If the time changed to daytime, congratulations — you just ran your first Bedrock command.

LESSON 3 OF 14

CHAT VS COMMAND BLOCKS

There are two ways to run commands: typing them in chat, or placing them in Command Blocks. Each has different strengths.

CHAT COMMANDS

Typing / in the chat is the simplest way to run a command. It runs once, immediately, and the results appear in your chat log. This is great for quick one-off actions like teleporting or changing the time.

  • Runs once when you press Enter
  • Requires you to type it each time
  • Shows output feedback in chat
  • You are always the "executor" of chat commands

COMMAND BLOCKS

Command Blocks are physical blocks you place in the world that store and execute commands automatically. They're the foundation of all Bedrock map-making and automation.

To get a command block, type:

CHAT
/give @s command_block

Command blocks cannot be obtained from the creative inventory — you must use the /give command.

THREE TYPES OF COMMAND BLOCKS

TYPECOLORBEHAVIOR
ImpulseOrangeRuns once when activated by redstone or "Always Active"
ChainGreenRuns when the command block behind it finishes — used for sequences
RepeatPurpleRuns every game tick (20 times per second) while active
FOR NOW

We'll use chat commands for the rest of this Iron tier. You'll dive deep into command blocks in the Emerald Knowledge course when you're ready to build automated systems.

LESSON 4 OF 14

/GAMEMODE

Switch between Survival, Creative, Adventure, and Spectator modes on the fly. One of the most-used commands in all of Minecraft.

SYNTAX

SYNTAX
/gamemode <mode> [player]

GAME MODES

MODEALIASDESCRIPTION
survivals or 0Normal gameplay — health, hunger, resource gathering
creativec or 1Unlimited blocks, flight, invincible, instant break
adventurea or 2Can't break or place blocks (for custom maps)
spectator6Invisible, can fly through blocks, view only

EXAMPLES

EXAMPLES
// Switch yourself to creative
/gamemode creative
 
// Short version — same thing
/gamemode c
 
// Even shorter — numeric alias
/gamemode 1
 
// Switch a specific player to survival
/gamemode survival Steve
 
// Switch ALL players to adventure
/gamemode adventure @a
PRO TIP

Adventure mode is essential for map makers. Players can interact with buttons, levers, and doors, but can't break or place blocks — perfect for controlled experiences.

BEDROCK NOTE

Spectator mode (number 6, not 3) was added to Bedrock in version 1.19.50. Older devices may not support it. The numeric alias skips 3, 4, and 5.

LESSON 5 OF 14

/TP & /SPAWNPOINT

Instantly move yourself or others anywhere in the world, and set where players respawn after dying.

/TP SYNTAX

SYNTAX
// Teleport to exact coordinates
/tp <target> <x> <y> <z>
 
// Teleport to another player
/tp <target> <destination player>
 
// Teleport with rotation (yaw, pitch)
/tp <target> <x> <y> <z> <y-rot> <x-rot>

EXAMPLES

EXAMPLES
// Teleport yourself to x=100, y=64, z=-200
/tp @s 100 64 -200
 
// Teleport yourself to player "Alex"
/tp @s Alex
 
// Teleport all players to you
/tp @a @s
 
// Teleport and face south (180° yaw, 0° pitch)
/tp @s 0 100 0 180 0
ABOUT Y COORDINATE

Y is height. Sea level is Y=62. Y=0 is the bottom of the world. Y=320 is the build limit. If you teleport to a Y value inside solid blocks, you'll suffocate — use creative mode for safety.

/SPAWNPOINT

SYNTAX
// Set your spawn to current location
/spawnpoint
 
// Set spawn for a player at specific coords
/spawnpoint @a 0 65 0
 
// Set world spawn (where new players start)
/setworldspawn 0 65 0
LESSON 6 OF 14

/GIVE & /CLEAR

Add any item to a player's inventory or remove specific items. Essential for testing, rewards, and map-making.

/GIVE SYNTAX

SYNTAX
/give <player> <item> [amount] [data]

EXAMPLES

EXAMPLES
// Give yourself 64 diamonds
/give @s diamond 64
 
// Give a diamond sword (1 = quantity)
/give @s diamond_sword 1
 
// Give everyone a golden apple
/give @a golden_apple
 
// Give oak planks (data value 0 = oak)
/give @s planks 64 0
 
// Give a command block
/give @s command_block
BEDROCK NOTE

Unlike Java, Bedrock's /give cannot attach NBT data to items. You can't give pre-enchanted or renamed items. To enchant, use /give first, then /enchant separately.

/CLEAR SYNTAX

SYNTAX
/clear [player] [item] [data] [maxCount]
 
// Clear your entire inventory
/clear @s
 
// Remove only diamonds from your inventory
/clear @s diamond
 
// Remove exactly 10 diamonds (leave the rest)
/clear @s diamond 0 10
 
// Check if player HAS diamonds (remove 0)
/clear @s diamond 0 0
PRO TIP

Using /clear @s diamond 0 0 with maxCount=0 doesn't remove anything — it just tests whether the player has that item. This is hugely useful for command block logic later.

LESSON 7 OF 14

/TIME & /WEATHER

Control the sun, moon, and sky. Set exact times, freeze the day-night cycle, and toggle rain and thunderstorms.

/TIME

SYNTAX
/time set <value>
/time add <value>
/time query <daytime|gametime|day>
TIME VALUETICKSDESCRIPTION
sunrise23000Dawn breaking
day1000Full daylight
noon6000Sun at peak
sunset12000Sun going down
night13000Stars appear, hostile mobs spawn
midnight18000Darkest point
EXAMPLES
/time set day
/time set 6000 // exact noon
/time add 1000 // advance 1000 ticks
/time query daytime // shows current time in ticks
FULL DAY = 24000 TICKS

One full Minecraft day is 24,000 ticks, which equals about 20 real-world minutes. Each tick is 1/20th of a second.

/ALWAYSDAY (DAYLOCK)

BEDROCK EXCLUSIVE
// Freeze the day-night cycle
/alwaysday true
 
// Same command, alternate name
/daylock true

/WEATHER

EXAMPLES
/weather clear // stop rain
/weather rain
/weather thunder
/weather clear 10000 // clear for 10000 seconds
 
// Toggle current weather (Bedrock exclusive)
/toggledownfall
LESSON 8 OF 14

TARGET SELECTORS

Target selectors are how commands know WHO to affect. Master these five symbols and you control everything.

THE FIVE SELECTORS

SELECTORTARGETSDESCRIPTION
@sSelfThe entity running the command (you, or the command block)
@pNearest playerThe closest player to the command's execution point
@aAll playersEvery player in the world, including dead players
@eAll entitiesEvery entity — players, mobs, items, arrows, everything
@rRandom playerOne randomly chosen player
EXAMPLES
/kill @e // kills EVERYTHING (careful!)
/tp @a 0 100 0 // teleports ALL players
/give @r diamond // one lucky random player

SELECTOR ARGUMENTS

You can filter selectors by adding arguments inside square brackets []:

FILTERING
// Kill only zombies
/kill @e[type=zombie]
 
// Teleport players within 10 blocks of you
/tp @a[r=10] 0 100 0
 
// Give diamonds to players named "Steve"
/give @a[name=Steve] diamond
 
// Kill closest 3 creepers
/kill @e[type=creeper,c=3]
 
// Target players in survival mode
/tp @a[m=survival] 0 100 0

COMMON SELECTOR ARGUMENTS

ARGUMENTMEANINGEXAMPLE
typeEntity type@e[type=zombie]
rMax radius (blocks)@a[r=20]
rmMin radius@a[rm=5]
cCount (limit results)@e[c=1]
nameEntity name@e[name=Bob]
mGame mode@a[m=creative]
tagHas scoreboard tag@e[tag=enemy]
scoresScoreboard scores@a[scores={kills=5..}]
PRO TIP

Use ! to negate: @e[type=!player] targets every entity that is NOT a player. @a[name=!Steve] targets everyone except Steve.

LESSON 9 OF 14

COORDINATE SYSTEMS

Absolute, relative, and local coordinates — three ways to specify positions in the world.

ABSOLUTE COORDINATES

Exact positions in the world using X, Y, Z numbers. Press F1 or check Settings → Show Coordinates to see your current position.

  • X — East (+) / West (−)
  • Y — Up (+) / Down (−) — this is height
  • Z — South (+) / North (−)
ABSOLUTE
/tp @s 100 64 -200 // go to exact spot
/setblock 0 65 0 diamond_block

RELATIVE COORDINATES (~)

The tilde ~ means "relative to current position." ~5 means "5 blocks from where I am." ~ alone means "exactly where I am" (offset of 0).

RELATIVE ~
// Teleport 10 blocks UP from current pos
/tp @s ~ ~10 ~
 
// Place a block 5 blocks in front (south)
/setblock ~ ~ ~5 stone
 
// Move 3 east, same height, 3 south
/tp @s ~3 ~ ~3

LOCAL COORDINATES (^)

The caret ^ is relative to where you're looking, not compass direction. This is extremely useful for "in front of me" logic.

  • ^X — Left (−) / Right (+)
  • ^Y — Down (−) / Up (+)
  • ^Z — Behind (−) / Forward (+)
LOCAL ^
// Teleport 5 blocks in front of where you look
/tp @s ^ ^ ^5
 
// Place block 3 blocks ahead, 2 blocks up
/setblock ^ ^2 ^3 glowstone
IMPORTANT

You cannot mix ~ and ^ in the same coordinate set. It's all tildes or all carets — never ~5 ^2 ~3.

LESSON 10 OF 14

/SAY, /TELL & /MSG

Send messages to chat — publicly or privately. The building blocks for dialogue, announcements, and debugging.

/SAY

Broadcasts a message to all players, prefixed with the sender's name (or [Command Block]).

EXAMPLES
/say Welcome to the arena!
→ [Steve] Welcome to the arena!
 
/say The game starts in 10 seconds

/TELL and /MSG

/tell and /msg are identical — they send a private message to a specific player. Only the sender and recipient see it.

EXAMPLES
/tell Alex You have been chosen!
/msg @a Prepare for battle // whispers to all

/ME

Sends a message styled as an action or emote.

EXAMPLE
/me has entered the dungeon
→ * Steve has entered the dungeon
MAP-MAKER TIP

For styled messages with colors and click events, use /tellraw (Diamond tier). For now, /say is perfect for announcements and debug messages in command blocks.

LESSON 11 OF 14

/DIFFICULTY & /GAMERULE

Control how hard the world is and change the fundamental rules of the game — mob spawning, fire spread, keep inventory, and more.

/DIFFICULTY

SYNTAX
/difficulty peaceful // p or 0 — no hostile mobs
/difficulty easy // e or 1
/difficulty normal // n or 2
/difficulty hard // h or 3

/GAMERULE

Game rules are switches that change fundamental behaviors. There are dozens — here are the most important ones:

GAMERULEDEFAULTWHAT IT DOES
keepInventoryfalseKeep items when you die
mobGriefingtrueMobs can destroy blocks (creepers, endermen)
doDaylightCycletrueTime passes naturally
doWeatherCycletrueWeather changes naturally
doMobSpawningtrueMobs spawn naturally
pvptruePlayers can damage each other
doFireTicktrueFire spreads and burns
commandBlockOutputtrueCommand blocks show output in chat
showCoordinatesfalseShow XYZ on screen
doImmediateRespawnfalseSkip death screen
EXAMPLES
/gamerule keepInventory true
/gamerule mobGriefing false
/gamerule showCoordinates true
/gamerule commandBlockOutput false // quiet command blocks
MAP-MAKER ESSENTIALS

For custom maps, almost always set: commandBlockOutput false, sendCommandFeedback false, mobGriefing false, and doImmediateRespawn true. This hides the "machinery" from players.

LESSON 12 OF 14

/KILL & /EFFECT

Remove entities from the world and apply potion effects to players and mobs — speed, strength, invisibility, and more.

/KILL

EXAMPLES
/kill // kills yourself
/kill @e[type=zombie] // all zombies
/kill @e[type=item] // clear dropped items
/kill @e[type=!player] // everything except players
/kill @e[type=arrow] // clean up stray arrows

/EFFECT

SYNTAX
/effect <target> <effect> [seconds] [amplifier] [hideParticles]
 
// Give yourself speed II for 60 seconds
/effect @s speed 60 1
 
// Night vision for 999999 seconds (basically permanent)
/effect @s night_vision 999999
 
// Invisibility without particles (hidden = true)
/effect @s invisibility 120 0 true
 
// Remove all effects
/effect @s clear
AMPLIFIER VALUES

Amplifier 0 = level I, amplifier 1 = level II, etc. Speed II (amplifier 1) is noticeably faster than Speed I (amplifier 0). Max useful amplifier is usually 255.

LESSON 13 OF 14

/XP & /ENCHANT

Control experience points and apply enchantments directly to held items via commands.

/XP

SYNTAX
/xp <amount> [player] // add XP points
/xp <amount>L [player] // add XP levels
 
// Give 1000 XP points
/xp 1000 @s
 
// Give 30 levels (note the L)
/xp 30L @s
 
// Remove 5 levels
/xp -5L @s

/ENCHANT

Applies an enchantment to the item the player is currently holding.

SYNTAX
/enchant <player> <enchantment> [level]
 
// Sharpness V on held sword
/enchant @s sharpness 5
 
// Unbreaking III on held item
/enchant @s unbreaking 3
 
// Protection IV on held armor
/enchant @s protection 4
LIMITATIONS

/enchant only applies enchantments that are valid for the held item (no Sharpness on a helmet). It also respects max levels — you can't do Sharpness 10. For impossible combinations, you'd need behavior packs.

LESSON 14 OF 14

IRON REVIEW & NEXT STEPS

You've completed the Iron tier. Here's everything you've learned and where to go next.

WHAT YOU NOW KNOW

You've mastered the foundations of Bedrock commands:

  • How commands work and their basic structure
  • Enabling cheats and the achievement tradeoff
  • Chat commands vs Command Blocks (Impulse, Chain, Repeat)
  • /gamemode — switching between all four modes
  • /tp and /spawnpoint — movement and respawn control
  • /give and /clear — full inventory control
  • /time and /weather — world atmosphere
  • Target selectors — @s, @p, @a, @e, @r and filtering with [arguments]
  • Coordinates — absolute, relative (~), and local (^)
  • /say, /tell, /msg — communication commands
  • /difficulty and /gamerule — world rules
  • /kill and /effect — entity control and potion effects
  • /xp and /enchant — experience and item enhancement
IRON COMPLETE

You now have the vocabulary and fundamentals to use commands effectively in any Bedrock world. Everything from here builds on what you've learned in these 14 lessons.

PRACTICE CHALLENGES

Before moving on, try these in your practice world:

  • Teleport to Y=200 and switch to survival — can you survive the fall with /effect?
  • Give yourself a full diamond kit and enchant every piece
  • Use /kill @e[type=!player] and then repopulate with /difficulty changes
  • Find your coordinates, teleport away, and then teleport back to the exact same spot
  • Set up the perfect map-maker gamerules: no mob griefing, keep inventory, always day

NEXT: EMERALD KNOWLEDGE

The Emerald tier takes you from using commands to building systems. You'll learn:

  • /fill, /clone, /setblock — mass block manipulation
  • Command Block chains and automated sequences
  • /execute — the most powerful command in the game
  • /scoreboard — variables, tracking, and game logic
  • /function files — organize commands into reusable scripts
BACK TO LEARNING PATHS