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 many types of charging ports do Nintendo handhelds have? How many types of charging ports do Nintendo handhelds have?

Posted On: June 17, 2023
I'm sorting through my old Nintendo handhelds and have found that many of them use different charging cables. I've seen at least four different types:. Nintendo Switch & Switch Lite. ...[More]


Is there a way to prevent Nook from auto selling a spot in Animal Crossing? Is there a way to prevent Nook from auto selling a spot in Animal Crossing?

Posted On: May 28, 2023
My SO has that problem, but I never encountered it myself. It seems that Nook, when someone moves out, will auto fill the spot left with a random villager, and that in usually 2-3 days, sometimes e...[More]


How can I set up a proper turn-based ambush in BG3? How can I set up a proper turn-based ambush in BG3?

Posted On: March 3, 2024
When my party encounters a group of unaware enemies, I want to sneak up.on the enemies, get everyone into position, then attack together. How.do I do that?My naive approach so far is:.Before initiati...[More]


I deleted the portal to the end city in minecraft I deleted the portal to the end city in minecraft

Posted On: February 3, 2023
I was messing around with my Minecraft world and accidentally deleted the portal on the main end island that leads to the first end city (don't ask me how). Does anyone know how I can put it ba...[More]


What types of kills are counted on Strange Flamethrowers? What types of kills are counted on Strange Flamethrowers?

Posted On: April 9, 2024
When playing Team Fortress 2, I noticed that my Strange Flare Gun had more than double the amount of kills my Strange Degreaser had (I started using both of them at about the same time). Even though I...[More]


Is this Moaning Myrtle in Hogwarts Legacy? Is this Moaning Myrtle in Hogwarts Legacy?

Posted On: June 23, 2023
My fiance was playing Hogwarts Legacy and this girl walked by that looks like Moaning Myrtle. Idk if its supposed to be her or just look like her but either way it's funny. Question from user F...[More]


Patch 3 kinda sucks? Patch 3 kinda sucks?

Posted On: September 25, 2023
His Majesty has hair - just why? Raphael got a bad dye job (and basic horns?), as a Raphael simp - fuck this shit!. Shared stash. need I say more? Camera now focuses on Tav and you can't ...[More]


Unable to give player custom splash potion Unable to give player custom splash potion

Posted On: April 26, 2024
I'm trying to make a custom splash potion but whenever I give it to myself it gives me a splash uncraftable potion.What am I doing wrong?The command I'm using is:./give @p minecraft:splash_potion{tag:...[More]


Minecraft doesnt launch with the Ultrasurf proxy? Minecraft doesnt launch with the Ultrasurf proxy?

Posted On: June 7, 2023
I often go to the library to play Minecraft. Since there are a lot of people playing there, enough people put in the wrong credentials such that the library IP is often temporarily banned from the Moj...[More]


What does it mean to have sacred - ancestral aspects? What does it mean to have sacred - ancestral aspects?

Posted On: August 15, 2023
As my level increases, I'm starting to find some sacred/ancestral versions of aspects. However, for the vast majority of aspects, it seems to make no difference what version it is. (in fact, th...[More]