© 2026 Minecraft Search

Terms of ServiceSupport us

NOT AN OFFICIAL MINECRAFT WEBSITE. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT

Privacy Policy

Minecraft Command Generator

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.40, /give the item first and apply enchantments with /enchant — Bedrock /give can't carry them inline. This generator builds both, always current.

ToolsSeed MapSeed FinderOresStructuresBiomesEnchantment ToolCommand GeneratorCrafting CalculatorText Studio
Current to Java 26.2
Netherite Swordnetherite_sword
Enchantments
Attribute modifiers
Appearance
Leather armor and other dyeable items only.
Armor trim
Custom model data

Resource packs read these values to swap the item model. Separate entries with commas.

Tooltip
Hide these tooltip lines
Your command
/give @s minecraft:netherite_sword[minecraft:enchantments={"minecraft:sharpness":5,"minecraft:mending":1},minecraft:unbreakable={}] 1
133/256
Paste into chat (T) or a command block. · Java 26.2
Some options need Java 1.21.5+ command syntax — older versions may need a different form.

Command output is generated for Java 26.2 and Bedrock 1.26.40 and was last paste-verified in-game on 2026-07-10.

What changed in the 1.21 /give syntax? (NBT → data components)

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:

FeatureBefore 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={}]

Data components were not the last change: Java 1.21.5 moved the text that carries item names and lore to SNBT, and reshaped the enchantments component. Pick the version you are building for and the generator writes that release’s own syntax, including the older item NBT form used before data components. Version decides content as well as syntax — an item or mob only exists from the release that added it.

How is /give different on Bedrock?

Bedrock 1.26.40 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:

FeatureJava 26.2Bedrock 1.26.40
Base command/give @s minecraft:diamond_sword 1/give @s diamond_sword 1
Enchantments/give @s minecraft:diamond_sword[minecraft:enchantments={"minecraft:sharpness":5}] 1Not in /give — hold the item, then: /enchant @s sharpness 5
Custom nameminecraft:custom_name={text:"Epic Blade",italic:false}Not in commands — rename at an anvil
Loreminecraft:lore=[{text:"A legend",italic:false}]Not possible in commands
Unbreakableminecraft:unbreakable={}Not possible in commands
Sweeping Edgeminecraft:sweeping_edgeDoes not exist on Bedrock
Curse enchant IDsbinding_curse, vanishing_cursebinding, vanishing

Frequently asked questions

Why doesn't my old /give command work anymore?

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. Some options need Java 1.21.5+ syntax, so releases between 1.20.5 and 1.21.5 can reject it too.

How do I give an enchanted item in Minecraft?

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.

Does this command generator work on Bedrock?

Yes — toggle to Bedrock (1.26.40) 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.

What is the command length limit in chat?

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.

More command generators

/tellrawSend styled JSON chat messages to players on Java and Bedrock — always current to 26.2 / 1.26.40./titleShow big titles, subtitles and action-bar text to players on Java and Bedrock./executeChain subcommands (as, at, if, unless…) to run a command for each matching entity, on Java and Bedrock./killRemove mobs, dropped items, XP orbs or a stuck ender dragon on Java and Bedrock — with the exact entity-selector filter you need.
Current for Java 26.2 and Bedrock 1.26.40Java 26.2 · Bedrock 1.26.40
BlogAbout
Minecraft Search
Tools9Items749Blocks1,009Mobs109World110
/
ToolsItemsBlocksMobsWorld