To give a fully-enchanted netherite sword in Minecraft Java 26.2, run: /give @s minecraft:netherite_sword[minecraft:enchantments={"minecraft:sharpness":5,"minecraft:mending":1},minecraft:unbreakable={}] 1 On Bedrock 1.26.30, /give the item first and apply enchantments with /enchant — Bedrock /give can't carry them inline. This generator builds both, always current.
netherite_sword/give @s minecraft:netherite_sword[minecraft:enchantments={"minecraft:sharpness":5,"minecraft:mending":1},minecraft:unbreakable={}] 1Command output is generated for Java 26.2 and Bedrock 1.26.30 and was last paste-verified in-game on 2026-07-04.
Minecraft Java 1.20.5 replaced item NBT with data components, which is why every older /give command using {display:…} or {Enchantments:…} now fails with a syntax error. Components go in square brackets after the item id — here is the same item in both syntaxes:
| Feature | Before 1.20.5 (NBT — no longer works) | Java 26.2 (data components) |
|---|---|---|
| Custom name | {display:{Name:'{"text":"Epic Blade"}'}} | [minecraft:custom_name={text:"Epic Blade",italic:false}] |
| Lore | {display:{Lore:['{"text":"A legend"}']}} | [minecraft:lore=[{text:"A legend",italic:false}]] |
| Enchantments | {Enchantments:[{id:"minecraft:sharpness",lvl:5}]} | [minecraft:enchantments={"minecraft:sharpness":5}] |
| Unbreakable | {Unbreakable:1b} | [minecraft:unbreakable={}] |
Bedrock 1.26.30 has no data components: /give takes only item, count and data value, so anything beyond that needs a follow-up command or is not expressible at all. The generator's Bedrock mode emits the working sequence and says honestly when a field is impossible:
| Feature | Java 26.2 | Bedrock 1.26.30 |
|---|---|---|
| Base command | /give @s minecraft:diamond_sword 1 | /give @s diamond_sword 1 |
| Enchantments | /give @s minecraft:diamond_sword[minecraft:enchantments={"minecraft:sharpness":5}] 1 | Not in /give — hold the item, then: /enchant @s sharpness 5 |
| Custom name | minecraft:custom_name={text:"Epic Blade",italic:false} | Not in commands — rename at an anvil |
| Lore | minecraft:lore=[{text:"A legend",italic:false}] | Not possible in commands |
| Unbreakable | minecraft:unbreakable={} | Not possible in commands |
| Sweeping Edge | minecraft:sweeping_edge | Does not exist on Bedrock |
Minecraft 1.20.5 replaced item NBT with data components, so every pre-1.21 /give command with {display:…} or {Enchantments:…} now fails. The new form puts components in square brackets — this generator always emits the current syntax.
On Java 26.2, add the enchantments component: /give @s minecraft:netherite_sword[minecraft:enchantments={"minecraft:sharpness":5,"minecraft:mending":1},minecraft:unbreakable={}] 1 — on Bedrock, /give the item first, hold it, then apply each enchantment with /enchant.
Yes — toggle to Bedrock (1.26.30) and the generator emits Bedrock syntax, including working /give + /enchant sequences where Bedrock cannot express a field inline, and it tells you honestly when something (like lore) is not possible.
Chat accepts up to 256 characters; longer commands must go in a command block (limit ~32,500). The generator shows a live character counter and warns you past 256.
| Curse enchant IDs | binding_curse, vanishing_curse | binding, vanishing |