How to give a player an effect when a egg is thrown|mcpe












1














I’m trying to create a KitPVP with power ups and I want it so that when someone with an archer throws an egg, it gives the person speed and strength. If there’s addon for it, please tell me. Thank you










share|improve this question
















bumped to the homepage by Community 7 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.




















    1














    I’m trying to create a KitPVP with power ups and I want it so that when someone with an archer throws an egg, it gives the person speed and strength. If there’s addon for it, please tell me. Thank you










    share|improve this question
















    bumped to the homepage by Community 7 mins ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      1












      1








      1







      I’m trying to create a KitPVP with power ups and I want it so that when someone with an archer throws an egg, it gives the person speed and strength. If there’s addon for it, please tell me. Thank you










      share|improve this question















      I’m trying to create a KitPVP with power ups and I want it so that when someone with an archer throws an egg, it gives the person speed and strength. If there’s addon for it, please tell me. Thank you







      minecraft-commands minecraft-pocket-edition






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 10 '18 at 5:58









      Fabian Röling

      5,37231236




      5,37231236










      asked Dec 9 '18 at 23:34









      Cactus882Cactus882

      111




      111





      bumped to the homepage by Community 7 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 7 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          1 Answer
          1






          active

          oldest

          votes


















          0














          I don't know what you mean by "when someone with an archer", but for this I'm assuming it's when a player is near someone with a bow.



          Step 1: create an objective that tracks players who throw eggs.



          /scoreboard objectives add egg minecraft.used:minecraft.egg



          Step 2: run this command in a repeating command block.



          /execute as @a[scores={egg=1}] if entity @a[distance=..4,nbt={Inventory:[{id:"minecraft:bow"}]}] run effect give @s speed



          This targets all players who had thrown an egg and is within a 4 block radius of someone with a bow and gives the egg thrower speed.



          Step 3: repeat step two with any additional effects, then run this last command in a chain command block.



          /scoreboard players reset @a egg



          Does that help?



          EDIT: just noticed you said this is for pocket edition. This may not work after all.






          share|improve this answer





















          • Sorry I meant to add a person with an archer kit...
            – Cactus882
            Dec 10 '18 at 0:26










          • In that case you can remove the part from "if" to right before "run", and edit the first string to make it to your liking.
            – SpiceWeasel
            Dec 10 '18 at 0:29











          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%2f342173%2fhow-to-give-a-player-an-effect-when-a-egg-is-thrownmcpe%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          I don't know what you mean by "when someone with an archer", but for this I'm assuming it's when a player is near someone with a bow.



          Step 1: create an objective that tracks players who throw eggs.



          /scoreboard objectives add egg minecraft.used:minecraft.egg



          Step 2: run this command in a repeating command block.



          /execute as @a[scores={egg=1}] if entity @a[distance=..4,nbt={Inventory:[{id:"minecraft:bow"}]}] run effect give @s speed



          This targets all players who had thrown an egg and is within a 4 block radius of someone with a bow and gives the egg thrower speed.



          Step 3: repeat step two with any additional effects, then run this last command in a chain command block.



          /scoreboard players reset @a egg



          Does that help?



          EDIT: just noticed you said this is for pocket edition. This may not work after all.






          share|improve this answer





















          • Sorry I meant to add a person with an archer kit...
            – Cactus882
            Dec 10 '18 at 0:26










          • In that case you can remove the part from "if" to right before "run", and edit the first string to make it to your liking.
            – SpiceWeasel
            Dec 10 '18 at 0:29
















          0














          I don't know what you mean by "when someone with an archer", but for this I'm assuming it's when a player is near someone with a bow.



          Step 1: create an objective that tracks players who throw eggs.



          /scoreboard objectives add egg minecraft.used:minecraft.egg



          Step 2: run this command in a repeating command block.



          /execute as @a[scores={egg=1}] if entity @a[distance=..4,nbt={Inventory:[{id:"minecraft:bow"}]}] run effect give @s speed



          This targets all players who had thrown an egg and is within a 4 block radius of someone with a bow and gives the egg thrower speed.



          Step 3: repeat step two with any additional effects, then run this last command in a chain command block.



          /scoreboard players reset @a egg



          Does that help?



          EDIT: just noticed you said this is for pocket edition. This may not work after all.






          share|improve this answer





















          • Sorry I meant to add a person with an archer kit...
            – Cactus882
            Dec 10 '18 at 0:26










          • In that case you can remove the part from "if" to right before "run", and edit the first string to make it to your liking.
            – SpiceWeasel
            Dec 10 '18 at 0:29














          0












          0








          0






          I don't know what you mean by "when someone with an archer", but for this I'm assuming it's when a player is near someone with a bow.



          Step 1: create an objective that tracks players who throw eggs.



          /scoreboard objectives add egg minecraft.used:minecraft.egg



          Step 2: run this command in a repeating command block.



          /execute as @a[scores={egg=1}] if entity @a[distance=..4,nbt={Inventory:[{id:"minecraft:bow"}]}] run effect give @s speed



          This targets all players who had thrown an egg and is within a 4 block radius of someone with a bow and gives the egg thrower speed.



          Step 3: repeat step two with any additional effects, then run this last command in a chain command block.



          /scoreboard players reset @a egg



          Does that help?



          EDIT: just noticed you said this is for pocket edition. This may not work after all.






          share|improve this answer












          I don't know what you mean by "when someone with an archer", but for this I'm assuming it's when a player is near someone with a bow.



          Step 1: create an objective that tracks players who throw eggs.



          /scoreboard objectives add egg minecraft.used:minecraft.egg



          Step 2: run this command in a repeating command block.



          /execute as @a[scores={egg=1}] if entity @a[distance=..4,nbt={Inventory:[{id:"minecraft:bow"}]}] run effect give @s speed



          This targets all players who had thrown an egg and is within a 4 block radius of someone with a bow and gives the egg thrower speed.



          Step 3: repeat step two with any additional effects, then run this last command in a chain command block.



          /scoreboard players reset @a egg



          Does that help?



          EDIT: just noticed you said this is for pocket edition. This may not work after all.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Dec 9 '18 at 23:53









          SpiceWeaselSpiceWeasel

          1871212




          1871212












          • Sorry I meant to add a person with an archer kit...
            – Cactus882
            Dec 10 '18 at 0:26










          • In that case you can remove the part from "if" to right before "run", and edit the first string to make it to your liking.
            – SpiceWeasel
            Dec 10 '18 at 0:29


















          • Sorry I meant to add a person with an archer kit...
            – Cactus882
            Dec 10 '18 at 0:26










          • In that case you can remove the part from "if" to right before "run", and edit the first string to make it to your liking.
            – SpiceWeasel
            Dec 10 '18 at 0:29
















          Sorry I meant to add a person with an archer kit...
          – Cactus882
          Dec 10 '18 at 0:26




          Sorry I meant to add a person with an archer kit...
          – Cactus882
          Dec 10 '18 at 0:26












          In that case you can remove the part from "if" to right before "run", and edit the first string to make it to your liking.
          – SpiceWeasel
          Dec 10 '18 at 0:29




          In that case you can remove the part from "if" to right before "run", and edit the first string to make it to your liking.
          – SpiceWeasel
          Dec 10 '18 at 0:29


















          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.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • 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%2f342173%2fhow-to-give-a-player-an-effect-when-a-egg-is-thrownmcpe%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

          Fluorita

          Hulsita

          Península de Txukotka