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.










share|improve this question
















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















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.










share|improve this question
















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













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.










share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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


















  • 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










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.






share|improve this answer

















  • 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











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%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.






share|improve this answer

















  • 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















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.






share|improve this answer

















  • 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













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.






share|improve this answer












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.







share|improve this answer












share|improve this answer



share|improve this answer










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














  • 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


















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%2f329872%2fhow-do-i-detect-two-different-teams-in-the-same-area%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

Михайлов, Христо

Гороховецкий артиллерийский полигон

Центральная группа войск