UDON_JP

Untitled

May 10th, 2020
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. on death of player:
  2. execute console command "/clear %victim%"
  3. set victim's gamemode to spectator
  4. if {blue::*} contains player:
  5. remove player from {blue::*}
  6. if {red::*} contains player:
  7. remove player from {red::*}
  8. if {red::*} is not set:
  9. delete {blue::*}
  10. broadcast "&1&lBLUETEAM.win!!"
  11. execute console command "/tp 1122 5 -1322 @a"
  12. if {blue::*} is not set:
  13. delete {red::*}
  14. broadcast "&4&lREDTEAM.WIN!!"
  15. execute console command "/tp 1122 5 -1322 @a"
  16.  
  17. command /reset:
  18. permission: admin
  19. trigger:
  20. delete {blue::*}
  21. delete {red::*}
  22. delete {team}
  23. loop all players:
  24. send title "ゲームを強制終了しています..." to loop-player
  25. command "/tp 1122 5 -1322 %loop-player%"
  26.  
  27. command /start:
  28. permission:admin
  29. trigger:
  30. broadcast "&2&lチーム分け中..."
  31. loop all players:
  32. add loop-player to {join::*}
  33. loop {join::*}:
  34. if {team} is not set:
  35. set {team} to true
  36. set {_red} to loop-player
  37. remove {_red} from {join::*}
  38. add {_red} to {red::*}
  39. send title "&cあなたは赤チームです" to loop-player
  40. else:
  41. delete {team}
  42. set {_blue} to loop-player
  43. remove {_blue} from {join::*}
  44. add {_blue} to {blue::*}
  45. send title "&9あなたは青チームです" to loop-player
  46. execute console command "/give @a iron_shavel"
  47. loop {blue::*}:
  48. execute console command "/tp %loop-value% 1222 5 -1487"
  49. loop {red::*}:
  50. execute console command "/tp %loop-value% 1151 5 -1417"
  51. broadcast "&3&lSTART"
Advertisement
Add Comment
Please, Sign In to add comment