taiyaki23

Untitled

Jun 27th, 2020
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. command /yuki <text> <text>:
  2. permission: sk.op
  3. trigger:
  4. if arg-1 is team:
  5. set {_yukipl} to 0
  6. set {_lnum} to 0
  7. delete {teamred::*}
  8. delete {teamblue::*}
  9. delete {teamwhite::*}
  10. execute console command "/scoreboard teams empty red"
  11. execute console command "/scoreboard teams empty blue"
  12. execute console command "/scoreboard teams join red Red"
  13. execute console command "/scoreboard teams join blue Blue"
  14. loop all players:
  15. if {yukisannka.%loop-player%} is 1:
  16. add loop-player to {teamwhite::*}
  17. add 1 to {_yukipl}
  18. loop {_yukipl} times:
  19. add 1 to {_yukipl2}
  20. set {_random} to a random player out of {teamwhite::*}
  21. remove {_random} from {teamwhite::*}
  22. if {_yukipl2} is 1:
  23. add {_random} to {teamred::*}
  24. set {team.%{_random}%} to red
  25. execute console command "/scoreboard teams join red %{_random}%"
  26. else if {_yukipl2} is 2:
  27. add {_random} to {teamblue::*}
  28. set {team.%{_random}%} to blue
  29. execute console command "/scoreboard teams join blue %{_random}%"
  30. remove 2 from {_yukipl2}
  31. message "<red>%{teamred::*}%<white>,<blue>%{teamblue::*}%" to player
  32.  
  33.  
  34.  
  35. command join:
  36. trigger:
  37. message "&aゲーム参加しました" to player
  38. set {yukisannka.%player%} to 1
Advertisement
Add Comment
Please, Sign In to add comment