Command converter /give

Commands

Old /give with NBT - to components and backLearn more

An old guide command issues a simple sword with no name or charm -- and says nothing. Put it in here: get the same thing on the record for 1.21.5, 1.20.5, and for the old versions.

My game select version

We'll remember in this browser and set up where your version is available. Open link settings are more important than this choice; the Vicki versions do not change.

Your command

Example · Your entry: Up to 1.20.4

A bare object without “/give @p” is also suitable, and any of the three forms is suitable - the converter will recognize it itself. The command is translated /give.

What moves

  • Transferred: name and description with color, enchantments and enchantments of the book, indestructibility, leather armor color, finish, wear and tear and repair cost.
  • Plugin tags - in custom_data and vice versa, without changes, with number types.
  • Not transferred and called by name: attribute modifiers, hiding tooltips, model, block contents and more, whose entry has changed more than once.

Result

Example

1.21.5+

246 out of 256
/give @p minecraft:diamond_sword[custom_name={text:"Экскалибур",color:"gold",italic:false},lore=[{text:"Меч короля",color:"gray"}],enchantments={"minecraft:sharpness":5,"minecraft:unbreaking":3},unbreakable={},custom_data={RPG:{rarity:"legend"}}]

1.20.5 — 1.21.4

269 out of 256
/give @p minecraft:diamond_sword[custom_name='{"text":"Экскалибур","color":"gold","italic":false}',lore=['{"text":"Меч короля","color":"gray"}'],enchantments={levels:{"minecraft:sharpness":5,"minecraft:unbreaking":3}},unbreakable={},custom_data={RPG:{rarity:"legend"}}]

Before 1.20.4 - like yours

267 out of 256
/give @p minecraft:diamond_sword{display:{Name:'{"text":"Экскалибур","color":"gold","italic":false}',Lore:['{"text":"Меч короля","color":"gray"}']},Enchantments:[{id:"minecraft:sharpness",lvl:5},{id:"minecraft:unbreaking",lvl:3}],Unbreakable:1b,RPG:{rarity:"legend"}}

How to translate a command

  1. Paste the entire command

    From a guide, a seizure or chat with or without an "/give". A long one with a book, too: the field takes up to 32,500 characters.

  2. Take a recording of your version

    The version is visible in the lower left corner of the game's main menu. 1.21.5 and later - top line.

  3. Read the notes

    Everything that was not transferred is named after the field. Reassemble it - in the /give generator or by hand.

What you need to know about the three entries

  • Before 1.20.4 - NBT in curly braces. diamond_sword{display:{Name:'…'}}. The name and description are inside display.
  • 1.20.5 - 1.21.4 - components in square. diamond_sword[custom_name='…'], the enchantment has a wrapper levels.
  • 1.21.5+ - the text has become a compound. custom_name={text:"Sword"}: this version will show the JSON string literally, with parentheses.
  • A command with the wrong form does not fall. She gives the subject without what she did not understand - so “doesn’t work” almost always means “wrong form”.
  • Enchant number - these are versions before 1.13. {id:16,lvl:5} You can’t guess by the number: the numbers changed between versions.
  • Chat is limited to 256 characters. Longer - only with a command block: there is no limit.

Frequently asked questions

Why doesn't the /give command work in the new version?

In 1.20.5, the items went from NBT to components, and in 1.21.5 the components were changed again. An old-formed command may not pass a syntax or component test. Add it here - receive a recording for your version.

How is command 1.21.5 different from 1.20.5?

The enchantments are written without a label, and the name and description is not a line with JSON, but rather with the compost itself: business_name=(text:"Sword"}. The line with JSO version 1.21.5 will be shown literally, with brackets and quotations.

Where do plugin tags go during translation?

In fact, it's the way the game carries them to a component of the system_data. The fields that changed and we didn't cross-check, the converter doesn't carry, it calls them by name.