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 sell off the junk in my ship for good? How do I sell off the junk in my ship for good?

Posted On: September 12, 2023
My current home ship was confiscated from some baddies and has some shielded cargo. I have upgraded a bit to increase my cargo capacity to safely store my belongings. However, I like collecting rocks ...[More]


Does Lore Bard get good at later levels? Does Lore Bard get good at later levels?

Posted On: September 25, 2023
Hey all, I know basically all straight classes end up good enough, but I am trying to decide between a pure sorcerer or pure bard. I have a paladin/warlock sitting at the start of ACT 3 and just got b...[More]


Do BG fans feel threatened by Bethesda's Starfield? Do BG fans feel threatened by Bethesda's Starfield?

Posted On: September 24, 2023
Do you think Starfield is going to completely overshadow BG3? Question from user ThanosofTitan92 at BaldursGate3 at reddit. Answer: No. Answer from user funkyfritter at BaldursGate3 at red...[More]


setworldspawn is not spawning players to the exact place setworldspawn is not spawning players to the exact place

Posted On: March 27, 2023
I am trying to make a Minecraft map but I can't set the world spawn. I did /setworldspawn then /kill and I ended up 10 blocks away then I tried again I was still 5 blocks away. . In the map it ...[More]


In Cookie Clicker how can I make profit from stocks? In Cookie Clicker how can I make profit from stocks?

Posted On: March 3, 2023
I am trying to use the stock minigame to make cookies. However, I am having trouble making a profit, because I don't know what patterns to look for in the prices. What should I look for when buyin...[More]


In Lucky Luna, how many gems do I lose when I die? In Lucky Luna, how many gems do I lose when I die?

Posted On: March 11, 2023
Whenever I die in Lucky Luna I lose some of my gems. The amount of gems I lose seems to vary. What determines how many gems I lose when I die? Question from user Stevoisiak at gaming.stackexchange....[More]


Neds Island weapon slots and backpack SDU in DLC Neds Island weapon slots and backpack SDU in DLC

Posted On: March 24, 2023
I have started playing Ned's Island. Will I unlock all weapon slots and backpack slots without completing original content? Question from user Dmitry Mukhin at gaming.stackexchange.com. Answ...[More]


Can you keep a piglin from turning into a zombified-piglin in the overworld? Can you keep a piglin from turning into a zombified-piglin in the overworld?

Posted On: March 2, 2023
Is it possible for you to keep a piglin unzombified in the overworld, whether it be through use of commands or otherwise? Question from user 12 rhombi in grid w no corners at gaming.stackexchange.c...[More]


Dark Souls 3, How do I kill the Abyss Watchers? Dark Souls 3, How do I kill the Abyss Watchers?

Posted On: May 21, 2023
I have been trying so hard for a week and I can't figure out how to kill these guys. I can finish off the first phase but no matter how hard I try, I can't kill the fire dude! Does anyone k...[More]


How to setup Xbox Series S|X for a family? How to setup Xbox Series S|X for a family?

Posted On: March 7, 2023
I'm new to Xbox and have created an account for me and my children and have linked them to as a family. Will all members of the family be able to play if I login and setup the Xbox with my acco...[More]