How to give a player an effect when a egg is thrown|mcpe
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
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.
add a comment |
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
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.
add a comment |
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
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
minecraft-commands minecraft-pocket-edition
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.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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.
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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
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
add a comment |
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.
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
add a comment |
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.
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.
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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