Excluding people from an effect

Excluding people from an effect - Crop person holding colorful smoke bomb

I own a Minecraft factions realm in pocket edition and want to make it so players cant grief people’s bases. I have already set up a repeat command block that goes like:

effect @a[r=20] mining_fatigue 1 225 

But players also want it so that they can destroy blocks in their base as well. How do I exclude people from this mining fatigue effect?



Best Answer

First, add a tag to the teams' players:

tag player add tag

Then, target other players within the enemies' base:

effect @a[tag=!tag,dx=10,dy=10,dz=10,x=0,y=0,z=0] minecraft:mining_fatigue 1 225 Should theoretically work

(the values 10 and 0 in the dx, dy, dz, x, y and z values are example coords of the enemies' base corner coordinates)




Pictures about "Excluding people from an effect"

Excluding people from an effect - Glowing plasma ball with red light in dark room
Excluding people from an effect - Person in slippers in ultraviolet illumination
Excluding people from an effect - From above of crop anonymous person playing video game on modern cellphone with image of car on screen



What is it called when you exclude someone?

Social exclusion or social marginalisation is the social disadvantage and relegation to the fringe of society. It is a term that has been used widely in Europe and was first used in France in the late 20th century. It is used across disciplines including education, sociology, psychology, politics and economics.

What are the effects of being excluded?

Being on the receiving end of a social snub causes a cascade of emotional and cognitive consequences, researchers have found. Social rejection increases anger, anxiety, depression, jealousy and sadness.

Why do people feel the need to exclude people?

Some of the reasons are power, social status, and prejudices. Those who exclude may do so to exert their power over another. This is sometimes exhibited in work situations. A manager may create a clique of favored workers to gain confidences and information over other employees.

What is an example of social exclusion?

Examples of social exclusion from everyday life Or when bar and restaurant owners refuse to serve people from the LGBTQI community. Social exclusion is an everyday occurrence in education as well. Certain schools may exclude people from certain ethnic or religious groups. Or refuse to educate someone with a disability.



The Psychological Effects of Feeling Excluded




Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Milada Vigerova, Nothing Ahead, Inga Seliverstova, SCREEN POST