I'm starting a new server with few friends and we're stuck with making "safe zones" and "only X team zones".
We have a survival map where there are 4 teams (Red, Purple, Yellow and Green), but with some "safe areas" that cannot be destroyed and also are not PvP allowed. I used those commands:
gamemode adventure @a[r=40,m=0]
gamemode survival @a[rm=41,r=42,m=2]
This actually works, but people can still PvP in this area (40x40 blocks), which we don't want them to...
Also, we want that only one team can enter certain areas, and the other get teleported to the spawn (x=-237, y=71, z=222)
.
The last thing we want is to make a "PvP reward" system. Each time someone kill a player from another team, he will receive 2 emeralds. Obviously, we don't want that people on the same team can hit each other, so we will need a command for that.
I hope you guys can help us, we are really new in commands-block, making all our tries not working.
Thanks for all your help.
friendlyFire
option in scoreboards?