Advertisement
siso_

TNTRUN

Feb 9th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.99 KB | None | 0 0
  1. options:
  2. t: &c&l[&6TNTRUN&c&l]&6
  3.  
  4. every 1 tick:
  5. {game} is true
  6. loop all players:
  7. if block below loop-player is sand:
  8. set block below loop-player to air
  9. stop
  10. on join:
  11. teleport player to {lobby}
  12. command "/gamemode 2 %player%"
  13. broadcast "&e%player%&6さんが参加しました"
  14. loop all players:
  15. set tab header to "&lサーバー参加人数 &a%number of all players%&8/15" and footer to "&6[&cTNT RUN&6]" for loop-player
  16. stop
  17. on quit:
  18. if player is {tntrun::*}:
  19. if {game} is true:
  20. remove player from {tntrun::*}
  21. remove 1 from {member}
  22. else:
  23. remove player from {tntrun::*}
  24. wait 10 tick
  25. loop all players:
  26. set tab header to "&lサーバー参加人数 &a%number of all players%&8/15" and footer to "&6[&cTNT RUN&6]" for loop-player
  27. on damage of player:
  28. if damage was caused by lava:
  29. if {game} is true:
  30. cancel event
  31. set gamemode of victim to Spectator
  32. if {member} is 3:
  33. send "&6あなたは&d%{member}%位&6でした" to victim
  34. set {3i.%victim%} to true
  35. if {member} is 2:
  36. send "&6あなたは&a%{member}%位&6でした" to victim
  37. set {2i.%victim%} to true
  38. send "&6あなたは&2%{member}%位&6でした" to victim
  39. command "/playsound entity.wither.death master %victim% ~ ~ ~ 1 1 1"
  40. remove 1 from {member}
  41. remove victim from {tntrun::*}
  42. set victim tab name to "&f%victim%"
  43. strike fake fake lightning at victim
  44. if {member} is 1:
  45. broadcast "{@t} 終了!!"
  46. set {game} to false
  47. command "/playsound entity.player.levelup master @a ~ ~ ~ 1 1 1"
  48. wait 3 seconds
  49. loop all players:
  50. if {3i.%loop-player%} is true:
  51. broadcast "{@t} 三位は&b&l%loop-player%&6でした!!"
  52. wait 10 tick
  53. if {2i.%loop-player%} is true:
  54. broadcast "{@t} 二位は&a&l%loop-player%&6でした!!"
  55. broadcast "{@t} 一位は&d&l%{tntrun::*}%&6でした!!"
  56. wait 3 seconds
  57. execute console command "/stoptntrun"
  58. stop
  59. else:
  60. cancel event
  61. else:
  62. cancel event
  63. command /tntrun:
  64. permission: skript.admin
  65. trigger:
  66. loop all players:
  67. add loop-player to {tntrun::*}
  68. loop {tntrun::*}:
  69. add 1 to {member}
  70. teleport {tntrun::%loop-index%} to {spawntntrun}
  71. set player tab name to "&a%player%"
  72. if {member} <= 1:
  73. broadcast "{@t} &6ゲームを開始できませんでした。 60秒後に終了します"
  74. wait 1 minutes
  75. execute console command "/stoptntrun"
  76. stop
  77. broadcast "{@t} ゲームを開始します"
  78. wait 1 seconds
  79. broadcast "{@t} 5"
  80. command "/playsound ui.button.click master @a ~ ~ ~ 1 1 1"
  81. wait 1 seconds
  82. broadcast "{@t} 4"
  83. command "/playsound ui.button.click master @a ~ ~ ~ 1 1 1"
  84. wait 1 seconds
  85. broadcast "{@t} 3"
  86. command "/playsound ui.button.click master @a ~ ~ ~ 1 1 1"
  87. wait 1 seconds
  88. broadcast "{@t} 2"
  89. command "/playsound ui.button.click master @a ~ ~ ~ 1 1 1"
  90. wait 1 seconds
  91. broadcast "{@t} 1"
  92. command "/playsound ui.button.click master @a ~ ~ ~ 1 1 1"
  93. wait 1 seconds
  94. send all players title "&6スタート!!" for 1 seconds with 0.5 seconds fade in and 0.5 seconds fade out
  95. command "/playsound entity.enderdragon.ambient master @a ~ ~ ~ 1 1 1"
  96. set {game} to true
  97. stop
  98. command /check:
  99. trigger:
  100. send "&6%{member}%"
  101. send "&a%{tntrun::*}%"
  102. command /stoptntrun:
  103. permission: skript.admin
  104. trigger:
  105. broadcast "{@t} ゲームを終了しました"
  106. set {game} to false
  107. set {member} to 0
  108. delete {tntrun::*}
  109. teleport all players to {lobby}
  110. command "/clear @a"
  111. execute console command "/resetsand"
  112. execute console command "/gamemode 2 @a"
  113. loop all players:
  114. heal loop-player
  115. set {1i.%loop-player%} to false
  116. set {2i.%loop-player%} to false
  117. set {3i.%loop-player%} to false
  118. set loop-player tab name to "&f%loop-player%"
  119. if {re} is true:
  120. broadcast "&615秒後にスタートします"
  121. wait 15 seconds
  122. execute console command "/tntrun"
  123. command /re [<text>]:
  124. permission: skript.admin
  125. trigger:
  126. if arg 1 is "on":
  127. set {re} to true
  128. send "&aon"
  129. if arg 1 is "off":
  130. set {re} to false
  131. send "&coff"
  132. command /spawn [<text>]:
  133. permission: skript.admin
  134. trigger:
  135. if arg 1 is "lobby":
  136. set {lobby} to location of player
  137. message "&6ロビーの位置を%location%にしました"
  138. stop
  139. if arg 1 is "tntrun":
  140. set {spawntntrun} to location of player
  141. send "&6TNTRUNのスポーン地点をセットしました"
  142. stop
  143. command /block [<text>]:
  144. permission: skript.admin
  145. trigger:
  146. if arg 1 is "1":
  147. set {pos1} to location of player
  148. message "&61"
  149. stop
  150. if arg 1 is "2":
  151. set {pos2} to location of player
  152. send "&62"
  153. stop
  154. if arg 1 is "3":
  155. set {pos3} to location of player
  156. message "&63"
  157. stop
  158. if arg 1 is "4":
  159. set {pos4} to location of player
  160. send "&64"
  161. stop
  162. if arg 1 is "5":
  163. set {pos5} to location of player
  164. message "&65"
  165. stop
  166. if arg 1 is "6":
  167. set {pos6} to location of player
  168. send "&66"
  169. stop
  170. if arg 1 is "7":
  171. set {pos7} to location of player
  172. message "&67"
  173. stop
  174. if arg 1 is "8":
  175. set {pos8} to location of player
  176. send "&68"
  177. stop
  178. command /resetsand:
  179. permission: skript.admin
  180. trigger:
  181. execute console command "/fill 100 45 100 124 45 122 sand"
  182. execute console command "/fill 100 32 100 124 32 122 sand"
  183. execute console command "/fill 100 19 100 124 19 122 sand"
  184. execute console command "/fill 100 7 100 124 7 122 sand"
  185. stop
  186. on drop:
  187. if player is not op:
  188. cancel event
  189. command /prefix [<player>] [<text>]:
  190. aliases: /pre
  191. permission: skript.admin
  192. trigger:
  193. if arg 1 is not set:
  194. message "&8使い方"
  195. message "&a&o/prefix &e(player) &5(text) &7※/pre"
  196. message "&8スペースを入れたいときは""1""スペースを削除したいときは""0""です"
  197. message "&8prefixを消したいときは/prefix reset"
  198. if arg 1 is set:
  199. if arg 2 is set:
  200. play sound "block.metal_pressureplate.click_on" at player
  201. set {prefix.%arg 1%} to colored arg 2
  202. message "%arg 2%に設定しました"
  203. stop
  204. if arg 2 is "delete":
  205. delete {prefix.%arg 1%}
  206. send "&6Prefixを削除しました"
  207. stop
  208. command /noprefix:
  209. trigger:
  210. delete {prefix.%player%}
  211. send "&6Prefixを削除しました"
  212. on chat:
  213. if {prefix.%player%} is not set:
  214. stop
  215. if {prefix.%player%} is set:
  216. cancel event
  217. broadcast "%{prefix.%player%}% &7%player%&f: &f%message%"
  218. on right click on chest:
  219. cancel event
  220. send "&dすてはげ"
  221. command /fly [<player>]:
  222. permission: skript.admin
  223. aliases: /f
  224. trigger:
  225. if arg 1 is set:
  226. if {fly.%arg 1%} is false:
  227. set {fly.%arg 1%} to true
  228. message "&7Fly to &aEnable&7"
  229. play sound "block.note.pling" at arg 1
  230. set arg 1's flight mode to true
  231. else:
  232. if {fly.%arg 1%} is true:
  233. set {fly.%arg 1%} to false
  234. message "&7Fly to &cDisble&7"
  235. play sound "block.piston.contract" at arg 1
  236. set arg 1's flight mode to false
  237. command /a:
  238. permission: skript.admin
  239. trigger:
  240. loop 150 times:
  241. broadcast ""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement