Is there a way I can give players enchanted armor in mcpe with commands?How do I give players already...

How can my powered armor quickly replace its ceramic plates?

Why would Pakistan closing its air space cancel flights not headed to Pakistan itself?

My cat mixes up the floors in my building. How can I help him?

IGBT transistor with auxiliary emitter

Is it possible to grant users sftp access without shell access? If yes, how is it implemented?

How did Ancient Greek 'πυρ' become English 'fire?'

How would an AI self awareness kill switch work?

How to limit sight distance to 1 KM

What is causing the chain skip after chain replacement?

Can you tell from a blurry photo if focus was too close or too far?

How can animals be objects of ethics without being subjects as well?

LuaTex and em dashes

Can a person refuse a presidential pardon?

Why exactly do action photographers need high fps burst cameras?

Early credit roll before the end of the film

Difference between i++ and (i)++ in C

Why avoid shared user accounts?

One Half of Ten; A Riddle

Looking for access to original paper for Category O

Cat is tipping over bed-side lamps during the night

How do you funnel food off a cutting board?

Is the set of language decidable by some Turing machine computing in some given computable time bound decidable

Why would space fleets be aligned?

If I delete my router's history can my ISP still provide it to my parents?



Is there a way I can give players enchanted armor in mcpe with commands?


How do I give players already enchanted Tools/Armour/WeaponsHow do you put an enchanted item or an enchanted potion in an item frame with a command block?How can I disable a crafting table so that players cannot interact with it?How to /give spawn eggs in 1.10 with a specific name and enchantmentHow to /give tipped arrows in Windows-10 editionBats don't drop items they are holding in MinecraftIs there a way to give a player a score if they are holding a certain itemHow to execute op level commands for non-op players with command signs?Problems With /replaceitem CommandHow to summon a custom item?(P.C)(V1.13)













0















I am making a minigame and want to be able to give players enchanted items by the click of a button. I know how to use /give but can you also enchant it?



I have tried this:


/give @p diamond_sword 1 0 {ench:[{id:17,lvl:2},{id:19,lvl:2}]}


If it does not work I can just have them click buttons while holding the items.










share|improve this question

























  • I have tried this /give @p bow 1 0 {ench:[{id:51,lvl:1},{id:34,lvl:3}]}

    – Clark Nelson
    Jul 1 '17 at 1:29
















0















I am making a minigame and want to be able to give players enchanted items by the click of a button. I know how to use /give but can you also enchant it?



I have tried this:


/give @p diamond_sword 1 0 {ench:[{id:17,lvl:2},{id:19,lvl:2}]}


If it does not work I can just have them click buttons while holding the items.










share|improve this question

























  • I have tried this /give @p bow 1 0 {ench:[{id:51,lvl:1},{id:34,lvl:3}]}

    – Clark Nelson
    Jul 1 '17 at 1:29














0












0








0








I am making a minigame and want to be able to give players enchanted items by the click of a button. I know how to use /give but can you also enchant it?



I have tried this:


/give @p diamond_sword 1 0 {ench:[{id:17,lvl:2},{id:19,lvl:2}]}


If it does not work I can just have them click buttons while holding the items.










share|improve this question
















I am making a minigame and want to be able to give players enchanted items by the click of a button. I know how to use /give but can you also enchant it?



I have tried this:


/give @p diamond_sword 1 0 {ench:[{id:17,lvl:2},{id:19,lvl:2}]}


If it does not work I can just have them click buttons while holding the items.







minecraft-commands minecraft-pocket-edition






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jul 13 '17 at 22:39









cherryblossom

820425




820425










asked Jun 30 '17 at 19:12









Clark NelsonClark Nelson

613




613













  • I have tried this /give @p bow 1 0 {ench:[{id:51,lvl:1},{id:34,lvl:3}]}

    – Clark Nelson
    Jul 1 '17 at 1:29



















  • I have tried this /give @p bow 1 0 {ench:[{id:51,lvl:1},{id:34,lvl:3}]}

    – Clark Nelson
    Jul 1 '17 at 1:29

















I have tried this /give @p bow 1 0 {ench:[{id:51,lvl:1},{id:34,lvl:3}]}

– Clark Nelson
Jul 1 '17 at 1:29





I have tried this /give @p bow 1 0 {ench:[{id:51,lvl:1},{id:34,lvl:3}]}

– Clark Nelson
Jul 1 '17 at 1:29










6 Answers
6






active

oldest

