Advertisement
L0v0lup

[Tutorial] Teamchest / Team-Enderchest #68 SKRIPT

Jun 2nd, 2018
1,134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. command /joinred:
  2. trigger:
  3. add player to {Team.red::*}
  4.  
  5. command /joinblue:
  6. trigger:
  7. add player to {Team.blue::*}
  8.  
  9. command /gamestart:
  10. trigger:
  11. teleport player to {warps::Dorf}
  12. set {Chest.red} to first element out of {Team.red::*}
  13. set {Chest.blue} to first element out of {Team.blue::*}
  14.  
  15. on rightclick on chest:
  16. cancel event
  17. if {Team.red::*} contains player:
  18. open ender chest of {Chest.red} to player
  19. stop
  20. if {Team.blue::*} contains player:
  21. open ender chest of {Chest.blue} to player
  22. stop
  23.  
  24. command /leave:
  25. trigger:
  26. clear {Chest.red}
  27. clear {Chest.blue}
  28. clear {Team.red::*}
  29. clear {Team.blue::*}
  30.  
  31. #youtube.com/L0v0lup
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement