siso_

Untitled

Feb 24th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.33 KB | None | 0 0
  1. command /random:
  2. trigger:
  3. set {_pnum} to 0
  4. set {_lnum} to 0
  5. delete {red::*}
  6. delete {blue::*}
  7. delete {teamwhite::*}
  8. loop all players:
  9. add loop-player to {teamwhite::*}
  10. add 1 to {_pnum}
  11. loop {_pnum} times:
  12. add 1 to {_lnum}
  13. set {_random} to a random player out of {teamwhite::*}
  14. remove {_random} from {teamwhite::*}
  15. if {_lnum} is 1:
  16. add {_random} to {red::*}
  17. set {red.%{_random}%} to true
  18. else if {_lnum} is 2:
  19. add {_random} to {blue::*}
  20. set {blue.%{_random}%} to true
  21. remove 2 from {_lnum}
  22. message "&6あなたは&c赤チーム&6です!" to {red::*}
  23. message "&6あなたは&9青チーム&6です!" to {blue::*}
  24. command /teamspawn [<text>] [<text>]:
  25. permission: skript.admin
  26. trigger:
  27. if arg 1 is set:
  28. if arg 1 is "red":
  29. if arg 2 is set:
  30. set {redspawn} to location of player
  31. message "&cRedTeam respawn point %location%"
  32. if arg 1 is "blue":
  33. if arg 2 is set:
  34. set {bluespawn} to location of player
  35. message "&9blueTeam respawn point %location%"
  36. if arg 1 is set:
  37. if arg 2 is not set:
  38. set {lobby} to location of player
  39. message "&6ロビーの位置を%location%にしました"
  40. command /players:
  41. permission: skript.admin
  42. trigger:
  43. broadcast "&c赤は%{red::*}%です"
  44. broadcast "&9青は%{blue::*}%です"
  45. send "Red HP &c%{hp.red}%"
  46. send "Blue HP &9%{hp.blue}%"
  47. command /stopgame:
  48. permission: skript.admin
  49. trigger:
  50. disable PvP in all worlds
  51. heal all players
  52. command "/clear @a"
  53. command "/effect @a clear"
  54. delete {red::*}
  55. delete {blue::*}
  56. set {hp.red} to 5
  57. set {hp.blue} to 5
  58. set {game} to false
  59. loop all players:
  60. set {god.%loop-player%} to false
  61. set {nowkills.%loop-player%} to 0
  62. teleport all players to {lobby}
  63. if {re} is true:
  64. broadcast "&630秒後に開始します"
  65. wait 30 seconds
  66. execute console command "/start"
  67. on rightclick holding stick:
  68. if event-block is end stone:
  69. set {nexus.blue} to location of targeted block
  70. message "&9青&6のネクサスを設定しました"
  71. else:
  72. message "&6エンドストーン以外は指定できません"
  73. stop
  74. on leftclick holding stick:
  75. if event-block is end stone:
  76. cancel event
  77. set {nexus.red} to location of targeted block
  78. message "&c赤&6のネクサスを設定しました"
  79. else if event-block is not end stone:
  80. message "&6エンドストーン以外は指定できません"
  81. cancel event
  82. stop
  83. on drop of stick:
  84. cancel event
  85. message "&6ネクサスの場所を削除しました"
  86. delete {nexus.red}
  87. delete {nexus.blue}
  88. on mine:
  89. if location of event-block is {nexus.red}:
  90. if player is {red::*}:
  91. message "&6自軍のネクサスには攻撃できません"
  92. cancel event
  93. stop
  94. cancel event
  95. broadcast "&9%player%&6が&c赤&6のネクサスを削りました!"
  96. remove 1 from {hp.red}
  97. if {hp.red} is 1:
  98. broadcast "&c赤チームのHPが1になりました!!"
  99. execute console command "/playsound entity.enderdragon.ambient master @a ~ ~ ~ 2 1 1"
  100. teleport {blue::*} to {bluespawn}
  101. if {hp.red} is 0:
  102. execute console command "/playsound entity.player.levelup master @a ~ ~ ~ 2 1 1"
  103. wait 5 seconds
  104. execute console command "/stopgame"
  105. stop
  106. #↑ Red ↓Blue
  107. if location of event-block is {nexus.blue}:
  108. if player is {blue::*}:
  109. message "&6自軍のネクサスには攻撃できません"
  110. cancel event
  111. stop
  112. cancel event
  113. broadcast "&c%player%&6が&9青&6のネクサスを削りました!"
  114. remove 1 from {hp.blue}
  115. if {hp.blue} is 1:
  116. broadcast "&9青チームのHPが1になりました!!"
  117. execute console command "/playsound entity.enderdragon.ambient master @a ~ ~ ~ 2 1 1"
  118. teleport {red::*} to {redspawn}
  119. if {hp.blue} is 0:
  120. execute console command "/playsound entity.player.levelup master @a ~ ~ ~ 2 1 1"
  121. broadcast "&c赤チーム&6の勝利!!"
  122. wait 5 seconds
  123. execute console command "/stopgame"
  124. on mine of end stone:
  125. set {_chance} to random integer between 1 and 4
  126. if {_chance} is 1:
  127. command "/playsound minecraft:block.anvil.place master @a ~ ~ ~ 2 1 1"
  128. if {_chance} is 2:
  129. command "/playsound minecraft:block.anvil.place master @a ~ ~ ~ 2 0.9 1"
  130. if {_chance} is 3:
  131. command "/playsound minecraft:block.anvil.place master @a ~ ~ ~ 2 0.6 1"
  132. if {_chance} is 4:
  133. command "/playsound minecraft:block.anvil.place master @a ~ ~ ~ 2 0.3 1"
  134. on break:
  135. if player is not op:
  136. cancel event
  137. if {game} is true:
  138. cancel event
  139. on place:
  140. if player is not op:
  141. cancel event
  142. if {game} is true:
  143. cancel event
  144. on drop:
  145. if player is not op:
  146. cancel event
  147. if {game} is true:
  148. cancel event
  149. on join:
  150. broadcast "&e%player% &9Has Joined"
  151. teleport player to {lobby}
  152. command "/gamemode 2 %player%"
  153. on quit:
  154. if player is {red::*}:
  155. remove player from {red::*}
  156. stop
  157. if player is {blue::*}:
  158. remove player from {blue::*}
  159. stop
  160. on death of player:
  161. if {game} is true:
  162. add 1 to {nowkills.%attacker%}
  163. if {nowkills.%attacker%} is 10:
  164. give diamond sword named "&5&n&lGhostFinalSword" to attacker
  165. stop
  166. if {nowkills.%attacker%} is 6:
  167. give iron sword to attacker
  168. stop
  169. if {nowkills.%attacker%} is 5:
  170. equip attacker with chainmail chestplate
  171. stop
  172. if {nowkills.%attacker%} is 4:
  173. equip attacker with chainmail leggings
  174. stop
  175. if {nowkills.%attacker%} is 3:
  176. equip attacker with chainmail boots
  177. stop
  178. if {nowkills.%attacker%} is 2:
  179. equip attacker with chainmail helmet
  180. stop
  181. if {nowkills.%attacker%} is 1:
  182. set slot 0 of attacker to stone sword
  183. stop
  184. on death of player:
  185. if {game} is true:
  186. force victim to respawn
  187. if victim is {red::*}:
  188. teleport victim to {redspawn}
  189. if victim is {blue::*}:
  190. teleport victim to {bluespawn}
  191. set {nowkills.%victim%} to 0
  192. else:
  193. send "&cError &6Victim is &c%victim%" to ops
  194. force victim to respawn
  195. teleport victim to {lobby}
  196. stop
  197.  
  198. on death of player:
  199. if {game} is true:
  200. give player skull to attacker
  201. wait 1 tick
  202. execute console command "/clear %victim%"
  203. equip victim with leather helmet
  204. equip victim with leather chestplate
  205. equip victim with leather leggings
  206. equip victim with leather boots
  207. give wooden sword to victim
  208. give stone pickaxe to victim
  209.  
  210. on rightclick holding player head:
  211. apply regeneration 3 to the player for 5 seconds
  212. apply speed 2 to the player for 5 seconds
  213. remove 1 player skull from the player
  214. stop
  215.  
  216. command /start:
  217. trigger:
  218. set {game} to true
  219. execute console command "/gamemode 0 @a"
  220. broadcast "&6攻防戦を開始します"
  221. execute console command "/random"
  222. wait 3 seconds
  223. loop all players:
  224. if loop-player is {red::*}:
  225. teleport loop-player to {redspawn}
  226. if loop-player is {blue::*}:
  227. teleport loop-player to {bluespawn}
  228. execute console command "/clear %loop-player%"
  229. equip loop-player with leather helmet
  230. equip loop-player with leather chestplate
  231. equip loop-player with leather leggings
  232. equip loop-player with leather boots
  233. give wooden sword to loop-player
  234. give stone pickaxe to loop-player
  235. enable PvP in all worlds
  236. stop
  237. on damage of player:
  238. set maximum damage delay of victim to 16 ticks
  239. if attacker is not {red::*} or {blue::*}:
  240. cancel event
  241. command /ea [<text>]:
  242. trigger:
  243. if arg 1 is not set:
  244. send "&cerror"
  245. stop
  246. evaluate "%arg%"
Add Comment
Please, Sign In to add comment