VulCode

Minecraft command generator

Build an item, /tellraw text, a firework, a potion or a banner and get a ready command.

Minecraft tools
Category
Minecraft
Price
free

Starting the tool...

Item: how to use it in three steps

The tool as a schematic with this page's example. Each step's number stands where you take it: in the fields, at the result or outside the tool.

/give command builder
What you enter
A diamond sword with a name, lore and Sharpness V, in the components format
  1. Pick the server version: 1.20.5 and newer, or older.

  2. Set the item, name, lore and enchantments.

What you get
/give @p minecraft:diamond_sword[custom_name={"text":"Sword of the Chief","italic":false},lore=[{"text":"Event reward","italic":false}],enchantments={"minecraft:sharpness":5}] 1
The server console or chat
  1. Copy the command and paste it in the console or chat.

Seven items through the /give generator

The same name, lore and enchantment in two formats, because a server rejects the syntax of another version, and what the tool does with the count, the prefix and an empty field.

ItemExpectedWhat the tool returnsResult
Itemdiamond_sword, a name and lore, Sharpness 5the example from the description, components
ExpectedComponents in square brackets, the name without italics
What the tool returns/give @p minecraft:diamond_sword[custom_name={"text":"Sword of the Chief","italic":false},lore=[{"text":"Event reward","italic":false}],enchantments={"minecraft:sharpness":5}] 1
As expected
Itemthe same, the older NBT formata server on an older version
ExpectedBraces with display and an Enchantments list
What the tool returns/give @p minecraft:diamond_sword{display:{Name:'{"text":"Sword of the Chief","italic":false}',Lore:['{"text":"Event reward","italic":false}']},Enchantments:[{id:"minecraft:sharpness",lvl:5}]} 1
As expected
Itemminecraft:diamond_swordan ID with the prefix
ExpectedThe minecraft: prefix only once
What the tool returns/give @p minecraft:diamond_sword 1
As expected
Itemdiamond_sword, 0 itemsa count below one
ExpectedOne item: the game does not accept 0
What the tool returns/give @p minecraft:diamond_sword 1
As expected
Itemdiamond_sword, unbreakablea toggle in the tool
ExpectedThe unbreakable={} component
What the tool returns/give @p minecraft:diamond_sword[unbreakable={}] 1
As expected
Itemlore on two linesEnter in the lore field
ExpectedTwo entries in the lore list
What the tool returns/give @p minecraft:diamond_sword[lore=[{"text":"First line","italic":false},{"text":"Second line","italic":false}]] 1
As expected
Iteman empty itemspaces only
ExpectedNo command, the tool asks for an item
What the tool returnsNo command, the tool asks for an item
As expected

7 of 7 cases as expected

Questions