1

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?

1 Answer 1

3

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)

4
  • It says, “No targets matched selector”. I’m on bedrock edition by the way. Nov 14, 2019 at 20:04
  • hmm.. actually, I did more research and found out that dx, dy and dz are not opposite corner coords, rather the distance to the opposite corner coordinates. Sorry for the mistake!
    – HalpMe
    Nov 23, 2019 at 8:51
  • HalpMe I'm pretty sure you can't do tags like that in bedrock Nov 26, 2019 at 1:40
  • Selectors like dx, dy, dz, x, y, and z are in bedrock edition. I made a sketch for you if you need more explanation on the selectors I mentioned earlier. i.stack.imgur.com/w8ln4.jpg
    – HalpMe
    Nov 26, 2019 at 7:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .