Bedrock Edition

Minecraft Bedrock Commands 101

Searchable cheat sheet with 188+ copy-ready examples — essentials plus niche creator/admin commands. Still stuck? Use /help on your build.

Before you type anything

Turn on cheats: enable cheats & experiments. Achievements on that world will usually lock.

Java list: Java commands 101.

Selectors

  • @s self · @p nearest player · @a all players · @e entities · @r random player
  • Common args: c=1 count · r=10 radius · type= · name= · tag=

Showing 188 of 188 examples. Tap copy on any row.

Essentials

What most hosts open chat for first.

/gamemode s

Survival (also survival, 0)

/gamemode c @p

Creative for nearest player (also creative, 1)

/gamemode a

Adventure (also adventure, 2)

/gamemode spectator

Spectator where supported

/tp @s 0 80 0

Teleport yourself to XYZ

/tp @s ~ ~10 ~

10 blocks straight up (relative ~)

/tp Steve Alex

Teleport Steve to Alex

/tp @p @e[type=armor_stand,c=1]

Nearest player → nearest armor stand

/teleport @s 100 70 -200 facing 100 70 -190

/teleport alias with facing

/give @s diamond 64

Give items (Bedrock IDs; no Java components)

/give @s command_block 1

Command block (cheats / creative)

/clear @s

Clear entire inventory

/clear @s diamond 0 10

Remove up to 10 diamonds (data 0)

/kill @s

Kill yourself

/kill @e[type=item]

Clear dropped items

/kill @e[type=!player,r=20]

Kill non-players in 20-block radius

/xp 1000L @s

Add 1000 levels (L = levels)

/xp -5L @p

Remove 5 levels from nearest player

/enchant @s sharpness 5

Enchant held item

/enchant @s unbreaking 3

Unbreaking III on held item

/effect @s speed 60 1

Speed II for 60s (amplifier is 0-based: 1 = II)

/effect @s clear

Clear all effects

/effect @e[type=zombie,r=30] slowness 10 2 true

Hide particles (true)

World, time & weather

Day cycle, weather, difficulty, spawn.

/time set day

Also night, noon, midnight, or tick number

/time set 0

Sunrise-ish tick

/time add 1000

Advance time

/time query daytime

Query current daytime ticks

/weather clear

clear | rain | thunder

/weather rain 1200

Rain for 1200 seconds

/toggledownfall

Toggle precipitation

/alwaysday true

Lock daylight (also /daylock true)

/daylock false

Unlock day-night cycle

/difficulty peaceful

peaceful | easy | normal | hard (or 0–3)

/setworldspawn ~ ~ ~

World spawn at your feet

/spawnpoint @s ~ ~ ~

Personal bed/spawn for player

/clearspawnpoint @s

Remove personal spawn point

/spreadplayers 0 0 10 50 false @a

Scatter players around XZ with spacing

Gamerules

Common /gamerule toggles (query with /gamerule <name>).

/gamerule keepInventory true

Keep items on death

/gamerule mobGriefing false

Stop creeper/enderman/ghast grief

/gamerule doDaylightCycle false

Freeze time

/gamerule doWeatherCycle false

Freeze weather

/gamerule doMobSpawning false

Natural mob spawns off

/gamerule doFireTick false

Fire doesn’t spread/burn out terrain

/gamerule tntExplodes false

Disable TNT explosions

/gamerule fallDamage false

No fall damage

/gamerule drowningDamage false

No drowning damage

/gamerule fireDamage false

No fire damage

/gamerule pvp false

Disable player vs player

/gamerule showCoordinates true

Show XYZ (Bedrock)

/gamerule sendCommandFeedback false

Hide command success spam

/gamerule commandBlocksEnabled true

Allow command blocks

/gamerule randomTickSpeed 3

Default 1; higher = faster crops/leaves

/gamerule spawnRadius 10

World-spawn random radius

/gamerule playersSleepingPercentage 100

How many must sleep (where supported)

/gamerule recipesUnlock true

Recipe unlock behavior (version-dependent)

Locate biomes & structures

IDs vary slightly by version — tab-complete in-game when available.

/locate structure village

Nearest village

/locate structure stronghold

Stronghold / End portal room area

/locate structure fortress

Nether fortress

/locate structure bastion_remnant

Bastion remnant

/locate structure ancient_city

Ancient city

/locate structure mansion

Woodland mansion

/locate structure monument

Ocean monument

/locate structure trail_ruins

Trail ruins

/locate structure trial_chambers

Trial chambers

/locate structure buried_treasure

Buried treasure

/locate structure ruined_portal

Ruined portal

/locate structure shipwreck

Shipwreck

/locate structure ocean_ruin

Ocean ruins

/locate structure pillager_outpost

