Item presets
Minecraft Give Command Generator
Use this generator page when the search intent is broad: you need a Minecraft give command, but you also need to see the item controls that create it. NBTForge keeps Edition and Version visible, so the same item idea can be checked against current Java component output before it goes into a command block or project.
Preset result
A copy-ready /give command that uses the selected Java version family instead of mixing old NBT examples with current component syntax.
Output
Version-aware Give output
/give @p minecraft:diamond_sword[custom_name={text:"Forge Blade",color:"gold",italic:false},lore=[{text:"Built with NBTForge",color:"gray",italic:false}],enchantments={"minecraft:sharpness":5,"minecraft:unbreaking":3},custom_data={nbtforge:"give_generator_demo"}] 1The longest command line is 265 characters, 9 over the 256-character chat input limit. Pasting it into chat can truncate the line and make Minecraft report a syntax error even when the generated command is valid.
- Use a Command Block: run
/give @s command_block, place it, then paste this command into the block command field. - Use a
.mcfunctionfor a reusable datapack: save the line without the leading slash atsaves/<world>/datapacks/<pack>/data/<ns>/function/<name>.mcfunctionwith a minimalpack.mcmeta, run/reload, then run/function <ns>:<name>. Do not paste.mcfunctioncontent into chat.
Preset screenshot
Build the preset
- Open the Give workbench and set Edition to Java before choosing the target version family.
- Pick the base item, then add custom_name, lore, enchantments, and custom_data from the visual item fields.
- Review the output panel for component syntax and warnings before copying the /give command.
- Save the command to Project when the item belongs to a larger kit, boss reward, or command pack.
Why this beats a plain give command snippet
A copied /give snippet usually hides the version assumption. That is risky after Java 1.20.5, where many item features moved into components and old NBT examples can stop matching current syntax.
This page treats the command as a workbench state. The item name, lore, enchantments, and custom data stay visible next to the generated output, so you can change the item without rebuilding a long command by hand.
- Use Java 1.20.4 or older when a map still needs legacy item NBT.
- Use Java 1.20.5+ or 1.21+ when the world expects item components.
- Keep the generated command in Project if it is one step in a kit or reward flow.
Workbench state to copy
The sample state is a named diamond sword with readable lore, Sharpness, Unbreaking, and custom_data. That covers the common give-generator use case without pretending every item needs a separate tutorial.
After copying, test in a disposable world or command block first. If Minecraft rejects the command, re-check the selected version and any warning shown by the output panel.
Fit the preset into a real project
Treat Minecraft Give Command Generator as a tested starting point, not just a copied string. After the output works once, save it with a clear Project name, note the target Minecraft version, and keep the preset near related setup commands such as scoreboard, bossbar, loot, or reset lines.
Before publishing the preset to a map, server, or command pack, run it from the copied artifact rather than only from the live workbench. That catches missing dependencies, stale selectors, wrong edition choices, and commands that only worked because local test state already existed.
- Keep the selected Edition and Version with the shared command.
- Test selectors against a harmless command before using damage, kill, clear, or teleport.
- Move long commands into Project or a function-style workflow instead of pasting them into chat.
- Recheck warnings after changing entities, item components, passengers, or datapack resources.
FAQ
Can this generate both old NBT and new item components?
Yes. The important step is selecting the target Java version before copying. NBTForge keeps version-sensitive item output visible instead of assuming one syntax family.
Should I use this page or a narrower item preset?
Use this page for a broad /give command. Use narrower presets when the intent is specific, such as custom_model_data, player heads, written books, or attribute modifiers.
When should this preset become part of a command pack?
Use it as a command pack entry when the output depends on setup lines, reset commands, loot resources, scoreboard state, or repeated testing. Single safe commands can still be copied directly from Output.
Open this workflow
Start from the related Give workbench, then adjust the preset fields for your world.