Mineuniverse

Minecraft Command Generator

Build /give, /summon, /effect, /tellraw, /title, /tp, /fill and /attribute commands for your exact Java version, with item icons, live output and share links.

JAVA 1.20.3 – 26.3LIVE OUTPUT8 COMMANDS

1.21.5+ · SNBT text components

Loading items, mobs and effects…

How to use the command generator

  1. Pick your Minecraft version. Choose the exact Java version you play in the select box at the top; the syntax and the item lists follow it.
  2. Choose a command. Open the tab of the command you need: /give, /summon, /effect, /tellraw, /title, /tp, /fill or /attribute.
  3. Fill in the fields. Search items or mobs by name, add names, enchantments or effects. The command below updates live.
  4. Copy and paste it. Press Copy, open the chat in Minecraft (T), paste with Ctrl+V and press Enter. Cheats or operator rights are needed.
Miney, the MineUniverse mascot, pointing at the command generator

The generator knows 1,659 items, 162 entities, 40 effects, 44 enchantments and 1,287 blocks, taken from the game's own data for every version. Each output was tested on real Minecraft servers of the different versions.

The commands at a glance

Examples for Java 26.3

/give – items with names, enchantments and more

Gives an item to players. Since 1.20.5 the extras are item components in square brackets.

/give @p diamond_sword[custom_name={text:"Excalibur",color:"gold",italic:false},enchantments={sharpness:10,unbreaking:3}]

/summon – mobs with names, equipment and health

Spawns an entity at a position. Mob equipment uses the equipment map since 1.21.5.

/summon zombie ~ ~ ~ {CustomName:"Bob",NoAI:true,equipment:{mainhand:{id:"minecraft:diamond_sword"}}}

/effect – status effects

Gives or clears effects. The level in the command is one lower than the level you see (0 = level I).

/effect give @p speed 60 1 true

/tellraw and /title – formatted text

Coloured, clickable chat messages and big screen titles. Since 1.21.5 the text is written in SNBT instead of JSON.

/tellraw @a {text:"Visit our shop",color:"gold",click_event:{action:"open_url",url:"https://example.com"}}

/tp – teleport

Moves players or mobs to coordinates or to another entity; ~ is relative, ^ follows the view direction.

/tp @s 100 ~3 100

/fill and /setblock – blocks

Places one block or fills a box, with block states like [facing=east]. "strict" exists from 1.21.5.

/fill ~-3 ~ ~-4 ~3 ~4 ~4 stone hollow

/attribute – health, speed, size

Reads or changes attributes such as max health or scale. Since 1.21.2 the names have no generic. prefix.

/attribute @s scale base set 2

What changed between versions

Why a command from an older tutorial fails

Part1.20.3 – 1.20.41.20.5 – 1.21.41.21.5 – 26.3
Enchantments in /givediamond_sword{Enchantments:[{id:"minecraft:sharpness",lvl:5s}]}diamond_sword[enchantments={levels:{sharpness:5}}]diamond_sword[enchantments={sharpness:5}]
Item name{display:{Name:'"Excalibur"'}}[custom_name='"Excalibur"'][custom_name="Excalibur"]
Text in /tellraw and /titleJSON: {"text":"Hi","color":"gold"}JSON: {"text":"Hi","color":"gold"}SNBT: {text:"Hi",color:"gold"}
Click events"clickEvent":{"action":"open_url","value":"…"}"clickEvent":{"action":"open_url","value":"…"}click_event:{action:"open_url",url:"…"}
Mob equipmentHandItems:[{id:"minecraft:bow",Count:1b},{}]HandItems:[{id:"minecraft:bow",count:1},{}]equipment:{mainhand:{id:"minecraft:bow"}}
Attribute namesgeneric.max_healthgeneric.max_health, from 1.21.2 max_healthmax_health
Attribute modifiersUUID + name, operations add, multiply_base, multiply1.20.5: UUID + name with add_value …; from 1.21 a namespaced idnamespaced id, add_value …
Other—@n (nearest entity) from 1.21, /attribute … base reset from 1.21.4strict mode for /fill and /setblock; game rule max_block_modifications from 1.21.11
Advertisement Remove ads with Premium →

Frequently asked questions

Why does my old /give command not work any more?
Minecraft Java 1.20.5 replaced the item NBT in curly brackets with item components in square brackets, and 1.21.5 changed how text and several components are written. A command from a 1.20 tutorial therefore fails in newer versions. Choose your version at the top of the generator and it writes the right syntax.
Which Minecraft versions does the generator support?
Every Java Edition release from 1.20.3 to 26.3. The lists of items, mobs, effects, enchantments and blocks follow the version you pick, and things that were added later are marked or hidden.
Can I give enchantments above the normal maximum?
Yes. Commands accept levels up to 255, for example Sharpness 10 or Efficiency 50. The generator shows a warning so you know the level is above what survival allows.
Why is my command too long for the chat?
The chat accepts at most 256 characters. Long commands with many enchantments, lore lines or book pages only fit into a command block, which takes up to 32,500 characters. The counter under the command turns orange when it is too long.
Do these commands work in Bedrock Edition?
No. Bedrock uses a different syntax for items, entities and text. All commands here are for Minecraft Java Edition, including servers like Paper and Spigot.
How do I use a command in a data pack or command block?
In a command block, paste the command as it is. In a data pack function file, switch off "Start with /" because function lines must not begin with a slash.
Advertisement Remove ads with Premium →

More for your world

Advertisement Remove ads with Premium →

More tools

All tools