Pillager outpost

/locate biome cherry_grove

Cherry grove

/locate biome pale_garden

Pale garden

/locate biome mushroom_island

Mushroom fields (id may be mushroom_island)

/locate biome lush_caves

Lush caves

/locate biome deep_dark

Deep dark

/locate biome sulfur_caves

Sulfur caves (Chaos Cubed / when present)

Blocks & structures

Fill, clone, setblock, structure save/load.

/setblock ~ ~ ~ stone

Place stone at feet

/setblock ~ ~-1 ~ dirt 0 replace

Replace block below (legacy data)

/fill ~-2 ~-1 ~-2 ~2 ~3 ~2 glass 0 hollow

Hollow glass box

/fill ~-5 ~ ~-5 ~5 ~5 ~5 air 0 destroy

Clear region; drop items

/fill ~-3 ~ ~-3 ~3 ~2 ~3 stone 0 outline

Stone outline only

/clone 0 64 0 10 70 10 20 64 20

Copy region to new corner

/clone 0 64 0 10 70 10 20 64 20 masked

Skip air when cloning

/clone 0 64 0 10 70 10 20 64 20 filtered stone

Only clone stone

/structure save myhouse ~-5 ~-1 ~-5 ~5 ~10 ~5

Save structure from selection

/structure load myhouse ~ ~ ~

Load structure at feet

/structure delete myhouse

Delete saved structure

/place feature minecraft:oak ~ ~ ~

Place feature (ids version-specific)

/place structure village_plains ~ ~ ~

Place jigsaw structure when supported

Entities, items & riding

Summon, damage, ride, replaceitem, tags, events.

/summon cow ~ ~ ~

Spawn cow at feet

/summon lightning_bolt ~ ~ ~

Lightning

/summon armor_stand ~ ~ ~

Armor stand

/summon xp_orb ~ ~ ~

XP orb

/damage @e[type=zombie,c=1] 20 entity_attack

Deal 20 damage (cause varies)

/replaceitem entity @s slot.hotbar 0 diamond_sword 1

Put sword in hotbar slot 0

/replaceitem entity @s slot.weapon.mainhand 0 netherite_pickaxe 1

Main hand

/replaceitem block ~ ~-1 ~ slot.container 0 bread 16

Chest/hopper below

/ride @s start_riding @e[type=horse,c=1]

Mount nearest horse

/ride @s stop_riding

Dismount

/ride @e[type=boat,c=1] evict_riders

Kick riders out

/tag @s add builder

Add entity tag

/tag @s remove builder

Remove tag

/tag @a list

List your tags

/event entity @e[type=creeper,c=1] minecraft:start_exploding

Trigger entity event (ids vary)

/playanimation @e[type=player,c=1] animation.player.sleeping

One-shot animation (creator)

Player, camera & HUD

Abilities, camera, titles, input — Bedrock-heavy set.

/ability @s mayfly true

Allow flight (Education/ability worlds)

/ability @s worldbuilder true

Worldbuilder ability where available

/ability @s mute true

Mute player chat ability flag

/camera @s set minecraft:first_person

Camera preset (ids vary)

/camera @s clear

Reset camera

/camerashake add @s 0.5 2 positional

Shake camera intensity/duration

/camerashake stop @s

Stop shake

/hud @s hide all

Hide HUD elements (where supported)

/hud @s reset

Reset HUD visibility

/inputpermission @s movement disabled

Lock movement input

/inputpermission @s camera enabled

Re-enable camera look

/title @a title §6Boss Fight

Plain title (§ color codes)

/title @a subtitle Get Ready

Subtitle

/title @a actionbar Wave 1

Action bar

/title @a times 10 70 20

Fade in / stay / fade out ticks

/titleraw @a title {"rawtext":[{"text":"Hello"}]}

JSON title (titleraw)

/tellraw @a {"rawtext":[{"text":"Hi everyone"}]}

JSON chat message

/say Adventure starts now

Broadcast as narrator/server style

/tell Steve Meet at spawn

Private message (/msg, /w aliases)

/me celebrates

* player celebrates

Sound, music, particles & fog

Atmosphere commands for maps and cutscenes.

/playsound random.levelup @a ~ ~ ~ 1 1

Play sound at location

/stopsound @a

Stop sounds for players

/music play music.game 1 0

Play music track (ids pack-dependent)

/music stop 2

Fade out music

/music volume 0.5

Set music volume

/particle minecraft:heart_particle ~ ~2 ~

Spawn particles

/particle minecraft:huge_explosion_emitter ~ ~ ~

Explosion emitter

/fog @s push minecraft:fog_default fogid

Push fog setting (resource pack ids)

/fog @s remove fogid

Remove named fog

/fog @s pop fogid

