Minecraft Command Block Generator
Create powerful command blocks for Minecraft Java and Bedrock editions with our easy-to-use generator.
✨ What You Can Do With This Tool
- Generate command blocks for both Java and Bedrock editions
- Create chains of commands that execute in sequence
- Design advanced execute commands with target selectors
- Use our Scoreboard Helper to manage game objectives
- Choose from pre-made templates for common commands
- Copy commands directly to your clipboard
Command Block Types Explained
Impulse
Executes once when activated by redstone. Perfect for one-time commands or starting a sequence.
Chain
Executes after the command block pointing into it. Ideal for creating sequences of commands.
Repeating
Executes continuously while activated. Great for commands that need to run constantly.
Command Block Generator
Use our intuitive interface to create command blocks for your Minecraft world. Select the type, configure settings, and copy the generated command.
Command Block Properties
- Type: impulse
- Conditional: No
- Always Active: No
- Track Output: Yes
Generated Command
No command generated yet
Scoreboard Helper
Scoreboards are powerful tools for tracking player statistics, creating custom game mechanics, and storing data in Minecraft. Our Scoreboard Helper makes it easy to generate the commands you need.
Must be unique, no spaces, max 16 characters
Shown to players, can include spaces
Determines how scores are tracked
Please enter an objective name
Command Block Tutorial
New to command blocks? Here's a quick guide to help you get started with using command blocks in Minecraft.
How to Get Command Blocks
Command blocks cannot be crafted or found in the Creative inventory. To get one:
- Enable cheats in your world
- Type
/give @s command_block
in the chat - For Bedrock Edition, enable "Education Edition" in world settings
Basic Command Block Usage
To use a command block:
- Place the command block in your world
- Right-click (Java) or tap (Bedrock) to open the interface
- Type your command without the leading slash (/)
- Configure the block settings (Conditional, Always Active, etc.)
- Apply redstone power to activate (unless set to Always Active)
Command Block Settings
Conditional vs. Unconditional
Conditional: Only executes if the command block behind it was successful.
Unconditional: Always executes regardless of previous commands.
Needs Redstone vs. Always Active
Needs Redstone: Requires a redstone signal to activate.
Always Active: Executes without needing redstone power.
Popular Command Examples
Teleport All Players
tp @a 100 64 100
Teleports all players to coordinates X:100, Y:64, Z:100.
Give Enchanted Item
give @p diamond_sword{Enchantments:[{id:"minecraft:sharpness",lvl:5}]}
Gives the nearest player a diamond sword with Sharpness V.
Weather Control
weather thunder 1000
Sets thunderstorm weather for 1000 seconds (16.6 minutes).
Custom Mob Spawning
summon zombie ~ ~ ~ {CustomName:'text":"Super Zombie',Health:100f}
Spawns a zombie named "Super Zombie" with 100 health points.