How to spawn a named, enchanted, unbreakable sword? [duplicate]

How to spawn a named, enchanted, unbreakable sword? [duplicate] - Free stock photo of art, beads, beads bracelets

I am building a map based of a simulation world and I am trying to build an OP sword for myself as a test runner. I have part of the command, I just need help sticking the {Unbreakable:1} into the command

Current command:

/Give Hydrotronics diamond_sword 1 0 {display:{Name"Valkyrie's Lance",Lore:[The Ragnite Hums As The Lance Rests In Your Hands]},ench:[{Id:16,Lvl:200},{Id:19,Lvl:3},{Id:20,Lvl:13},{Id:20,Lvl:13},{Id:17,Lvl:30},{Id:34,Lvl:10}]}

I tried removing Id:34 (Unbreaking) and replacing it with {Unbreakble:1} but the Unbreakable didn't come through.



Best Answer

The "Unbreakable" tag is a completely seperate tag from enchantments and belongs in the sword's root json node (inside only the outer set of curly braces). This is not the only problem with your command. The command will not execute first of all because Minecraft commands are case sensitive (the stupidest thing that could be fixed easily but Mojang decides not to) and must be lowercase (changed "Give" to "give"). JSON parsing will fail because there is no semicolon ':' between "Name" and "Valkyrie's Lance". The enchantments are all invalid (and show up as Protection level 0) because of capitalization (caps problems in JSON tags are not a bug, make sure you are using the correct tags and tag capitalization when creating a JSON object. Use the Minecraft Wiki's Chunk Format page for block/entity related NBT tags and the Player.dat Format page for item related NBT tags. Also you had duplicate Fire Aspect enchantments (removed 1)

A correction for your current command would be: /give @p minecraft:diamond_sword 1 0 {display:{Name:"Valkyrie's Lance",Lore:[The Ragnite Hums As The Lance Rests In Your Hands]},ench:[{id:16,lvl:200},{id:19,lvl:3},{id:20,lvl:13},{id:17,lvl:30}],Unbreakable:true}




Pictures about "How to spawn a named, enchanted, unbreakable sword? [duplicate]"

How to spawn a named, enchanted, unbreakable sword? [duplicate] - Man Wearing Black Shirt Holding Padlock Near Woman
How to spawn a named, enchanted, unbreakable sword? [duplicate] - Padlock Fence
How to spawn a named, enchanted, unbreakable sword? [duplicate] - People Sitting on the Swimming Pool



How do you spawn unbreakable items in Minecraft?

The standard syntax in Minecraft to create a 1000+ Sharpness weapon is "/give @p <item>{Enchantments:[{id:sharpness,lvl:<number>}]}" placed in the game's chat window. This command can also be applied to other items that can receive a Sharpness enchantment, such as an axe.

What is the command for a sharpness 1000 Netherite sword?

In Minecraft, you can enchant a sword with a number of different enchantments. Each enchantment has a name and ID value assigned to it. You can use these enchantment values in the /enchant command.



I Got The ENCHANTED SHINY RELIC SWORD In Weapon Fighting Simulator!




Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: RODNAE Productions, Picography, SplitShire, Thuong D.