Jt1010

雪合戦3

May 9th, 2020
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 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-value
  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. if {team} is not set:
  33. set {team} to true
  34. set {_red} to loop-value
  35. remove {_red} from {join::*}
  36. add {_red} to {red::*}
  37. send title "&cあなたは赤チームです" to loop-value
  38. else:
  39. delete {team}
  40. set {_blue} to loop-value
  41. remove {_blue} from {join::*}
  42. add {_blue} to {blue::*}
  43. send title "&9あなたは青チームです" to loop-value
  44. loop {blue::*}:
  45. execute console command "/tp %loop-value-1% 1222 5 -1487"
  46. loop {red::*}:
  47. execute console command "/tp %loop-value-1% 1151 5 -1417"
  48. broadcast "&3&lSTART"
  49. execute console command "/give %loop-value% iron_shovel"
Add Comment
Please, Sign In to add comment