Advertisement
dragnoz

how to create a PVP safe zone

Mar 12th, 2016
787
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. setup team (do once only in command line)
  2.  
  3. /scoreboard teams add PVPoff
  4.  
  5. Set Friendly Fire off (do once only in command line)
  6.  
  7. /scoreboard teams option PVPoff friendlyfire false
  8.  
  9.  
  10. Add players in area to team (need to be on a clock and constantly running)
  11.  
  12. /scoreboard teams join PVPoff @a[team=!PVPoff,x,y,z,r]
  13. x,y,z,r is your co-ords
  14.  
  15. remove from team when leave area
  16. /scoreboard teams leave PVPoff @a[team=PVPoff,x,y,z,r,rm]
  17.  
  18. the above the R needs to be bigger than the previous R that added them, the RM needs to be the same as the R used to add them to team
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement