Give Syntax Converter

Create a new Give command

Worked examples

The examples below come out of the same generator as the form above, so the commands and explanations always match what the tool produces. Copy one and adjust it from there

1. A gold-named sword from legacy NBT

Keep the sword name, color and enchantment when changing the item data format

/give @p minecraft:diamond_sword[minecraft:custom_name={text:'ดาบผู้พิทักษ์',color:'gold',italic:0b},minecraft:enchantments={'minecraft:sharpness':5},minecraft:unbreakable={}] 1

What it does Convert NBT → Components + SNBT: minecraft:diamond_sword × 1, preserving name and text styling, enchantments, unbreakable

  • Item IDs, enchantment IDs and targets are preserved. Check that they exist in the destination version

2. An enchanted book from JSON components

Migrate stored enchantments and lore to the newer item format

/give @p minecraft:enchanted_book[minecraft:stored_enchantments={'minecraft:mending':1},minecraft:lore=[{text:'ของรางวัล',color:'gray'}]] 1

What it does Convert Components + JSON → Components + SNBT: minecraft:enchanted_book × 1, preserving lore, stored enchantments

  • Item IDs, enchantment IDs and targets are preserved. Check that they exist in the destination version

3. Return to NBT while hiding enchantments

Convert for older Java worlds while keeping enchantment tooltips hidden

/give @p minecraft:diamond_sword{display:{Name:"{\"text\":\"ดาบลับ\"}"},Enchantments:[{id:"minecraft:sharpness",lvl:5}],HideFlags:1} 1

What it does Convert Components + SNBT → NBT: minecraft:diamond_sword × 1, preserving name and text styling, enchantments, tooltip visibility

  • Item IDs, enchantment IDs and targets are preserved. Check that they exist in the destination version

How this command differs by edition and version

This is the first example above, run through every edition and version this tool supports. Versions that produce the same result share a row

Java Edition 1.21.5 and up
/give @p minecraft:diamond_sword[minecraft:custom_name={text:'ดาบผู้พิทักษ์',color:'gold',italic:0b},minecraft:enchantments={'minecraft:sharpness':5},minecraft:unbreakable={}] 1
  • Item IDs, enchantment IDs and targets are preserved. Check that they exist in the destination version
Java Edition 1.20.5 - 1.21.4
/give @p minecraft:diamond_sword[minecraft:custom_name='{"text":"ดาบผู้พิทักษ์","color":"gold","italic":false}',minecraft:enchantments={levels:{'minecraft:sharpness':5}},minecraft:unbreakable={}] 1
  • Item IDs, enchantment IDs and targets are preserved. Check that they exist in the destination version
Java Edition 1.13 - 1.20.4 (legacy NBT)
/give @p minecraft:diamond_sword{display:{Name:"{\"text\":\"ดาบผู้พิทักษ์\",\"color\":\"gold\",\"italic\":false}"},Enchantments:[{id:"minecraft:sharpness",lvl:5}],Unbreakable:1b} 1

Before you use these