Advertisement
Itsyuumello

Untitled

Sep 13th, 2019
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.24 KB | None | 0 0
  1. command /teamdivide:
  2. trigger:
  3. loop all players:
  4. set {_random} to random integer between 1 and 2
  5. if {_random} is 1:
  6. add loop-player to {red::*}
  7. send "&aあなたは &c赤チーム &aです" to loop-player
  8. set loop-player's tablist name to "&c%loop-player%"
  9. set loop-player's display name to "&c%loop-player%"
  10. set {team::%loop-player%} to "red"
  11. if {_random} is 2:
  12. add loop-player to {blue::*}
  13. send "&aあなたは &9青チーム &aです" to loop-player
  14. set loop-player's tablist name to "&9%loop-player%"
  15. set loop-player's display name to "&9%loop-player%"
  16. set {team::%loop-player%} to "blue"
  17. command /teamexit:
  18. trigger:
  19. clear {red::*}
  20. clear {blue::*}
  21. clear {team::*}
  22. send "&aすべてのチームが解散されました!" to loop-player
  23. loop all players:
  24. set loop-player's tablist name to "%loop-player%"
  25. command /teamteleport [<text>]:
  26. trigger:
  27. if arg-1 is not set:
  28. send "&c/teamteleport [redset|blueset|redtp|bluetp]"
  29. else if arg-1 is "bluetp":
  30. loop all players:
  31. if {team::%loop-player%} is "blue":
  32. teleport loop-player to {blue.tp}
  33. else if arg-1 is "redset":
  34. set {red.tp} to location of player
  35. send "&bset:redtp:%location of player%"
  36. else if arg-1 is "blueset":
  37. set {blue.tp} to location of player
  38. send "&bset:redtp:%location of player%"
  39. else if arg-1 is "redtp":
  40. loop all players:
  41. if {team::%loop-player%} is "red":
  42. teleport loop-player to {red.tp}
  43. else:
  44. send "&c/teamteleport [redset|blueset|redtp|bluetp]"
  45. on damage of player:
  46. if {red::*} contains attacker:
  47. if {red::*} contains victim:
  48. cancel event
  49. if {blue::*} contains attacker:
  50. if {blue::*} contains victim:
  51. cancel eventon break:
  52. if event-block is in the region "block":
  53. set {blocks::%location of event-block%} to type of event-block
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement