Minecraft command block targetingSelecting previous target in a second command blockCan I teleport entity to the block the player is targeting usnig command blocks?Minecraft Command Block Remote Volume SelectionHow to make a command block output a negative signalHow to test for the entity closest to the player?Command block questions using the execute commandMinecraft block detection for a specific blockMinecraft - execute command testing logic (lightning Sword)command block - "you must be a player to use this command!'Using execute command to teleport a player under a certain height
Some Prime Peerage
If a space ship entered Earth orbit, how likely is it to be seen?
What organs or modifications would be needed for a life biological creature not to require sleep?
How can I discourage sharing internal API keys within a company?
What is the name of this Allen-head furniture fastener?
In what sequence should an advanced civilization teach technology to medieval society to maximize rate of adoption?
What 68-pin connector is this on my 2.5" solid state drive?
ColorFunction based on array index in ListLinePlot
In what state are satellites left in when they are left in a graveyard orbit?
What was the motivation for the invention of electric pianos?
Bit one of the Intel 8080's Flags register
If I want an interpretable model, are there methods other than Linear Regression?
How to control the output voltage of a solid state relay
Are space camera sensors usually round, or square?
Make 1998 using the least possible digits 8
Permutations in Disguise
Is は a particle in こんにちは and こんばんは?
How to give my students a straightedge instead of a ruler
What was the ultimate objective of The Party in 1984?
Why the car dealer is insisting on loan instead of cash
What is a "major country" as named in Bernie Sanders' Healthcare debate answers?
Consonance v. Dissonance
Are there successful ways of getting out of a REVERSE MORTGAGE?
Is low emotional intelligence associated with right-wing and prejudiced attitudes?
Minecraft command block targeting
Selecting previous target in a second command blockCan I teleport entity to the block the player is targeting usnig command blocks?Minecraft Command Block Remote Volume SelectionHow to make a command block output a negative signalHow to test for the entity closest to the player?Command block questions using the execute commandMinecraft block detection for a specific blockMinecraft - execute command testing logic (lightning Sword)command block - "you must be a player to use this command!'Using execute command to teleport a player under a certain height
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
How do I select multiple targets with one command block without using @e[type=!player]?
For instance:
/execute @e[type=creeper] ~ ~ ~ execute @e[type=spider] ~ ~ ~ execute....
Does this make the command block only execute the next execute command if the previous entity is found?
minecraft minecraft-commands
add a comment
|
How do I select multiple targets with one command block without using @e[type=!player]?
For instance:
/execute @e[type=creeper] ~ ~ ~ execute @e[type=spider] ~ ~ ~ execute....
Does this make the command block only execute the next execute command if the previous entity is found?
minecraft minecraft-commands
1
What Minecraft version?
– dly
Oct 18 '18 at 8:47
Minecraft 1.12.2
– B. De Jong
Oct 19 '18 at 14:00
add a comment
|
How do I select multiple targets with one command block without using @e[type=!player]?
For instance:
/execute @e[type=creeper] ~ ~ ~ execute @e[type=spider] ~ ~ ~ execute....
Does this make the command block only execute the next execute command if the previous entity is found?
minecraft minecraft-commands
How do I select multiple targets with one command block without using @e[type=!player]?
For instance:
/execute @e[type=creeper] ~ ~ ~ execute @e[type=spider] ~ ~ ~ execute....
Does this make the command block only execute the next execute command if the previous entity is found?
minecraft minecraft-commands
minecraft minecraft-commands
edited 1 hour ago
pppery
1,5861 gold badge9 silver badges20 bronze badges
1,5861 gold badge9 silver badges20 bronze badges
asked Oct 18 '18 at 8:08
B. De JongB. De Jong
1
1
1
What Minecraft version?
– dly
Oct 18 '18 at 8:47
Minecraft 1.12.2
– B. De Jong
Oct 19 '18 at 14:00
add a comment
|
1
What Minecraft version?
– dly
Oct 18 '18 at 8:47
Minecraft 1.12.2
– B. De Jong
Oct 19 '18 at 14:00
1
1
What Minecraft version?
– dly
Oct 18 '18 at 8:47
What Minecraft version?
– dly
Oct 18 '18 at 8:47
Minecraft 1.12.2
– B. De Jong
Oct 19 '18 at 14:00
Minecraft 1.12.2
– B. De Jong
Oct 19 '18 at 14:00
add a comment
|
1 Answer
1
active
oldest
votes
1.13 answer:
Selector arguments are and
connected, meaning @e[type=creeper,type=spider]
selects everything that is both a creeper and a spider (which is nothing).
Chaining just splits up the execution, so execute as @e[type=creeper] as @e[type=spider]
does something as every creeper as every spider, meaning every creeper does it as many times as there are spiders loaded.
What you want is an or
connection. Minecraft isn't a proper programming language, so you need to repeat your commands for every mob type:
/execute as @e[type=creeper] run <command>
/execute as @e[type=spider] run <command>
Tip: If you have to do this multiple times or your command is very long, tag them:
/tag @e[type=creeper] add spookyScary
/tag @e[type=spider] add spookyScary
/execute as @e[tag=spookyScary] run <command>
/tag @e remove spookyScary
1.12 answer:
Selector arguments are and
connected, meaning @e[type=creeper,type=spider]
would select everything that is both a creeper and a spider (which is nothing). In actuality, the command just fails if you enter two of the same selector argument in 1.12.
Chaining just splits up the execution, so execute @e[type=creeper] ~ ~ ~ execute @e[type=spider] ~ ~ ~
does something as every creeper as every spider, meaning every creeper does it as many times as there are spiders loaded.
What you want is an or
connection. Minecraft isn't a proper programming language, so you need to repeat your commands for every mob type:
/execute @e[type=creeper] ~ ~ ~ <command>
/execute @e[type=spider] ~ ~ ~ <command>
Tip: If you have to do this multiple times or your command is very long, tag them:
/scoreboard players tag @e[type=creeper] add spookyScary
/scoreboard players tag @e[type=spider] add spookyScary
/execute @e[tag=spookyScary] ~ ~ ~ <command>
/scoreboard players tag @e remove spookyScary
Note to self:*
doesn't work in/tag
, don't try to optimise away the@e
. ;)
– Fabian Röling
Oct 18 '18 at 19:39
I didn't forgot to change it. I have a pretty old laptop which can only run minecraft properly with optifine, but there is no optifine for 1.13+ versions.
– B. De Jong
Oct 19 '18 at 14:02
Ah, ok. Yes, 1.13 performance is pretty bad. Even on my pretty good laptop I struggle to get 60fps sometimes. Do you also want a 1.12 answer? It's the same principle.
– Fabian Röling
Oct 19 '18 at 14:03
Yes please. (Don't come with a struggle for 60fps to me, I'm struggling for 60 fps with optifine and all settings on fast or off)
– B. De Jong
Oct 19 '18 at 14:05
Yes please (I don't know if you received my comment, because I can't see it anywhere myself so I'll answer again).... oh. There it is. Never mind.
– B. De Jong
Oct 19 '18 at 14:09
|
show 5 more comments
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/4.0/"u003ecc by-sa 4.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%2f339839%2fminecraft-command-block-targeting%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
1.13 answer:
Selector arguments are and
connected, meaning @e[type=creeper,type=spider]
selects everything that is both a creeper and a spider (which is nothing).
Chaining just splits up the execution, so execute as @e[type=creeper] as @e[type=spider]
does something as every creeper as every spider, meaning every creeper does it as many times as there are spiders loaded.
What you want is an or
connection. Minecraft isn't a proper programming language, so you need to repeat your commands for every mob type:
/execute as @e[type=creeper] run <command>
/execute as @e[type=spider] run <command>
Tip: If you have to do this multiple times or your command is very long, tag them:
/tag @e[type=creeper] add spookyScary
/tag @e[type=spider] add spookyScary
/execute as @e[tag=spookyScary] run <command>
/tag @e remove spookyScary
1.12 answer:
Selector arguments are and
connected, meaning @e[type=creeper,type=spider]
would select everything that is both a creeper and a spider (which is nothing). In actuality, the command just fails if you enter two of the same selector argument in 1.12.
Chaining just splits up the execution, so execute @e[type=creeper] ~ ~ ~ execute @e[type=spider] ~ ~ ~
does something as every creeper as every spider, meaning every creeper does it as many times as there are spiders loaded.
What you want is an or
connection. Minecraft isn't a proper programming language, so you need to repeat your commands for every mob type:
/execute @e[type=creeper] ~ ~ ~ <command>
/execute @e[type=spider] ~ ~ ~ <command>
Tip: If you have to do this multiple times or your command is very long, tag them:
/scoreboard players tag @e[type=creeper] add spookyScary
/scoreboard players tag @e[type=spider] add spookyScary
/execute @e[tag=spookyScary] ~ ~ ~ <command>
/scoreboard players tag @e remove spookyScary
Note to self:*
doesn't work in/tag
, don't try to optimise away the@e
. ;)
– Fabian Röling
Oct 18 '18 at 19:39
I didn't forgot to change it. I have a pretty old laptop which can only run minecraft properly with optifine, but there is no optifine for 1.13+ versions.
– B. De Jong
Oct 19 '18 at 14:02
Ah, ok. Yes, 1.13 performance is pretty bad. Even on my pretty good laptop I struggle to get 60fps sometimes. Do you also want a 1.12 answer? It's the same principle.
– Fabian Röling
Oct 19 '18 at 14:03
Yes please. (Don't come with a struggle for 60fps to me, I'm struggling for 60 fps with optifine and all settings on fast or off)
– B. De Jong
Oct 19 '18 at 14:05
Yes please (I don't know if you received my comment, because I can't see it anywhere myself so I'll answer again).... oh. There it is. Never mind.
– B. De Jong
Oct 19 '18 at 14:09
|
show 5 more comments
1.13 answer:
Selector arguments are and
connected, meaning @e[type=creeper,type=spider]
selects everything that is both a creeper and a spider (which is nothing).
Chaining just splits up the execution, so execute as @e[type=creeper] as @e[type=spider]
does something as every creeper as every spider, meaning every creeper does it as many times as there are spiders loaded.
What you want is an or
connection. Minecraft isn't a proper programming language, so you need to repeat your commands for every mob type:
/execute as @e[type=creeper] run <command>
/execute as @e[type=spider] run <command>
Tip: If you have to do this multiple times or your command is very long, tag them:
/tag @e[type=creeper] add spookyScary
/tag @e[type=spider] add spookyScary
/execute as @e[tag=spookyScary] run <command>
/tag @e remove spookyScary
1.12 answer:
Selector arguments are and
connected, meaning @e[type=creeper,type=spider]
would select everything that is both a creeper and a spider (which is nothing). In actuality, the command just fails if you enter two of the same selector argument in 1.12.
Chaining just splits up the execution, so execute @e[type=creeper] ~ ~ ~ execute @e[type=spider] ~ ~ ~
does something as every creeper as every spider, meaning every creeper does it as many times as there are spiders loaded.
What you want is an or
connection. Minecraft isn't a proper programming language, so you need to repeat your commands for every mob type:
/execute @e[type=creeper] ~ ~ ~ <command>
/execute @e[type=spider] ~ ~ ~ <command>
Tip: If you have to do this multiple times or your command is very long, tag them:
/scoreboard players tag @e[type=creeper] add spookyScary
/scoreboard players tag @e[type=spider] add spookyScary
/execute @e[tag=spookyScary] ~ ~ ~ <command>
/scoreboard players tag @e remove spookyScary
Note to self:*
doesn't work in/tag
, don't try to optimise away the@e
. ;)
– Fabian Röling
Oct 18 '18 at 19:39
I didn't forgot to change it. I have a pretty old laptop which can only run minecraft properly with optifine, but there is no optifine for 1.13+ versions.
– B. De Jong
Oct 19 '18 at 14:02
Ah, ok. Yes, 1.13 performance is pretty bad. Even on my pretty good laptop I struggle to get 60fps sometimes. Do you also want a 1.12 answer? It's the same principle.
– Fabian Röling
Oct 19 '18 at 14:03
Yes please. (Don't come with a struggle for 60fps to me, I'm struggling for 60 fps with optifine and all settings on fast or off)
– B. De Jong
Oct 19 '18 at 14:05
Yes please (I don't know if you received my comment, because I can't see it anywhere myself so I'll answer again).... oh. There it is. Never mind.
– B. De Jong
Oct 19 '18 at 14:09
|
show 5 more comments
1.13 answer:
Selector arguments are and
connected, meaning @e[type=creeper,type=spider]
selects everything that is both a creeper and a spider (which is nothing).
Chaining just splits up the execution, so execute as @e[type=creeper] as @e[type=spider]
does something as every creeper as every spider, meaning every creeper does it as many times as there are spiders loaded.
What you want is an or
connection. Minecraft isn't a proper programming language, so you need to repeat your commands for every mob type:
/execute as @e[type=creeper] run <command>
/execute as @e[type=spider] run <command>
Tip: If you have to do this multiple times or your command is very long, tag them:
/tag @e[type=creeper] add spookyScary
/tag @e[type=spider] add spookyScary
/execute as @e[tag=spookyScary] run <command>
/tag @e remove spookyScary
1.12 answer:
Selector arguments are and
connected, meaning @e[type=creeper,type=spider]
would select everything that is both a creeper and a spider (which is nothing). In actuality, the command just fails if you enter two of the same selector argument in 1.12.
Chaining just splits up the execution, so execute @e[type=creeper] ~ ~ ~ execute @e[type=spider] ~ ~ ~
does something as every creeper as every spider, meaning every creeper does it as many times as there are spiders loaded.
What you want is an or
connection. Minecraft isn't a proper programming language, so you need to repeat your commands for every mob type:
/execute @e[type=creeper] ~ ~ ~ <command>
/execute @e[type=spider] ~ ~ ~ <command>
Tip: If you have to do this multiple times or your command is very long, tag them:
/scoreboard players tag @e[type=creeper] add spookyScary
/scoreboard players tag @e[type=spider] add spookyScary
/execute @e[tag=spookyScary] ~ ~ ~ <command>
/scoreboard players tag @e remove spookyScary
1.13 answer:
Selector arguments are and
connected, meaning @e[type=creeper,type=spider]
selects everything that is both a creeper and a spider (which is nothing).
Chaining just splits up the execution, so execute as @e[type=creeper] as @e[type=spider]
does something as every creeper as every spider, meaning every creeper does it as many times as there are spiders loaded.
What you want is an or
connection. Minecraft isn't a proper programming language, so you need to repeat your commands for every mob type:
/execute as @e[type=creeper] run <command>
/execute as @e[type=spider] run <command>
Tip: If you have to do this multiple times or your command is very long, tag them:
/tag @e[type=creeper] add spookyScary
/tag @e[type=spider] add spookyScary
/execute as @e[tag=spookyScary] run <command>
/tag @e remove spookyScary
1.12 answer:
Selector arguments are and
connected, meaning @e[type=creeper,type=spider]
would select everything that is both a creeper and a spider (which is nothing). In actuality, the command just fails if you enter two of the same selector argument in 1.12.
Chaining just splits up the execution, so execute @e[type=creeper] ~ ~ ~ execute @e[type=spider] ~ ~ ~
does something as every creeper as every spider, meaning every creeper does it as many times as there are spiders loaded.
What you want is an or
connection. Minecraft isn't a proper programming language, so you need to repeat your commands for every mob type:
/execute @e[type=creeper] ~ ~ ~ <command>
/execute @e[type=spider] ~ ~ ~ <command>
Tip: If you have to do this multiple times or your command is very long, tag them:
/scoreboard players tag @e[type=creeper] add spookyScary
/scoreboard players tag @e[type=spider] add spookyScary
/execute @e[tag=spookyScary] ~ ~ ~ <command>
/scoreboard players tag @e remove spookyScary
edited Oct 19 '18 at 14:12
answered Oct 18 '18 at 9:21
Fabian RölingFabian Röling
12.1k3 gold badges20 silver badges51 bronze badges
12.1k3 gold badges20 silver badges51 bronze badges
Note to self:*
doesn't work in/tag
, don't try to optimise away the@e
. ;)
– Fabian Röling
Oct 18 '18 at 19:39
I didn't forgot to change it. I have a pretty old laptop which can only run minecraft properly with optifine, but there is no optifine for 1.13+ versions.
– B. De Jong
Oct 19 '18 at 14:02
Ah, ok. Yes, 1.13 performance is pretty bad. Even on my pretty good laptop I struggle to get 60fps sometimes. Do you also want a 1.12 answer? It's the same principle.
– Fabian Röling
Oct 19 '18 at 14:03
Yes please. (Don't come with a struggle for 60fps to me, I'm struggling for 60 fps with optifine and all settings on fast or off)
– B. De Jong
Oct 19 '18 at 14:05
Yes please (I don't know if you received my comment, because I can't see it anywhere myself so I'll answer again).... oh. There it is. Never mind.
– B. De Jong
Oct 19 '18 at 14:09
|
show 5 more comments
Note to self:*
doesn't work in/tag
, don't try to optimise away the@e
. ;)
– Fabian Röling
Oct 18 '18 at 19:39
I didn't forgot to change it. I have a pretty old laptop which can only run minecraft properly with optifine, but there is no optifine for 1.13+ versions.
– B. De Jong
Oct 19 '18 at 14:02
Ah, ok. Yes, 1.13 performance is pretty bad. Even on my pretty good laptop I struggle to get 60fps sometimes. Do you also want a 1.12 answer? It's the same principle.
– Fabian Röling
Oct 19 '18 at 14:03
Yes please. (Don't come with a struggle for 60fps to me, I'm struggling for 60 fps with optifine and all settings on fast or off)
– B. De Jong
Oct 19 '18 at 14:05
Yes please (I don't know if you received my comment, because I can't see it anywhere myself so I'll answer again).... oh. There it is. Never mind.
– B. De Jong
Oct 19 '18 at 14:09
Note to self:
*
doesn't work in /tag
, don't try to optimise away the @e
. ;)– Fabian Röling
Oct 18 '18 at 19:39
Note to self:
*
doesn't work in /tag
, don't try to optimise away the @e
. ;)– Fabian Röling
Oct 18 '18 at 19:39
I didn't forgot to change it. I have a pretty old laptop which can only run minecraft properly with optifine, but there is no optifine for 1.13+ versions.
– B. De Jong
Oct 19 '18 at 14:02
I didn't forgot to change it. I have a pretty old laptop which can only run minecraft properly with optifine, but there is no optifine for 1.13+ versions.
– B. De Jong
Oct 19 '18 at 14:02
Ah, ok. Yes, 1.13 performance is pretty bad. Even on my pretty good laptop I struggle to get 60fps sometimes. Do you also want a 1.12 answer? It's the same principle.
– Fabian Röling
Oct 19 '18 at 14:03
Ah, ok. Yes, 1.13 performance is pretty bad. Even on my pretty good laptop I struggle to get 60fps sometimes. Do you also want a 1.12 answer? It's the same principle.
– Fabian Röling
Oct 19 '18 at 14:03
Yes please. (Don't come with a struggle for 60fps to me, I'm struggling for 60 fps with optifine and all settings on fast or off)
– B. De Jong
Oct 19 '18 at 14:05
Yes please. (Don't come with a struggle for 60fps to me, I'm struggling for 60 fps with optifine and all settings on fast or off)
– B. De Jong
Oct 19 '18 at 14:05
Yes please (I don't know if you received my comment, because I can't see it anywhere myself so I'll answer again).... oh. There it is. Never mind.
– B. De Jong
Oct 19 '18 at 14:09
Yes please (I don't know if you received my comment, because I can't see it anywhere myself so I'll answer again).... oh. There it is. Never mind.
– B. De Jong
Oct 19 '18 at 14:09
|
show 5 more comments
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.
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%2f339839%2fminecraft-command-block-targeting%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
1
What Minecraft version?
– dly
Oct 18 '18 at 8:47
Minecraft 1.12.2
– B. De Jong
Oct 19 '18 at 14:00