Getting started
BeginnerTest your first Command Block
Press a button and make the Command Block announce a chat message. A quick check that settings and permissions work.
Open setup
Command Block Library
Choose what you want to happen, then follow every Command Block setting. Java and Bedrock have separate screens you can compare directly with the game.
Before you start
/give @s minecraft:command_block 133 USE CASES
Copy the command, then match the block type, condition, and Redstone settings shown on the example screen.
Getting started
BeginnerPress a button and make the Command Block announce a chat message. A quick check that settings and permissions work.
Open setupPlayer
BeginnerLet the player nearest the Command Block press a button and teleport to coordinates 0 70 0.
Open setupMessages
BeginnerPress a button to show a large welcome message to the nearest player, suitable for a map entrance or stage start.
Open setupWorld
IntermediateUse two connected Command Blocks. One press changes the time to day and clears the weather.
Open setupRewards
IntermediatePress a button to give the nearest player one diamond, then apply Speed from a Chain Block.
Open setupAutomation
AdvancedUse a Repeat Command Block to check every player and apply Speed while they stand on a gold block.
Open setupAutomation
IntermediateUse a Repeat Command Block to keep applying high-level Slowness to zombies within 8 blocks, making the example mob stop walking.
Open setupPlayer
BeginnerPress a button to heal the player nearest the Command Block with Instant Health II, useful at rest stops or before a boss room.
Open setupPlayer
BeginnerPress a button to remove every status effect from the nearest player, useful at a stage exit or testing area.
Open setupPlayer
BeginnerUse a pressure plate to switch the entering player to Adventure mode and protect blocks in your map.
Open setupPlayer
BeginnerLet a player step on a checkpoint to set their personal respawn point above the Command Block for adventures or parkour.
Open setupRewards
IntermediatePress once to receive a stone sword, 16 bread, and 32 torches from three connected Command Blocks.
Open setupPlayer
IntermediatePress a button to remove every item from the nearest player inventory, useful at a minigame reset point.
Open setupWorld
BeginnerPress a button to change the whole world to Peaceful, useful for build mode or a map control room.
Open setupWorld
BeginnerPress a button to start a 60-second thunderstorm for a dramatic stage opening or special event.
Open setupWorld
IntermediateUse an operator button to set the world spawn to coordinates 0 70 0 for a lobby or map starting point.
Open setupWorld
AdvancedPress a button to replace blocks from 10 65 10 through 20 75 20 with air, resetting an arena or testing room.
Open setupWorld
AdvancedCopy an arena template from 0 64 0 through 10 74 10 to 20 64 20 to reset the scene before another round.
Open setupAutomation
IntermediatePress a button to remove dropped items within 30 blocks of the Command Block, reducing leftovers in an arena or farm.
Open setupMessages
IntermediateUse four Command Blocks and Redstone Repeaters to announce 3, 2, 1, and Go! in chat before a minigame starts.
Open setupAutomation
AdvancedPress once to teleport every player to 0 70 0, switch them to Adventure mode, and clear all effects.
Open setupWorld
BeginnerPress a button to turn off mobGriefing, stopping mobs such as Creepers and Endermen from changing or destroying blocks.
Open setupPlayer
BeginnerBedrock-only use case: press a button to summon a horse for the player near the Command Block and mount it immediately with one command.
Open setupPlayer
BeginnerBedrock-only use case: press a button to make the player near the Command Block leave their current vehicle immediately.
Open setupAutomation
BeginnerBedrock-only use case: stepping on a pressure plate deals 4 damage to the player nearest the trap.
Open setupRewards
BeginnerBedrock-only use case: press a button to give 5 experience levels to the nearest player.
Open setupRewards
IntermediateBedrock-only use case: press a button to apply Unbreaking III to the item held by the nearest player.
Open setupAutomation
IntermediateBedrock-only use case: press a button to scatter every player randomly around center 0 0 before a minigame starts.
Open setupWorld
BeginnerBedrock-only use case: press once so players keep their items and experience after death.
Open setupWorld
IntermediateBedrock-only use case: press once to set daytime, then stop the day-night cycle with a Chain Block.
Open setupWorld
BeginnerBedrock-only use case: press once to stop natural mob spawning, useful for a lobby or build world.
Open setupMessages
IntermediateBedrock-only use case: show an action-bar message to every player who enters a 6-block radius around a Repeat Command Block.
Open setupAutomation
IntermediateBedrock-only use case: press a button to remove entities in family=monster within 30 blocks of the Command Block.
Open setupClear the search or choose a different filter.