Minecraft Command Generator
Generate Minecraft commands using a simple form. No need to memorize syntax - just fill in the options and copy your command.
/give @p diamond_sword 1How to Use the Minecraft Command Generator
Select a command type from the dropdown menu. The form below updates to show the relevant parameters for that command. Fill in each field with the values you want. The command preview at the bottom updates in real time. When it looks correct, click Copy to copy the command to your clipboard.
For text commands, you can apply color formatting directly in the generator. The color codes reference shows the full list of available colors and formatting codes.
Supported Commands
| Command | What It Does |
|---|---|
| /give | Adds an item directly to a player's inventory |
| /effect | Applies a potion effect with custom duration and strength |
| /summon | Spawns a mob or entity at specified coordinates |
| /tp | Teleports a player to coordinates or to another player |
| /gamemode | Switches a player's game mode (survival, creative, adventure, spectator) |
| /time | Sets or advances the in-game time of day |
| /weather | Changes the weather to clear, rain, or thunder |
The /give Command
The /give command adds items directly to a player's inventory. Player targets can be @s (yourself), @a (all players), @p (the nearest player), or a specific username. Item names use the Minecraft Java resource location format such as minecraft:diamond_sword or minecraft:oak_log.
The quantity field accepts values from 1 up to the item's stack limit. Most blocks and items stack to 64. Tools, armor, and weapons stack to 1.
Tips for Using Commands in Minecraft
Commands require operator (OP) permission in multiplayer. In single-player, enable cheats in world settings to use commands in survival or adventure mode. Commands entered in command blocks do not use the leading slash. Commands typed directly in chat require the slash.
Always test new commands in creative mode before using them in a world you care about. Some commands, particularly summon and effect commands with high amplifiers, can produce unintended results that are difficult to reverse.
All of these work best when paired with the font generator for styled text and the color codes tool for colored output. See all Minecraft tools on the gaming page.
Frequently Asked Questions
Do I need OP permission to use commands?
In multiplayer, yes. You need server operator status or a specific permission node. In single-player, you need cheats enabled for that world.
Does this generator work for both Java and Bedrock?
The generator targets Java Edition syntax. Some commands and item names differ between editions. Check the Minecraft Wiki for Bedrock-specific syntax when needed.
What is the maximum effect duration?
The maximum /effect duration in Java Edition is 1,000,000 seconds, which is effectively permanent for any practical use.
Can I summon a named mob with this tool?
This generator covers basic /summon without NBT data. For custom-named mobs, add the CustomName NBT tag manually to the generated command.
What does @s mean in a command?
@s targets the entity that ran the command. In chat, @s refers to you. In a command block, @s refers to the command block itself, which usually means you should use @p or @a for player targeting instead.
Why doesn't my command work in a command block?
Command blocks do not use the leading slash. Remove the / from the start of the command before placing it in the block. Also confirm the command block is set to the correct mode (Impulse, Repeat, or Chain) for your intended use.