Advertisement
iku55

Untitled

Sep 14th, 2019
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. command /teamdivide:
  2. trigger:
  3. set {redcount} to 0
  4. set {bluecount} to 0
  5. loop all players:
  6. set {_random} to random integer between 1 and 2
  7. if {_random} is 1:
  8. add loop-player to {red::*}
  9. send "&aあなたは &c赤チーム &aです" to loop-player
  10. set loop-player's tablist name to "&c%loop-player%"
  11. set loop-player's display name to "&c%loop-player%"
  12. set {team::%loop-player%} to "red"
  13. set {redcount} to {redcount} + 1
  14. if {_random} is 2:
  15. add loop-player to {blue::*}
  16. send "&aあなたは &9青チーム &aです" to loop-player
  17. set loop-player's tablist name to "&9%loop-player%"
  18. set loop-player's display name to "&9%loop-player%"
  19. set {team::%loop-player%} to "blue"
  20. set {bluecount} to {bluecount} + 1
  21. command /teamexit:
  22. trigger:
  23. clear {red::*}
  24. clear {blue::*}
  25. clear {team::*}
  26. clear {redcount}
  27. clear {bluecount}
  28. send "&aすべてのチームが解散されました!" to all players
  29. loop all players:
  30. set loop-player's tablist name to "%loop-player%"
  31. command /teamteleport [<text>]:
  32. trigger:
  33. if arg-1 is not set:
  34. send "&c/teamteleport [redset|blueset|redtp|bluetp]"
  35. else if arg-1 is "bluetp":
  36. loop all players:
  37. if {team::%loop-player%} is "blue":
  38. teleport loop-player to {blue.tp}
  39. else if arg-1 is "redset":
  40. set {red.tp} to location of player
  41. send "&bset:redtp:%location of player%"
  42. else if arg-1 is "blueset":
  43. set {blue.tp} to location of player
  44. send "&bset:redtp:%location of player%"
  45. else if arg-1 is "redtp":
  46. loop all players:
  47. if {team::%loop-player%} is "red":
  48. teleport loop-player to {red.tp}
  49. else:
  50. send "&c/teamteleport [redset|blueset|redtp|bluetp]"
  51. on damage of player:
  52. if {red::*} contains attacker:
  53. if {red::*} contains victim:
  54. cancel event
  55. if {blue::*} contains attacker:
  56. if {blue::*} contains victim:
  57. cancel event
  58. on break:
  59. if event-block is in the region "block":
  60. set {blocks::%location of event-block%} to type of event-block
  61. on death of player:
  62. if {red::*} contains player:
  63. set {redcount} to {redcount} - 1
  64. broadcast "&c%player%が死んだ 残り%{redcount}%"
  65. else if {blue::*} contains attacker:
  66. set {bluecount} to {bluecount} - 1
  67. broadcast "&b%player%が死んだ 残り%{bluecount}%"
  68. if {redcount} is 0:
  69. broadcast "&a勝者&b青チーム"
  70. command "/setblock -1558 4 -2257 minecraft:redstone_block"
  71. loop all players:
  72. if {blue::*} contains loop-player:
  73. set {%loop-player%.win} to {%loop-player%.win} + 1
  74. command "/teamquit"
  75. else if {redcount} is 0:
  76. broadcast "&a勝者&c赤チーム"
  77. command "/setblock -1558 4 -2257 minecraft:redstone_block"
  78. loop all players:
  79. if {red::*} contains loop-player:
  80. set {%loop-player%.win} to {%loop-player%.win} + 1
  81. command "/teamquit"
  82. every second:
  83. loop all players:
  84. wipe loop-player's sidebar
  85. set name of sidebar of loop-player to "&7>>> &e&lThe &e&lWalls &7<<<"
  86. set score "&e" in sidebar of loop-player to 11
  87. set score "&7オンラインプレイヤー" in sidebar of loop-player to 10
  88. set score "&a%number of all players%" in sidebar of loop-player to 9
  89. set score "&e" in sidebar of loop-player to 8
  90. set score "&7IP" in sidebar of loop-player to 7
  91. set score "&aplayerrealms.com" in sidebar of loop-player to 6
  92. set score "&e" in sidebar of loop-player to 5
  93. set score "&7サーバー名" in sidebar of loop-player to 4
  94. set score "&aTheWalls-スクリプトできる人募集" in sidebar of loop-player to 3
  95. set score "&e" in sidebar of loop-player to 2
  96. set score "&7合計勝利数" in sidebar of loop-player to 1
  97. set score "&a%{%loop-player%.win}%" in sidebar of loop-player to 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement