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]

In Vampire Survivors, why are some Bestiary entries yellow? In Vampire Survivors, why are some Bestiary entries yellow?

Posted On: March 12, 2023
Why are Skeleton, Lionhead, Milk Elemental and Dragon Shrimp written in yellow font? There are more entries like, but I think they are less than 10% of all. Question from user arghtype at gaming.st...[More]


What does the padlock icon in Pokemon summary page mean? What does the padlock icon in Pokemon summary page mean?

Posted On: April 6, 2023
I've noticed that there's a padlock icon in every Pokemon summary page, but I can't figure out its meaning or how to use it. How can you lock a Pokemon? And lock from what? Or is tha...[More]


What is the maximum number of tags a mob can have in Minecraft? What is the maximum number of tags a mob can have in Minecraft?

Posted On: February 26, 2023
In minecraft 1.16.1, If you run this command two times: /tag @p add test you will get a message that says, Target either already has the tag or has too many tags. So that means i know there is a limit...[More]


PS5 controller doesnt charge PS5 controller doesnt charge

Posted On: July 5, 2023
I have bought controller to use on PC. But when I connect it to USB to charge, orange light glows once and stops. If I connect it to Mac, it glows solid orange with white middle light. It should...[More]


How many dead horses will the Horse God, Malanya, remember? How many dead horses will the Horse God, Malanya, remember?

Posted On: August 15, 2023
After paying to unlock Malanya, the Horse God, you can revive horses that you had boarded that have reached a state of no longer living. Is there some kind of limit on how many horses are available to...[More]


Anyone else doing this in Hogwarts Legacy? Anyone else doing this in Hogwarts Legacy?

Posted On: March 11, 2023
Just curious if anyone else is trying to be good and stay away from the Dark Arts. I have yet to spend any talent point in it. I never use the spells, however I did learn them. The reason behind me...[More]


How do I survive the vampire attack during the Bloodchill Manor quest? How do I survive the vampire attack during the Bloodchill Manor quest?

Posted On: January 23, 2023
I've tried several times to live and not contract Sanguinare Vampiris (although, I've only been using Lifeblood, my dwarven warhammer enchanted with the health-point-steal and not the Flames s...[More]


i CANNOT beat this fight ? i CANNOT beat this fight ?

Posted On: December 5, 2024
This lorroakan fight seems impossible, i’ve tried ‘hold person’, ‘dominate person’, ‘silence’ and he just gets saved from them all and absolutely whoops my ass. i’ve tried going for th...[More]


Does XBox gamepad emulator software exist for the PC? Does XBox gamepad emulator software exist for the PC?

Posted On: March 21, 2023
What I'm hoping to do is use a second keyboard and/or mouse in the place of a gamepad for games that require a gamepad to enable multiplayer gaming. I've noticed a few games that are XBox port...[More]


What devices can you play Sonic Mania on? What devices can you play Sonic Mania on?

Posted On: January 24, 2023
I asked this question because Sonic Mania can probably be played on a few devices.Question from user Dark sonic at gaming.stackexchange.com.Answer:From the Wikipedia article on Sonic Mania, the game i...[More]