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 can I play .dcr Shockwave games? How can I play .dcr Shockwave games?

Posted On: January 17, 2023
I found this set of old games, that I would really like to play, that use adobe shockwave. Specifically, "World Builder" from "game archive 3". I am using XAMPP as it said to do in...[More]


Are there any merchants in Legend of Grimrock 2? Are there any merchants in Legend of Grimrock 2?

Posted On: June 13, 2023
Are there any merchants in Legend of Grimrock 2? I want to know if I should hoard items or just drop the ones that I don't need. I assume it's the same as the first but I want to make sure. ...[More]


What does this H buff icon mean? What does this H buff icon mean?

Posted On: September 21, 2023
Today I was doing No Rest for the Wicked and noticed this H icon in my buffs area. It's not the icon for edge, grit, or rush for certain, it's some kind of fourth icon that I've never seen...[More]


Today I learned Today I learned

Posted On: August 29, 2023
That you can simply kill a dugbog by slicing its tongue. Question from user BoosterSeat3 at HogwartsLegacyGaming at reddit. Answer: Yeah! If you keep your eye on the dueling feats, they usual...[More]


Whats this game with a cyberspace aesthetic featured in a youtube clip? Whats this game with a cyberspace aesthetic featured in a youtube clip?

Posted On: February 7, 2023
This video starts with a montage of game clips and I'm trying to figure out what the game is that appears at 10 seconds in. It features a cyberspace aesthetic and it has a first-person perspective...[More]


How long do I need to survive on the Hyperbolica rocket skis? How long do I need to survive on the Hyperbolica rocket skis?

Posted On: May 9, 2023
In the Frosted Fields there is an inventor who created a pair of rocket skis. They ask you to prove the rocket skis are safe by testing them and surviving until they run out of fuel. How long do I ...[More]


Returnal Why cant I destroy this energy barrier with my melee attack? Returnal Why cant I destroy this energy barrier with my melee attack?

Posted On: May 4, 2023
This energy barrier doesn't appear to be any different than any of the other energy barriers I've destroyed (unless it's another colour blind issue), so I'm really confused as to why I...[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]


Zelda Breath Of The Wild Where can I find spicy peppers? Zelda Breath Of The Wild Where can I find spicy peppers?

Posted On: May 3, 2023
I used all the spicy peppers and the old man says that I will find them by the citadel of time, but I've searched and found nothing. What does this plant look like and where is it? Question ...[More]


Elder Scrolls V: Is there a reliable, continuous source for dragon locations? Elder Scrolls V: Is there a reliable, continuous source for dragon locations?

Posted On: August 26, 2023
I'm trying to gather bones and scales to make armor for one character, and I've come to realize that there's never really any dragons around when you want them to be. Is there a reliabl...[More]