How do I detect two different teams in the same area?
up vote
0
down vote
favorite
Trying to recreate Zedaf's Proximity map in 1.13, but ran in the problem of making opposing team members visible on the same island. First, I thought to make an execute unless
command
/execute unless @a[team=blue,team=red,x=-200,y=30,z=-600,distance=..10] run effect give @a[team=blue]
together with
/execute unless @a[team=blue,team=red,x=-200,y=30,z=-600,distance=..10] run effect give @a[team=red]
but that would be detecting someone on both teams. The main question is how do I make it where if two separate teams are in the same are in the same area then no more invisibility for the people in that area alone, but if only one team is present then they remain invisible.
I can only find answers with the testfor
function which does not exist in 1.13.
minecraft minecraft-commands
bumped to the homepage by Community♦ 5 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 |
up vote
0
down vote
favorite
Trying to recreate Zedaf's Proximity map in 1.13, but ran in the problem of making opposing team members visible on the same island. First, I thought to make an execute unless
command
/execute unless @a[team=blue,team=red,x=-200,y=30,z=-600,distance=..10] run effect give @a[team=blue]
together with
/execute unless @a[team=blue,team=red,x=-200,y=30,z=-600,distance=..10] run effect give @a[team=red]
but that would be detecting someone on both teams. The main question is how do I make it where if two separate teams are in the same are in the same area then no more invisibility for the people in that area alone, but if only one team is present then they remain invisible.
I can only find answers with the testfor
function which does not exist in 1.13.
minecraft minecraft-commands
bumped to the homepage by Community♦ 5 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Give everyone invisibility, execute at everyone from team A->clear invisibility for everyone in team B in a radius.
– Fabian Röling
Mar 26 at 6:16
Won't that clear invisibility if there are members of team A close to other members of team A? And it would only clear it form team B?
– CautiousNinja
Mar 26 at 13:12
No. I'll write an answer.
– Fabian Röling
Mar 26 at 17:03
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Trying to recreate Zedaf's Proximity map in 1.13, but ran in the problem of making opposing team members visible on the same island. First, I thought to make an execute unless
command
/execute unless @a[team=blue,team=red,x=-200,y=30,z=-600,distance=..10] run effect give @a[team=blue]
together with
/execute unless @a[team=blue,team=red,x=-200,y=30,z=-600,distance=..10] run effect give @a[team=red]
but that would be detecting someone on both teams. The main question is how do I make it where if two separate teams are in the same are in the same area then no more invisibility for the people in that area alone, but if only one team is present then they remain invisible.
I can only find answers with the testfor
function which does not exist in 1.13.
minecraft minecraft-commands
Trying to recreate Zedaf's Proximity map in 1.13, but ran in the problem of making opposing team members visible on the same island. First, I thought to make an execute unless
command
/execute unless @a[team=blue,team=red,x=-200,y=30,z=-600,distance=..10] run effect give @a[team=blue]
together with
/execute unless @a[team=blue,team=red,x=-200,y=30,z=-600,distance=..10] run effect give @a[team=red]
but that would be detecting someone on both teams. The main question is how do I make it where if two separate teams are in the same are in the same area then no more invisibility for the people in that area alone, but if only one team is present then they remain invisible.
I can only find answers with the testfor
function which does not exist in 1.13.
minecraft minecraft-commands
minecraft minecraft-commands
edited Jul 23 at 0:11
cherryblossom
824425
824425
asked Mar 26 at 0:37
CautiousNinja
1
1
bumped to the homepage by Community♦ 5 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♦ 5 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Give everyone invisibility, execute at everyone from team A->clear invisibility for everyone in team B in a radius.
– Fabian Röling
Mar 26 at 6:16
Won't that clear invisibility if there are members of team A close to other members of team A? And it would only clear it form team B?
– CautiousNinja
Mar 26 at 13:12
No. I'll write an answer.
– Fabian Röling
Mar 26 at 17:03
add a comment |
Give everyone invisibility, execute at everyone from team A->clear invisibility for everyone in team B in a radius.
– Fabian Röling
Mar 26 at 6:16
Won't that clear invisibility if there are members of team A close to other members of team A? And it would only clear it form team B?
– CautiousNinja
Mar 26 at 13:12
No. I'll write an answer.
– Fabian Röling
Mar 26 at 17:03
Give everyone invisibility, execute at everyone from team A->clear invisibility for everyone in team B in a radius.
– Fabian Röling
Mar 26 at 6:16
Give everyone invisibility, execute at everyone from team A->clear invisibility for everyone in team B in a radius.
– Fabian Röling
Mar 26 at 6:16
Won't that clear invisibility if there are members of team A close to other members of team A? And it would only clear it form team B?
– CautiousNinja
Mar 26 at 13:12
Won't that clear invisibility if there are members of team A close to other members of team A? And it would only clear it form team B?
– CautiousNinja
Mar 26 at 13:12
No. I'll write an answer.
– Fabian Röling
Mar 26 at 17:03
No. I'll write an answer.
– Fabian Röling
Mar 26 at 17:03
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
You need a command like this:
/execute at @e[team=blue] run effect clear @e[team=red,distance=..10] invisibility
The execute
part moves the command execution point to every member of team blue. The effect clear
part after it is then limited to only members of team red in a radius around these blue players. So only blue players who are close to red players become visible.
1
Hey, I'm getting better with the 1.13 commands! I didn't have to look up anything to write this answer.
– Fabian Röling
Mar 26 at 17:36
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%2f329872%2fhow-do-i-detect-two-different-teams-in-the-same-area%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
up vote
0
down vote
You need a command like this:
/execute at @e[team=blue] run effect clear @e[team=red,distance=..10] invisibility
The execute
part moves the command execution point to every member of team blue. The effect clear
part after it is then limited to only members of team red in a radius around these blue players. So only blue players who are close to red players become visible.
1
Hey, I'm getting better with the 1.13 commands! I didn't have to look up anything to write this answer.
– Fabian Röling
Mar 26 at 17:36
add a comment |
up vote
0
down vote
You need a command like this:
/execute at @e[team=blue] run effect clear @e[team=red,distance=..10] invisibility
The execute
part moves the command execution point to every member of team blue. The effect clear
part after it is then limited to only members of team red in a radius around these blue players. So only blue players who are close to red players become visible.
1
Hey, I'm getting better with the 1.13 commands! I didn't have to look up anything to write this answer.
– Fabian Röling
Mar 26 at 17:36
add a comment |
up vote
0
down vote
up vote
0
down vote
You need a command like this:
/execute at @e[team=blue] run effect clear @e[team=red,distance=..10] invisibility
The execute
part moves the command execution point to every member of team blue. The effect clear
part after it is then limited to only members of team red in a radius around these blue players. So only blue players who are close to red players become visible.
You need a command like this:
/execute at @e[team=blue] run effect clear @e[team=red,distance=..10] invisibility
The execute
part moves the command execution point to every member of team blue. The effect clear
part after it is then limited to only members of team red in a radius around these blue players. So only blue players who are close to red players become visible.
answered Mar 26 at 17:36
Fabian Röling
5,18331236
5,18331236
1
Hey, I'm getting better with the 1.13 commands! I didn't have to look up anything to write this answer.
– Fabian Röling
Mar 26 at 17:36
add a comment |
1
Hey, I'm getting better with the 1.13 commands! I didn't have to look up anything to write this answer.
– Fabian Röling
Mar 26 at 17:36
1
1
Hey, I'm getting better with the 1.13 commands! I didn't have to look up anything to write this answer.
– Fabian Röling
Mar 26 at 17:36
Hey, I'm getting better with the 1.13 commands! I didn't have to look up anything to write this answer.
– Fabian Röling
Mar 26 at 17:36
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%2f329872%2fhow-do-i-detect-two-different-teams-in-the-same-area%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
Give everyone invisibility, execute at everyone from team A->clear invisibility for everyone in team B in a radius.
– Fabian Röling
Mar 26 at 6:16
Won't that clear invisibility if there are members of team A close to other members of team A? And it would only clear it form team B?
– CautiousNinja
Mar 26 at 13:12
No. I'll write an answer.
– Fabian Röling
Mar 26 at 17:03