How do I give players already enchanted Tools - Armour - Weapons

[BACK]
How do I give players already enchanted Tools - Armour - Weapons
Posted On: April 26, 2024

I'm making a map where I want players to be able to choose there kits/classes. The problem I'm having with it though is giving players already enchanted Tools/Armour/Weapons.


I'm not sure if you can use the /give [player] [item] [amount] because you'll have to use the whole {} thing and I'm not sure how to make enchanted Tools/Armour/Weapons using that.


Can anyone help?


Question from user FireStrike289 at gaming.stackexchange.com.


Answer:

This answer is for 1.12 or before. Refer to this answer by pppery for 1.13 to 1.20.


You can set up some simple commands with command blocks, and let players click the button of each command block so that they receive the enchanted items.


You can use the following command to give players enchanted items (in this example, 1 diamond sword with Smite 2 and Knockback 30).


/give @p diamond_sword 1 0 {ench:[{id:17,lvl:2},{id:19,lvl:30}]}.


This is the general command:.


/give @p 0 {ench:[{id:<0-62>,lvl:<1-32767>},{id:<0-62>,lvl:<1-32767>},.]}.


You put all enchantment tags between [ ], each with both id and lvl tags wrapped together by curly braces { }.


You can also add in the clear inventory command to ensure they don't get kits twice.


/clear @p.


Remember the highest level for the enchantment is level 32767.


You can stack enchants as many times as you want such as:.


/give @p diamond_sword 1 0 {ench:[{id:17,lvl:32767},{id:17,lvl:32767}]}.


After setting up the command blocks, put buttons and the players can choose by clicking them.


You can also put enchantments onto things that normally cannot be enchanted or have that specific enchantment. For example, you can do the command stated above to give you enchanted blocks. But, enchantments will NOT affect how the thing works normally. For example, enchanting Thorns on a dirt block will not hurt players when they come into contact with the enchanted block.


Answer from user 54D at gaming.stackexchange.com.


[BACK]
How do I give players already enchanted Tools - Armour - Weapons
Posted On: April 26, 2024

I'm making a map where I want players to be able to choose there kits/classes. The problem I'm having with it though is giving players already enchanted Tools/Armour/Weapons.


I'm not sure if you can use the /give [player] [item] [amount] because you'll have to use the whole {} thing and I'm not sure how to make enchanted Tools/Armour/Weapons using that.


Can anyone help?


Question from user FireStrike289 at gaming.stackexchange.com.


Answer:

This answer is for 1.12 or before. Refer to this answer by pppery for 1.13 to 1.20.


You can set up some simple commands with command blocks, and let players click the button of each command block so that they receive the enchanted items.


You can use the following command to give players enchanted items (in this example, 1 diamond sword with Smite 2 and Knockback 30).


/give @p diamond_sword 1 0 {ench:[{id:17,lvl:2},{id:19,lvl:30}]}.


This is the general command:.


/give @p 0 {ench:[{id:<0-62>,lvl:<1-32767>},{id:<0-62>,lvl:<1-32767>},.]}.


You put all enchantment tags between [ ], each with both id and lvl tags wrapped together by curly braces { }.


You can also add in the clear inventory command to ensure they don't get kits twice.


/clear @p.


Remember the highest level for the enchantment is level 32767.


You can stack enchants as many times as you want such as:.


/give @p diamond_sword 1 0 {ench:[{id:17,lvl:32767},{id:17,lvl:32767}]}.


After setting up the command blocks, put buttons and the players can choose by clicking them.


You can also put enchantments onto things that normally cannot be enchanted or have that specific enchantment. For example, you can do the command stated above to give you enchanted blocks. But, enchantments will NOT affect how the thing works normally. For example, enchanting Thorns on a dirt block will not hurt players when they come into contact with the enchanted block.


Answer from user 54D at gaming.stackexchange.com.


[BACK]

How do I make two or more lines of Lore on an item? How do I make two or more lines of Lore on an item?

Posted On: January 14, 2023
I am playing Minecraft and am making a map for a contest. I want some lore but cannot figure out how to do two or more lines. Question from user DeadlySprinklez at gaming.stackexchange.com. Answ...[More]


I got Hogwarts Legacy today for PC. I got Hogwarts Legacy today for PC.

Posted On: April 21, 2023
I got Hogwarts Legacy for PC today.  I couldn’t quite believe my eyes and all I could say was holy crap. It’s looks absolutely incredible! . Auto set up put everything on ult...[More]


How to obtain all 3 starters on Pokemon Fire Red - Leaf Green and have them as Original Trainer (OT) (Macbook VBA)? How to obtain all 3 starters on Pokemon Fire Red - Leaf Green and have them as Original Trainer (OT) (Macbook VBA)?

Posted On: March 31, 2024
I am currently using an Apple M1 Ventura machine with a VirtualBoyAdvance.How do I get all 3 starters (Bulbasaur, Charmander and Squirtle) with Original Trainer (OT) status on a game without using che...[More]


What is Effect Hit Rate? What is Effect Hit Rate?

Posted On: May 15, 2023
Some relics have an 'Effect Hit Rate' stat. What effect is being referred to here and at what point is the hit/no-hit RNG evaluated? Question from user LT_ at gaming.stackexchange.com. A...[More]


Why don't I love my Dragonborn as I did my Argonians? Why don't I love my Dragonborn as I did my Argonians?

Posted On: March 22, 2026
I can't pinpoint what it is, but I had a fantastic time playing lizard people in Morrowind, Oblivion and Skyrim. It felt different, fun and interesting. The racial traits didn't matter to me - I just ...[More]


How do I check if the HD textures are correctly loaded? How do I check if the HD textures are correctly loaded?

Posted On: February 15, 2023
Is there a way to check if the HD textures of Skyrim are correctly loaded in the game? I installed them without an error, but I'm not quite sure whether they are actually active, as I can't re...[More]


Mob Spawning - Despawning in Minecraft Mob Spawning - Despawning in Minecraft

Posted On: May 30, 2023
So I've been building up my Villager Trading farms and halls and breeders, etc., and one of these builds is the converter - Using a zombie to convert the villager and back again to reduce trade co...[More]


How do I save the Distressed Patient in Baldurs Gate 3? How do I save the Distressed Patient in Baldurs Gate 3?

Posted On: August 9, 2023
I completed combat with Malus Thorm (The Surgeon), and there's a Distressed Patient still locked into the Surgical Bed. He is still alive, but he has the condition "In Surgery" which say...[More]


What do the stars under can produce mean in against the storm What do the stars under can produce mean in against the storm

Posted On: February 7, 2023
Does it mean it can produce those goods faster, higher quality or what? Is it worth it to replace buildings with higher starred versions or prioritize going for buildings with new stuff?So for example...[More]


Is there a Minecraft command for changing biomes? Is there a Minecraft command for changing biomes?

Posted On: August 1, 2023
Is there a command in vanilla Minecraft to change the biome of an area? Question from user Kimatuy at stackexchange. Answer: No, there isn't, and I don't think any mod can do this. ...[More]