Minecraft Command Generator
Create custom Minecraft Java Edition commands easily. Generate commands for mobs, items, structures, and more.
Our free Minecraft command generator helps you create complex commands without memorizing NBT syntax or command structure. Whether you're summoning custom mobs with special attributes, creating enchanted items with custom names and lore, building structures with the fill command, or designing elaborate firework displays, our tool generates the exact command syntax you need.
All commands are generated for Minecraft Java Edition 1.20+ and are compatible with single-player worlds (with cheats enabled) and multiplayer servers (with appropriate permissions). The generator supports over 15 different command types, from essential commands like teleport and gamemode to advanced NBT manipulation for custom entities and items.
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 | Syntax | Description | Example |
|---|---|---|---|
| /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. Some commands may work in older versions, but functionality might be limited. NBT syntax and entity IDs may differ in older versions.
Can you get preset fireworks?
Yes! Our tool comes with a variety of preset firework designs you can use easily. Simply select a preset from the Fireworks Generator and customize it to your liking. Presets include celebration fireworks, star patterns, and color combinations.
Why aren't the commands working?
Make sure you have operator permissions or cheats enabled in your world. Some commands may also require you to be in creative mode. Check that you're using Java Edition (not Bedrock), and verify the command syntax matches your Minecraft version.
Can I use these commands in multiplayer?
Yes, but you need the appropriate permissions on the server. Some commands may be restricted by server plugins or settings. Server operators (OPs) typically have access to all commands, while regular players may have limited command access.
How do I use the shape presets in the Fill command?
Select a shape from the Shape Preset dropdown in the Fill tab, adjust the parameters like size and height, and the coordinates will be automatically calculated for you. This makes it easy to create spheres, cylinders, and other geometric shapes.
How do I create custom villager trades?
Use the Villager Trade Generator to create custom trades. You can set the buy items (what the villager wants), sell items (what you get), and trade limits. The generator creates the complete NBT data needed for the /summon command.
Can I use these commands in command blocks?
Yes! All generated commands can be pasted directly into command blocks. For more advanced command block features like chains, conditionals, and scoreboard integration, check out our Command Block Generator tool.
What's the difference between /enchant and /give with enchantments?
/enchant adds enchantments to items already in your inventory (held item only). /give with NBT can create items with enchantments from scratch, along with custom names, lore, and other properties. Use /give for more control.
How do I target specific entities with selectors?
Use target selectors like @e[type=zombie] to target all zombies, @a[distance=..10] for players within 10 blocks, or @p for the nearest player. You can combine multiple selector arguments for precise targeting.
Can I create custom mobs with special abilities?
Yes! The Mob Spawner allows you to customize mob attributes, health, equipment, AI behavior, and more using NBT data. You can create boss mobs, passive variants, or mobs with custom names and properties.