votes


















1














As of 1.1.3, there is no way you can use the /give command to give already enchanted items as you can't edit the NBT tag.



However, you could connect the button to multiple command blocks. One of them would say /give @p diamond_sword. The other ones would say /enchant @p smite 2 and /enchant @p knockback 2.



I’m assuming the ids you’ve given are for the Java Edition, because the ids for PE are different and id 19 in PE is power, which is not available on a sword. Smite on PE is 10 and knockback is 12. A list of all the ids can be found on the wiki.



NOTE: The /enchant commands won’t work if the player is not holding the dimaond sword.






share|improve this answer

































    1














    Sadly, json only supports CanPlaceOn and CanDestroy functions for adventure and you can give yourself enchanted items only with custom mods. I hope Mojang is working on this...






    share|improve this answer































      0














      Use this: /replaceitem entity [Player/@p/@a/@e/@r/@s] slot.weapon.mainhand 0 diamond_sword
      Then after do /enchant @p -enchantment-






      share|improve this answer

































        0














        We probably aren't talking about this anymore but I'm just pointing out you could clone a dispenser of the enchanted item of your liking and have a command block triggering dispenser as well as teleporting that item to @p. A little harder to set up then a single command but an easy way to not have to use /enchant in case they switch what they are holding on accident





        share








        New contributor




        Jonathon Leach is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.




























          -1














          I'm not sure that's possible, unless you change an items ID






          share|improve this answer





















          • 1





            How do you do that. I am not very good with commands.

            – Clark Nelson
            Jul 1 '17 at 1:28






          • 2





            If you cannot answer, PLEASE DON'T ANSWER.

            – aytimothy
            Jul 1 '17 at 11:22



















          -3














          Yes! I think I've found the solution! It might not work though, but here :




          /give @p diamond_sword 1 0 {tag:{ench:[{id:10,lvl:1},{id:12,lvl:1}]}}







          share|improve this answer





















          • 1





            PE does not have NBT data. If it did and matched the structure of JE, that would not work because the NBT data for /give already starts in the tag compound.

            – Skylinerw
            Dec 23 '17 at 0:44











          • Same to do with Skylinerw... I've tried everything, de-compiling MCPE's data and trying to type stuff like that in commands, using caps and no-caps, strings and no-strings, but to no avail. Looks like we'll just have to wait until it comes in a future update. Expect it soon though, as the next update is major.

            – machinebuilder
            Jan 24 '18 at 3:20











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "41"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          noCode: true, onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgaming.stackexchange.com%2fquestions%2f312231%2fis-there-a-way-i-can-give-players-enchanted-armor-in-mcpe-with-commands%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          6 Answers
          6






          active

          oldest

          votes








          6 Answers
          6






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          As of 1.1.3, there is no way you can use the /give command to give already enchanted items as you can't edit the NBT tag.



          However, you could connect the button to multiple command blocks. One of them would say /give @p diamond_sword. The other ones would say /enchant @p smite 2 and /enchant @p knockback 2.



          I’m assuming the ids you’ve given are for the Java Edition, because the ids for PE are different and id 19 in PE is power, which is not available on a sword. Smite on PE is 10 and knockback is 12. A list of all the ids can be found on the wiki.



          NOTE: The /enchant commands won’t work if the player is not holding the dimaond sword.






          share|improve this answer






























            1














            As of 1.1.3, there is no way you can use the /give command to give already enchanted items as you can't edit the NBT tag.



            However, you could connect the button to multiple command blocks. One of them would say /give @p diamond_sword. The other ones would say /enchant @p smite 2 and /enchant @p knockback 2.



            I’m assuming the ids you’ve given are for the Java Edition, because the ids for PE are different and id 19 in PE is power, which is not available on a sword. Smite on PE is 10 and knockback is 12. A list of all the ids can be found on the wiki.



            NOTE: The /enchant commands won’t work if the player is not holding the dimaond sword.






            share|improve this answer




























              1












              1








              1







              As of 1.1.3, there is no way you can use the /give command to give already enchanted items as you can't edit the NBT tag.



              However, you could connect the button to multiple command blocks. One of them would say /give @p diamond_sword. The other ones would say /enchant @p smite 2 and /enchant @p knockback 2.



              I’m assuming the ids you’ve given are for the Java Edition, because the ids for PE are different and id 19 in PE is power, which is not available on a sword. Smite on PE is 10 and knockback is 12. A list of all the ids can be found on the wiki.



              NOTE: The /enchant commands won’t work if the player is not holding the dimaond sword.






              share|improve this answer















              As of 1.1.3, there is no way you can use the /give command to give already enchanted items as you can't edit the NBT tag.



              However, you could connect the button to multiple command blocks. One of them would say /give @p diamond_sword. The other ones would say /enchant @p smite 2 and /enchant @p knockback 2.



              I’m assuming the ids you’ve given are for the Java Edition, because the ids for PE are different and id 19 in PE is power, which is not available on a sword. Smite on PE is 10 and knockback is 12. A list of all the ids can be found on the wiki.



              NOTE: The /enchant commands won’t work if the player is not holding the dimaond sword.







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Jun 15 '18 at 12:19

























              answered Jul 8 '17 at 5:51









              cherryblossomcherryblossom

              820425




              820425

























                  1














                  Sadly, json only supports CanPlaceOn and CanDestroy functions for adventure and you can give yourself enchanted items only with custom mods. I hope Mojang is working on this...






                  share|improve this answer




























                    1














                    Sadly, json only supports CanPlaceOn and CanDestroy functions for adventure and you can give yourself enchanted items only with custom mods. I hope Mojang is working on this...






                    share|improve this answer


























                      1












                      1








                      1







                      Sadly, json only supports CanPlaceOn and CanDestroy functions for adventure and you can give yourself enchanted items only with custom mods. I hope Mojang is working on this...






                      share|improve this answer













                      Sadly, json only supports CanPlaceOn and CanDestroy functions for adventure and you can give yourself enchanted items only with custom mods. I hope Mojang is working on this...







                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered Dec 4 '18 at 9:54









                      The_FaceThe_Face

                      111




                      111























                          0














                          Use this: /replaceitem entity [Player/@p/@a/@e/@r/@s] slot.weapon.mainhand 0 diamond_sword
                          Then after do /enchant @p -enchantment-






                          share|improve this answer






























                            0














                            Use this: /replaceitem entity [Player/@p/@a/@e/@r/@s] slot.weapon.mainhand 0 diamond_sword
                            Then after do /enchant @p -enchantment-






                            share|improve this answer




























                              0












                              0








                              0







                              Use this: /replaceitem entity [Player/@p/@a/@e/@r/@s] slot.weapon.mainhand 0 diamond_sword
                              Then after do /enchant @p -enchantment-






                              share|improve this answer















                              Use this: /replaceitem entity [Player/@p/@a/@e/@r/@s] slot.weapon.mainhand 0 diamond_sword
                              Then after do /enchant @p -enchantment-







                              share|improve this answer














                              share|improve this answer



                              share|improve this answer








                              edited Sep 26 '17 at 7:57









                              DJ Pirtu

                              8,48684565




                              8,48684565










                              answered Sep 26 '17 at 7:10









                              SkyGamesSkyGames

                              1




                              1























                                  0














                                  We probably aren't talking about this anymore but I'm just pointing out you could clone a dispenser of the enchanted item of your liking and have a command block triggering dispenser as well as teleporting that item to @p. A little harder to set up then a single command but an easy way to not have to use /enchant in case they switch what they are holding on accident





                                  share








                                  New contributor




                                  Jonathon Leach is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                  Check out our Code of Conduct.

























                                    0














                                    We probably aren't talking about this anymore but I'm just pointing out you could clone a dispenser of the enchanted item of your liking and have a command block triggering dispenser as well as teleporting that item to @p. A little harder to set up then a single command but an easy way to not have to use /enchant in case they switch what they are holding on accident





                                    share








                                    New contributor




                                    Jonathon Leach is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                    Check out our Code of Conduct.























                                      0












                                      0








                                      0







                                      We probably aren't talking about this anymore but I'm just pointing out you could clone a dispenser of the enchanted item of your liking and have a command block triggering dispenser as well as teleporting that item to @p. A little harder to set up then a single command but an easy way to not have to use /enchant in case they switch what they are holding on accident





                                      share








                                      New contributor




                                      Jonathon Leach is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                      Check out our Code of Conduct.










                                      We probably aren't talking about this anymore but I'm just pointing out you could clone a dispenser of the enchanted item of your liking and have a command block triggering dispenser as well as teleporting that item to @p. A little harder to set up then a single command but an easy way to not have to use /enchant in case they switch what they are holding on accident






                                      share








                                      New contributor




                                      Jonathon Leach is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                      Check out our Code of Conduct.








                                      share


                                      share






                                      New contributor




                                      Jonathon Leach is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                      Check out our Code of Conduct.









                                      answered 4 mins ago









                                      Jonathon LeachJonathon Leach

                                      1




                                      1




                                      New contributor




                                      Jonathon Leach is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                      Check out our Code of Conduct.





                                      New contributor





                                      Jonathon Leach is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                      Check out our Code of Conduct.






                                      Jonathon Leach is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                      Check out our Code of Conduct.























                                          -1














                                          I'm not sure that's possible, unless you change an items ID






                                          share|improve this answer





















                                          • 1





                                            How do you do that. I am not very good with commands.

                                            – Clark Nelson
                                            Jul 1 '17 at 1:28






                                          • 2





                                            If you cannot answer, PLEASE DON'T ANSWER.

                                            – aytimothy
                                            Jul 1 '17 at 11:22
















                                          -1














                                          I'm not sure that's possible, unless you change an items ID






                                          share|improve this answer





















                                          • 1





                                            How do you do that. I am not very good with commands.

                                            – Clark Nelson
                                            Jul 1 '17 at 1:28






                                          • 2





                                            If you cannot answer, PLEASE DON'T ANSWER.

                                            – aytimothy
                                            Jul 1 '17 at 11:22














                                          -1












                                          -1








                                          -1







                                          I'm not sure that's possible, unless you change an items ID






                                          share|improve this answer















                                          I'm not sure that's possible, unless you change an items ID







                                          share|improve this answer














                                          share|improve this answer



                                          share|improve this answer








                                          edited Jun 30 '17 at 23:50

























                                          answered Jun 30 '17 at 23:39









                                          slippymaster64slippymaster64

                                          111




                                          111








                                          • 1





                                            How do you do that. I am not very good with commands.

                                            – Clark Nelson
                                            Jul 1 '17 at 1:28






                                          • 2





                                            If you cannot answer, PLEASE DON'T ANSWER.

                                            – aytimothy
                                            Jul 1 '17 at 11:22














                                          • 1





                                            How do you do that. I am not very good with commands.

                                            – Clark Nelson
                                            Jul 1 '17 at 1:28






                                          • 2





                                            If you cannot answer, PLEASE DON'T ANSWER.

                                            – aytimothy
                                            Jul 1 '17 at 11:22








                                          1




                                          1





                                          How do you do that. I am not very good with commands.

                                          – Clark Nelson
                                          Jul 1 '17 at 1:28





                                          How do you do that. I am not very good with commands.

                                          – Clark Nelson
                                          Jul 1 '17 at 1:28




                                          2




                                          2





                                          If you cannot answer, PLEASE DON'T ANSWER.

                                          – aytimothy
                                          Jul 1 '17 at 11:22





                                          If you cannot answer, PLEASE DON'T ANSWER.

                                          – aytimothy
                                          Jul 1 '17 at 11:22











                                          -3














                                          Yes! I think I've found the solution! It might not work though, but here :




                                          /give @p diamond_sword 1 0 {tag:{ench:[{id:10,lvl:1},{id:12,lvl:1}]}}







                                          share|improve this answer





















                                          • 1





                                            PE does not have NBT data. If it did and matched the structure of JE, that would not work because the NBT data for /give already starts in the tag compound.

                                            – Skylinerw
                                            Dec 23 '17 at 0:44











                                          • Same to do with Skylinerw... I've tried everything, de-compiling MCPE's data and trying to type stuff like that in commands, using caps and no-caps, strings and no-strings, but to no avail. Looks like we'll just have to wait until it comes in a future update. Expect it soon though, as the next update is major.

                                            – machinebuilder
                                            Jan 24 '18 at 3:20
















                                          -3














                                          Yes! I think I've found the solution! It might not work though, but here :




                                          /give @p diamond_sword 1 0 {tag:{ench:[{id:10,lvl:1},{id:12,lvl:1}]}}







                                          share|improve this answer





















                                          • 1





                                            PE does not have NBT data. If it did and matched the structure of JE, that would not work because the NBT data for /give already starts in the tag compound.

                                            – Skylinerw
                                            Dec 23 '17 at 0:44











                                          • Same to do with Skylinerw... I've tried everything, de-compiling MCPE's data and trying to type stuff like that in commands, using caps and no-caps, strings and no-strings, but to no avail. Looks like we'll just have to wait until it comes in a future update. Expect it soon though, as the next update is major.

                                            – machinebuilder
                                            Jan 24 '18 at 3:20














                                          -3












                                          -3








                                          -3







                                          Yes! I think I've found the solution! It might not work though, but here :




                                          /give @p diamond_sword 1 0 {tag:{ench:[{id:10,lvl:1},{id:12,lvl:1}]}}







                                          share|improve this answer















                                          Yes! I think I've found the solution! It might not work though, but here :




                                          /give @p diamond_sword 1 0 {tag:{ench:[{id:10,lvl:1},{id:12,lvl:1}]}}








                                          share|improve this answer














                                          share|improve this answer



                                          share|improve this answer








                                          edited Dec 23 '17 at 3:10









                                          arghtype

                                          5,25582347




                                          5,25582347










                                          answered Dec 23 '17 at 0:41









                                          machinebuildermachinebuilder

                                          1




                                          1








                                          • 1





                                            PE does not have NBT data. If it did and matched the structure of JE, that would not work because the NBT data for /give already starts in the tag compound.

                                            – Skylinerw
                                            Dec 23 '17 at 0:44











                                          • Same to do with Skylinerw... I've tried everything, de-compiling MCPE's data and trying to type stuff like that in commands, using caps and no-caps, strings and no-strings, but to no avail. Looks like we'll just have to wait until it comes in a future update. Expect it soon though, as the next update is major.

                                            – machinebuilder
                                            Jan 24 '18 at 3:20














                                          • 1





                                            PE does not have NBT data. If it did and matched the structure of JE, that would not work because the NBT data for /give already starts in the tag compound.

                                            – Skylinerw
                                            Dec 23 '17 at 0:44











                                          • Same to do with Skylinerw... I've tried everything, de-compiling MCPE's data and trying to type stuff like that in commands, using caps and no-caps, strings and no-strings, but to no avail. Looks like we'll just have to wait until it comes in a future update. Expect it soon though, as the next update is major.

                                            – machinebuilder
                                            Jan 24 '18 at 3:20








                                          1




                                          1





                                          PE does not have NBT data. If it did and matched the structure of JE, that would not work because the NBT data for /give already starts in the tag compound.

                                          – Skylinerw
                                          Dec 23 '17 at 0:44





                                          PE does not have NBT data. If it did and matched the structure of JE, that would not work because the NBT data for /give already starts in the tag compound.

                                          – Skylinerw
                                          Dec 23 '17 at 0:44













                                          Same to do with Skylinerw... I've tried everything, de-compiling MCPE's data and trying to type stuff like that in commands, using caps and no-caps, strings and no-strings, but to no avail. Looks like we'll just have to wait until it comes in a future update. Expect it soon though, as the next update is major.

                                          – machinebuilder
                                          Jan 24 '18 at 3:20





                                          Same to do with Skylinerw... I've tried everything, de-compiling MCPE's data and trying to type stuff like that in commands, using caps and no-caps, strings and no-strings, but to no avail. Looks like we'll just have to wait until it comes in a future update. Expect it soon though, as the next update is major.

                                          – machinebuilder
                                          Jan 24 '18 at 3:20


















                                          draft saved

                                          draft discarded




















































                                          Thanks for contributing an answer to Arqade!


                                          • Please be sure to answer the question. Provide details and share your research!

                                          But avoid



                                          • Asking for help, clarification, or responding to other answers.

                                          • Making statements based on opinion; back them up with references or personal experience.


                                          To learn more, see our tips on writing great answers.




                                          draft saved


                                          draft discarded














                                          StackExchange.ready(
                                          function () {
                                          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgaming.stackexchange.com%2fquestions%2f312231%2fis-there-a-way-i-can-give-players-enchanted-armor-in-mcpe-with-commands%23new-answer', 'question_page');
                                          }
                                          );

                                          Post as a guest















                                          Required, but never shown





















































                                          Required, but never shown














                                          Required, but never shown












                                          Required, but never shown







                                          Required, but never shown

































                                          Required, but never shown














                                          Required, but never shown












                                          Required, but never shown







                                          Required, but never shown







                                          Popular posts from this blog

                                          Benedict Cumberbatch Contingut Inicis Debut professional Premis Filmografia bàsica Premis i...

                                          Monticle de plataforma Contingut Est de Nord Amèrica Interpretacions Altres cultures Vegeu...

                                          Escacs Janus Enllaços externs Menú de navegacióEscacs JanusJanusschachBrainKing.comChessV