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]

Whats the games equivalent of the force Whats the games equivalent of the force

Posted On: June 10, 2024
Not Jedi per se, but the power of that world, like Destiny 2 has light and dark, Star Wars has the Force, Harry Potter Just has magic, etc.I like playing tanky characters that use whatever the primary...[More]


How do I find the ID for a game on Steam? How do I find the ID for a game on Steam?

Posted On: May 18, 2023
Every game on Steam has a different Game ID (also known as App ID). For instance, looking on my own computer, Portal has an ID of 400, and FTL: Faster Than Light is 212680. How do I find this ID fo...[More]


In Wii Sports Resort, can I have an overview of all my stamps? In Wii Sports Resort, can I have an overview of all my stamps?

Posted On: March 9, 2023
Is there an overview of all stamps for all games somewhere? So far, my only option is to access (and start playing) every single game in order to see what stamps I am missing, which is quite annoying....[More]


Does Hogwarts Legacy have multiple endings? Does Hogwarts Legacy have multiple endings?

Posted On: March 13, 2023
I am planning to replay Hogwarts Legacy after I've completed current story, but if there is multiple endings, I think I'm going to try this game out without learning the unforgivable curses. S...[More]


Can I give the naked stalking courier his clothes back? Can I give the naked stalking courier his clothes back?

Posted On: April 8, 2013
The courier who frequently delivers you letters to start quest chains got killed outside of Riften by the guards. Not wanting to let a perfectly good dead body go to waste I decided to loot it, includ...[More]


How can you jump farther in Temple Run? How can you jump farther in Temple Run?

Posted On: August 5, 2023
I'm playing Temple Run for iOS and there are parts where you need to jump really far in order to get over a broken path. Does anyone know how to jump over these tricky parts? Is there a way to ...[More]


How can I record gameplay on a Mac? How can I record gameplay on a Mac?

Posted On: August 19, 2023
I can find plenty of information on recording programs for Windows, but information for OS X is much harder to find. What are the requirements and steps for recording gameplay on a Mac? Question fr...[More]


Why is Ranrok so difficult to defeat is it my offence? Why is Ranrok so difficult to defeat is it my offence?

Posted On: August 31, 2023
His health bar barely goes down feels like it’s gonna take 3 weeks to defeat him. Question from user typicalking97 at HogwartsLegacyGaming at reddit. Answer: Even I was badly stuck ther...[More]


Is it a problem if the wall portion of a bedroom overlaps with another one in Dwarf Fortress? Is it a problem if the wall portion of a bedroom overlaps with another one in Dwarf Fortress?

Posted On: December 26, 2023
I've just recently learned that a bedroom should contain the walls too, but I only have a 1 tile wide wall between my bedrooms. Is it a problem if these room designations overlap? Question f...[More]


What are the benefits of playing with original game CDs? What are the benefits of playing with original game CDs?

Posted On: June 10, 2023
Please don't take me in the wrong sense. I am not advocating for piracy. In fact I want to know about the advantages of playing with original game CDs so that I can attract gamers in my region, in...[More]