Advertisement
Itsyuumello

Untitled

Sep 14th, 2019
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.49 KB | None | 0 0
  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%&e が死んだ 残り &c%{redcount}% &e人!"
  65. else if {blue::*} contains attacker:
  66. set {bluecount} to {bluecount} - 1
  67. broadcast "&9%player% &eが死んだ 残り &c%{bluecount}% &e人!"
  68. if {redcount} is 0:
  69. broadcast "&9Blue Team &awon the game!"
  70. command "/setblock -580 4 686 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 "&cRed Team &awon the game!"
  77. command "/setblock -1558 4 -2257 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 "&e&lTHE &e&lWALLS"
  86. set score "&e" in sidebar of loop-player to 10
  87. set score "&fオンラインプレイヤー" in sidebar of loop-player to 9
  88. set score "&a%number of all players%" in sidebar of loop-player to 8
  89. set score "&e" in sidebar of loop-player to 7
  90. set score "&f勝利数:" in sidebar of loop-player to 6
  91. set score "&a&a%{%loop-player%.win}%" in sidebar of loop-player to 5
  92. set score "&e" in sidebar of loop-player to 4
  93. set score "&fサーバー名:" in sidebar of loop-player to 3
  94. set score "&aTHE WALLS" in sidebar of loop-player to 2
  95. set score "&e" in sidebar of loop-player to 1
  96. set score "&eplayerrealms.com" in sidebar of loop-player to 0
  97. options:
  98. kaboom: &c&l[KABOOM]&e
  99. lenh1: kaboom
  100. lenh2: launch
  101. permission1: kaboom.tatca
  102. permission2: kaboom.motnguoi
  103. tocdo: 5
  104. thoigian: 7
  105. doithoai1: &aKABOOM実行 %loop-player%&a!
  106. doithoai2: &alaunch実行 %arg-1%&a!
  107.  
  108.  
  109.  
  110. command /{@lenh1}:
  111. permission: {@permission1}
  112. trigger:
  113. send "{@kaboom} &7"
  114. loop all players in world:
  115. send "{@kaboom} {@doithoai1}"
  116. strike lightning effect at loop-player
  117. strike lightning effect at loop-player
  118. strike lightning effect at loop-player
  119. push loop-player up at speed {@tocdo}
  120. set {nodamage.launch.%loop-player%} to {@thoigian}
  121.  
  122. command /{@lenh2} <player>:
  123. permission: {@permission2}
  124. trigger:
  125. send "{@kaboom} "
  126. send "{@kaboom} {@doithoai2}"
  127. strike lightning effect at arg-1
  128. strike lightning effect at arg-1
  129. strike lightning effect at arg-1
  130. push arg-1 up at speed {@tocdo}
  131. set {nodamage.launch.%arg-1%} to {@thoigian}
  132.  
  133. every second:
  134. loop all players:
  135. {nodamage.launch.%loop-player%} is set
  136. set {nodamage.launch.%loop-player%} to {nodamage.launch.%loop-player%} - 1
  137. if {nodamage.launch.%loop-player%} is less than 1:
  138. delete {nodamage.launch.%loop-player%}
  139.  
  140. on quit:
  141. {nodamage.launch.%player%} is set
  142. delete {nodamage.launch.%player%}
  143. on damage:
  144. {nodamage.launch.%victim%} is set
  145. cancel event
  146.  
  147. command /mapreset:
  148. permission: skript.admin
  149. trigger:
  150. loop {place::*}:
  151. set block at loop-value to air
  152. loop {blocks::*}:
  153. set {_loc::*} to substring of loop-index from 7 to length of loop-index split at ","
  154. set {_x} to {_loc::1} parsed as number
  155. set {_y} to {_loc::2} parsed as number
  156. set {_z} to {_loc::3} parsed as number
  157. set block at location ({_x}, {_y}, {_z}) to loop-value
  158. delete {blocks::*}
  159. delete {place::*}
  160.  
  161. on place:
  162. set {place::%location of event-block%} to location of event-block
  163.  
  164. on break:
  165. if {place::*} contain location of event-block:
  166. stop
  167. set {blocks::%location of event-block%} to type of event-block
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement