Minecraft Command Generator
Build and copy Java Edition commands — summon, give, execute, data, fill, villager trades, and more.
Essentials
Essential commands for everyday Minecraft gameplay. Includes teleportation, status effects, enchantments, gamemode changes, weather and time control, particle effects, title displays, and structure location. These are the most commonly used commands for world management and player control.
Mobs & Entities
Create and customize mobs and entities with advanced NBT data. Spawn basic mobs with custom attributes, create villagers with custom trades for shops, or spawn rideable mounts (horses, donkeys) with chest inventory. Perfect for adventure maps, custom gameplay, or server mechanics.
Items & Equipment
Generate custom items with NBT data including names, lore, enchantments, and special properties. Create basic items with custom properties or design elaborate firework rockets with multiple colors, shapes, and effects. Ideal for rewards, special tools, or decorative items.
World & Structures
Manipulate the world with block placement commands. Use the fill command with shape presets to quickly create spheres, cylinders, walls, and other geometric structures. Essential for building large structures, creating arenas, or setting up adventure map environments.
Creating Custom Shops
Use the Villager Trade Generator to create custom shops. Spawn villagers with specific trades, set prices, and control what items are available. Perfect for economy servers, adventure maps, or custom gameplay experiences.
Steps: Select "Villager with Trades" → Choose profession → Add buy/sell items → Set trade limits → Copy command → Spawn in your world
Building Boss Fights
Create challenging boss encounters using the Mob Spawner. Customize health, equipment, AI behavior, and special abilities. Combine with effect commands to create unique boss mechanics.
Tips: Increase max health, add powerful equipment, disable AI for stationary bosses, or add custom names and visual effects
Setting Up Adventure Maps
Use teleport commands to create checkpoints, fill commands to build structures, and title/actionbar commands to display instructions. Combine multiple commands for interactive map experiences.
Workflow: Use /fill for structures → /tp for checkpoints → /title for instructions → /effect for map mechanics → /give for custom items
Creating Custom Items
Generate items with custom names, lore, enchantments, and properties. Perfect for unique rewards, special tools, or themed items for your server or map.
Features: Custom names with colors, multi-line lore, multiple enchantments, unbreakable items, and hidden attributes
Firework Displays
Create spectacular firework shows for events, celebrations, or visual effects. Use presets or customize colors, shapes, and effects for unique displays.
Options: Choose from preset designs or create custom fireworks with specific colors, fade effects, trail, and flicker settings
How to use this generator
- Pick a category (Essentials, Mobs & Entities, Items & Equipment, or World & Structures).
- Select the specific command you want (for example: Teleport, Summon, Give, Enchant, or Fill).
- Fill in the fields (targets, coordinates, NBT, etc.). Your command is built live as you go.
- Click Copy to paste the command in chat or into a command block in Minecraft Java Edition.
Pro Tips: If you need chained commands, scoreboards, or command block logic, try the Command Block Generator. For learning command basics, check our Minecraft Commands 101 guide. All commands generated here work in both single-player and multiplayer (with proper permissions).
Common Command Examples
Ready-to-use command examples for common scenarios. Copy and paste these directly into Minecraft, or use them as starting points for customization.
/summon zombie ~ ~ ~ {CustomName:'{"text":"Boss Zombie"}',CustomNameVisible:1b}/give @p diamond_sword{Enchantments:[{id:"sharpness",lvl:5},{id:"unbreaking",lvl:3}]} 1/summon villager ~ ~ ~ {VillagerData:{profession:"farmer",level:2},Offers:{Recipes:[{buy:{id:"emerald",Count:1},sell:{id:"bread",Count:6}}]}}Boss Fight Setup
Create a powerful boss zombie with custom name, max health, and equipment:
/summon zombie ~ ~ ~ {CustomName:'{"text":"Boss Zombie",color:"red"}'},Health:100f,Attributes:[{Name:"generic.max_health",Base:100}],HandItems:[{id:"diamond_sword",Count:1}],ArmorItems:[{id:"diamond_helmet",Count:1},{id:"diamond_chestplate",Count:1},{id:"diamond_leggings",Count:1},{id:"diamond_boots",Count:1}]}Custom Shop Villager
Create a villager that sells diamonds for emeralds:
/summon villager ~ ~ ~ {VillagerData:{profession:"farmer",level:5},Offers:{Recipes:[{buy:{id:"emerald",Count:10},sell:{id:"diamond",Count:1},maxUses:999999}]}}God Sword
Create an unbreakable diamond sword with all enchantments:
/give @p diamond_sword{Unbreakable:1b,Enchantments:[{id:"sharpness",lvl:5},{id:"smite",lvl:5},{id:"bane_of_arthropods",lvl:5},{id:"unbreaking",lvl:3},{id:"mending",lvl:1},{id:"fire_aspect",lvl:2},{id:"looting",lvl:3},{id:"sweeping",lvl:3}],display:{Name:'{"text":"God Sword",color:"gold",bold:true}'}}Celebration Firework
Launch a spectacular multi-color firework display:
/give @p firework_rocket{Fireworks:{Flight:3,Explosions:[{Type:1,Colors:[I;16711680,65280,255],FadeColors:[I;16776960],Trail:1b,Flicker:1b}]}}Complete Command Reference
Below is a comprehensive reference of all supported commands with syntax examples and use cases. All commands are for Minecraft Java Edition 1.20+.
| Command | Description | ||
|---|---|---|---|
| /tp | /tp <target> <x> <y> <z> | Teleport player or entity to coordinates | /tp @p 100 64 200 |
| /effect | /effect give <target> <effect> [duration] [amplifier] | Apply status effects like speed, jump boost, or regeneration | /effect give @p speed 30 2 |
| /enchant | /enchant <target> <enchantment> [level] | Add enchantments to held items | /enchant @p sharpness 5 |
| /gamemode | /gamemode <mode> [target] | Change game mode (survival, creative, adventure, spectator) | /gamemode creative @p |
| /weather | /weather <type> [duration] | Change weather (clear, rain, thunder) | /weather clear 1000 |
| /time | /time set <value> | Set world time (0-24000, or day/night/noon/midnight) | /time set day |
| /locate | /locate structure <structure> | Find nearest structure coordinates | /locate structure village |
| /particle | /particle <type> <pos> [count] [speed] | Spawn visual particles at location | /particle flame ~ ~1 ~ 10 0.1 |
| /title | /title <target> title|actionbar <text> | Display title or actionbar text to players | /title @a title {"text":"Welcome"} |
| Command | Syntax | Description | Example |
|---|---|---|---|
| /summon | /summon <entity> [pos] [nbt] | Spawn mobs or entities with custom NBT data | /summon zombie ~ ~ ~ {CustomName:'{"text":"Boss"}'} |
| /summon (Villager) | /summon villager ~ ~ ~ {Offers:{Recipes:[]}} | Spawn villagers with custom trades | /summon villager ~ ~ ~ {VillagerData:{profession:"farmer"}} |
| /summon (Mount) | /summon horse ~ ~ ~ {Tame:1b,ChestItems:[]} | Spawn rideable mounts with chest inventory | /summon donkey ~ ~ ~ {Tame:1b,ChestItems:[{id:"diamond",Count:1}]} |
| Command | Syntax | Description | Example |
|---|---|---|---|
| /give | /give <target> <item> [count] [nbt] | Give items with custom names, lore, enchantments, and NBT | /give @p diamond_sword{Enchantments:[{id:"sharpness",lvl:5}]} |
| /give (Firework) | /give @p firework_rocket{Fireworks:{Flight:3,Explosions:[]}} | Create custom firework rockets with colors and effects | /give @p firework_rocket{Fireworks:{Flight:2,Explosions:[{Type:1,Colors:[I;16711680]}]}} |
| Command | Syntax | Description | Example |
|---|---|---|---|
| /fill | /fill <from> <to> <block> [mode] | Fill area with blocks (replace, destroy, keep, outline, hollow) | /fill 0 64 0 10 64 10 stone |
| Selector | Description | Example |
|---|---|---|
@p | Nearest player | /give @p diamond |
@a | All players | /effect give @a speed 30 |
@r | Random player | /tp @r 0 64 0 |
@e | All entities | /kill @e[type=zombie] |
@s | Executor (yourself) | /gamemode creative @s |
@e[type=zombie] | All zombies | /tp @e[type=zombie] ~ ~5 ~ |
@a[distance=..10] | Players within 10 blocks | /effect give @a[distance=..10] speed 30 |
Command not found or unknown command
- Ensure cheats are enabled in your world (can't be changed after world creation in single-player)
- Check that you're using Java Edition, not Bedrock Edition
- Verify you have operator (OP) permissions on servers
- Make sure the command syntax matches your Minecraft version
NBT data not working
- Check for proper JSON formatting in NBT strings
- Ensure entity/item IDs match your Minecraft version
- Verify NBT keys are spelled correctly (case-sensitive)
- Some NBT tags may not be available in older versions
Target selector not finding entities
- Use @e[type=entity_id] with the correct entity ID (e.g., minecraft:zombie)
- Check distance limits: @e[distance=..10] for entities within 10 blocks
- Verify entity types exist in your Minecraft version
- Use @a for all players, @p for nearest player
Commands work in single-player but not on server
- Server plugins may restrict certain commands
- Check server permissions and OP status
- Some servers disable specific commands for security
- Verify the server is running Java Edition
What version of Minecraft do these commands work with?
These commands are designed for Minecraft Java Edition 1.20 and newer (including 1.21). Some commands may work in older versions, but NBT syntax and entity IDs may differ. Bedrock Edition uses different command syntax — use our Bedrock converter if needed.
How do I generate a /summon command?
Open the Mobs & Entities section and choose Basic Mob or Villager with Trades. Pick the entity, set health, equipment, and NBT options, then copy the generated /summon command. Preset boss mobs are available for quick starts.
How do I make a /give command with enchantments?
Use the Basic Item generator under Items & Equipment, or the Enchant tab under Essentials for held-item enchantments. For custom names, lore, and unbreakable flags, use the Display and Properties tabs in the item generator.
Can you get preset fireworks?
Yes. Select Firework Rocket under Items & Equipment and pick a preset design, then customize colors, shapes, trail, and flicker. Copy the /give command and run it in-game.
Why aren't the commands working?
Enable cheats in single-player or get OP on a server. Confirm you are on Java Edition, not Bedrock. Check that command syntax matches your Minecraft version — NBT keys changed in several recent updates.
Can I use these commands in multiplayer?
Yes, with the right permissions. Server plugins may block specific commands. Operators typically have full access; regular players often cannot run /give or /summon.
How do I use the shape presets in the Fill command?
Open World & Structures → Fill Command, choose a shape preset (sphere, cylinder, etc.), set size and height, and copy the /fill command with coordinates calculated for you.
How do I create custom villager trades?
Use Villager with Trades under Mobs & Entities. Set profession, buy/sell items, and trade limits. The generator outputs the full /summon villager NBT for shops and economy servers.
Can I use these commands in command blocks?
Yes. Paste any generated command into a command block. For chains, conditionals, and scoreboard logic, try our Command Block Generator.
What's the difference between /enchant and /give with enchantments?
/enchant adds enchantments to the item in your hand only. /give with NBT creates a new item with enchantments, custom names, lore, and other properties — better for rewards and map items.
How do I target specific entities with selectors?
Use @p (nearest player), @a (all players), @e[type=zombie] (all zombies), or @a[distance=..10] (players within 10 blocks). Combine arguments for precise targeting.
Can I create custom mobs with special abilities?
Yes. The Basic Mob generator supports health, equipment, No AI, invulnerability, glowing, and entity-specific options like powered creepers or baby zombies.