Pop fog stack entry

Loot & recipes

Loot tables and recipe unlocks.

/loot spawn ~ ~ ~ loot chests/simple_dungeon

Spawn loot table drops (path varies)

/loot give @s loot entities/zombie

Give zombie loot table to player

/loot insert ~ ~-1 ~ loot chests/village/village_weaponsmith

Insert into container below

/recipe give @s *

Unlock all recipes for player

/recipe take @s *

Revoke all recipes

/recipe give @s boat

Unlock a specific recipe id

Scoreboards, execute & tests

Map logic, functions, schedules.

/scoreboard objectives add kills dummy Kills

Create dummy objective

/scoreboard objectives setdisplay sidebar kills

Show on sidebar

/scoreboard players set @s kills 0

Set score

/scoreboard players add @s kills 1

Increment

/scoreboard players list @s

List scores for player

/execute as @a at @s run say hi

Modern execute (as/at/run)

/execute as @e[type=cow] at @s run particle minecraft:heart_particle ~ ~1 ~

Hearts on cows

/execute if entity @p[r=5] run say someone nearby

Conditional execute

/function mypack/start

Run behavior-pack function file

/schedule on_area_loaded add ~-16 ~ ~-16 ~16 ~ ~16 mypack/load

Run when chunks load

/testfor @a[r=10]

Count matching entities (command-block friendly)

/testforblock ~ ~-1 ~ stone

Test block below

/testforblocks 0 64 0 5 70 5 10 64 10

Compare two regions

Ticking areas & mob events

Keep chunks loaded; control raids/wandering traders etc.

/tickingarea add ~-8 ~ ~-8 ~8 ~ ~8 base

Named ticking area around you

/tickingarea add circle ~ ~ ~ 4 spawnchunks

Circular ticking area

/tickingarea remove base

Remove by name

/tickingarea remove_all

Clear all ticking areas

/tickingarea list all

List ticking areas

/mobevent minecraft:pillager_patrols_event false

Disable pillager patrols

/mobevent minecraft:wandering_trader_event false

Disable wandering trader

/mobevent minecraft:ender_dragon_event true

Allow dragon event where applicable

Ops, Realms & dedicated server

Permission and server management (not all work on every host).

/op Steve

Grant operator

/deop Steve

Revoke operator

/kick Steve Griefing

Kick with reason

/list

List online players

/allowlist add Steve

Allowlist (whitelist) add

/allowlist remove Steve

Allowlist remove

/allowlist list

Show allowlist

/allowlist on

Enable allowlist

/setmaxplayers 10

Session max players

/reload

Reload functions/scripts from behavior packs

/save hold

BDS: pause saving (admin)

/save resume

BDS: resume saving

/save query

BDS: save status

/stop

Stop dedicated server

/transfer Steve play.example.com 19132

Transfer player to another server

/wsserver wss://example.com

Connect WebSocket (/connect alias)

/changesetting difficulty hard

BDS: change setting live

/permission list

Permissions (where supported)

/packstack

Print active pack stack

Creator / niche

NPC dialogue, scripting hooks, GameTest — often needs experiments or packs.

/dialogue open @e[type=npc,c=1] @p scene1

Open NPC dialogue scene

/dialogue change @e[type=npc,c=1] scene2 @p

Change dialogue scene

/scriptevent craftmc:demo {"ok":true}

Fire script event with payload

/script debugger connect

Script debugger (dev builds / where enabled)

/gametest runall

Run GameTests (Beta APIs experiment)

/help

List commands you can run

/help give

Help for one command

/help 2

Help page 2

FAQ

Do Bedrock commands match Java?

Many names match, but syntax differs: Bedrock often uses older numeric block data, selector args like c=1 and r=10, replaceitem instead of modern Java item components, and Bedrock-only commands (structure, camerashake, tickingarea, dialogue, ability). Always test on Bedrock.

How do I open chat / commands on console?

Enable cheats, then open chat from the pause/emote UI (controller mapping varies). On Windows/mobile use T or the chat button.

Why does /locate fail?

Wrong structure/biome id for your version, cheats off, or no permission. Use /help locate and tab-complete when the game offers it.

What if a niche command isn’t listed?

Run /help in-game for the live list on your build, or /help <command>. Preview/BDS builds add commands that stable Realms may not have.

CraftMC

Your ultimate resource for Minecraft tools and guides.

CraftMC's tools are free to use. If the site has helped you, you can support its hosting and continued development.

Support CraftMC
Professional ToolsExpert GuidesActive Support

Popular Tools

Quick Links

Also from us

We also run sister sites for Fortnite and Roblox players — tools, guides, and game codes.

© 2026 CraftMC. All rights reserved. Also check out our Fortnite and Roblox tools sites.