Advertisement
SuzukazeK

Untitled

Sep 15th, 2019
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.60 KB | None | 0 0
  1. on server start:
  2. end()
  3. command "/gamerule reducedDebugInfo false"
  4. command "/start"
  5.  
  6. on join:
  7. broadcast "&b&l%player%さんがログインしました"
  8. teleport player to {border}
  9. set player's gamemode to spectator
  10. clear player's inventory
  11.  
  12. on quit:
  13. broadcast "&c%player%さんがログアウトしました"
  14. if {live.%player%} is true:
  15. set {player} to {player} - 1
  16. set {live.%player%} to false
  17.  
  18. on damage:
  19. {game} is "い"
  20. attacker is player
  21. victim is player
  22. message "&c&l準備時間中のPVPは無効になっています" to attacker
  23. cancel event
  24.  
  25. on death:
  26. heal the victim
  27. if {game} is "い":
  28. teleport victim to {border}
  29. if {game} is "う":
  30. if attacker is player:
  31. broadcast "&6&l%attacker%さんが%victim%さんをキルしました"
  32. else:
  33. broadcast "&6&l%victim%さんが死亡しました"
  34. set victim's gamemode to spectator
  35. teleport victim to {border}
  36. set {player} to {player} - 1
  37. set {live.%player%} to false
  38.  
  39. on command "/ch":
  40. player's gamemode is not creative
  41. cancel event
  42.  
  43. command /setup:
  44. permission: skript.admin
  45. trigger:
  46. command "/execute @e[c=1] ~ ~ ~ /gamerule commandBlockOutput false"
  47. command "/execute @e[c=1] ~ ~ ~ /gamerule showDeathMessages false"
  48. command "/execute @e[c=1] ~ ~ ~ /gamerule randomTickSpeed 100"
  49. set {border} to location at 0, 200, 0
  50. message "%{border}%"
  51.  
  52. command /start:
  53. permission: skript.admin
  54. trigger:
  55. teleport all players to {border}
  56. command "/execute @p ~ ~ ~ /weather clear"
  57. set {game} to "あ"
  58. command "/execute @e[c=1] ~ ~ ~ /gamerule keepInventory true"
  59. wait 5 second
  60. set {time} to 30
  61. broadcast "&f&l30秒後にゲームを開始します"
  62. while {time} > -1:
  63. command "/execute @a ~ ~ ~ /playsound minecraft:ui.button.click master @a ~ ~ ~ 1 1 1"
  64. a()
  65. set {time} to {time} - 1
  66. wait 1 second
  67. broadcast "&f&lゲームを開始します..."
  68. wait 2 second
  69. add 550 to x-coord of {border}
  70. broadcast "-+------------------------+-"
  71. broadcast "&b&lボーダーの中心座標 : %{border}%"
  72. broadcast "-+------------------------+-"
  73. set {_x} to x-coord of {border}
  74. set {_z} to z-coord of {border}
  75. command "/execute @e[c=1] ~ ~ ~ /worldborder center %{_x}% %{_z}%"
  76. command "/execute @e[c=1] ~ ~ ~ /worldborder center %{_x}% %{_z}%"
  77. teleport all players to {border}
  78. command "/execute @e[c=1] ~ ~ ~ /setblock %{_x}% 199 %{_z}% minecraft:bedrock"
  79. loop all players:
  80. if {nojoin.%loop-player%} is true:
  81. set loop-player's gamemode to spectator
  82. else:
  83. set loop-player's gamemode to survival
  84. set chestplate slot of loop-player to unbreakable a elytra of curse of binding 1 and protection 3
  85. set {player} to {player} + 1
  86. set {live.%loop-player%} to true
  87. set {game} to "い"
  88. broadcast "&f&l&n準備時間に入ります"
  89. set {size} to 250
  90. set {time} to 300
  91. while {time} > -1:
  92. b()
  93. set {time} to {time} - 1
  94. wait 1 second
  95. command "/execute @e[c=1] ~ ~ ~ /gamerule keepInventory true"
  96. set {game} to "う"
  97. broadcast "&f&l&n戦闘時間に入ります"
  98. set {time} to 30
  99. while {player} > 0:
  100. c()
  101. set {time} to {time} - 1
  102. wait 1 second
  103. if {time} < 1:
  104. if {size} > 1:
  105. broadcast "&f&l&nボーダーを縮小します"
  106. if {size} = 250:
  107. command "/execute @e[c=1] ~ ~ ~ /worldborder set 200 10"
  108. set {time} to 120
  109. set {size} to 200
  110. else if {size} = 200:
  111. command "/execute @e[c=1] ~ ~ ~ /worldborder set 100 20"
  112. set {time} to 180
  113. set {size} to 100
  114. else if {size} = 100:
  115. command "/execute @e[c=1] ~ ~ ~ /worldborder set 50 10"
  116. set {time} to 60
  117. set {size} to 50
  118. else if {size} = 50:
  119. command "/execute @e[c=1] ~ ~ ~ /worldborder set 1 10"
  120. set {time} to 100
  121. set {size} to 1
  122. else:
  123. loop all players:
  124. {live.%loop-player%} is true
  125. apply wither 1 to loop-player for 1 second
  126. loop all players:
  127. {live.%loop-player%} is true
  128. set {winner} to "%loop-player%"
  129. broadcast "&f&lGame Set"
  130. wait 2 second
  131. command "/execute @a ~ ~ ~ /playsound minecraft:entity.enderdragon.death master @a ~ ~ ~ 1 1 1"
  132. send title "&e&lWinner : %{winner}%" to all players
  133. wait 4 second
  134. broadcast "&f&lゲームを終了します"
  135. wait 1 second
  136. end()
  137. set all players's gamemode to spectator
  138. clear all players's inventory
  139. command "/start"
  140.  
  141. function a():
  142. loop all players:
  143. wipe loop-player's sidebar
  144. set name of sidebar of loop-player to "&6-+- &6&lBattle Royal &6+-+"
  145. set score "&b[現在の状況]" in sidebar of loop-player to 10
  146. set score "&f&l参加者募集中" in sidebar of loop-player to 9
  147. set score "" in sidebar of loop-player to 8
  148. set score "&fゲーム開始まで : %{time}%秒" in sidebar of loop-player to 7
  149. set score "-+---------------+-" in sidebar of loop-player to 6
  150. set score "&6前回の勝者 : %{winner}%" in sidebar of loop-player to 5
  151.  
  152. function b():
  153. loop all players:
  154. wipe loop-player's sidebar
  155. set name of sidebar of loop-player to "&6-+- &6&lBattle Royal &6+-+"
  156. set score "&b[現在の状況]" in sidebar of loop-player to 10
  157. set score "&a&l準備時間" in sidebar of loop-player to 9
  158. set score "" in sidebar of loop-player to 8
  159. set score "&f戦闘時間まで : %{time}%秒" in sidebar of loop-player to 7
  160. set score "&5現在のボーダーサイズ : %{size}% * %{size}%" in sidebar of loop-player to 6
  161. set score "-+---------------+-" in sidebar of loop-player to 5
  162. set score "&6現在の参加者 : %{player}%人" in sidebar of loop-player to 4
  163.  
  164. function c():
  165. loop all players:
  166. wipe loop-player's sidebar
  167. set name of sidebar of loop-player to "&6-+- &6&lBattle Royal &6+-+"
  168. set score "&b[現在の状況]" in sidebar of loop-player to 10
  169. set score "&c&l戦闘時間" in sidebar of loop-player to 9
  170. set score "" in sidebar of loop-player to 8
  171. set score "&fボーダー縮小まで : %{time}%秒" in sidebar of loop-player to 7
  172. set score "&5現在のボーダーサイズ : %{size}% * %{size}%" in sidebar of loop-player to 6
  173. set score "-+---------------+-" in sidebar of loop-player to 5
  174. set score "&6生存者 : %{player}%人" in sidebar of loop-player to 4
  175.  
  176. function end():
  177. command "/execute @e[c=1] ~ ~ ~ /worldborder set 250"
  178. set {game} to "あ"
  179. delete {time}
  180. delete {player}
  181.  
  182. command /a:
  183. trigger:
  184. set {_x} to x-coord of {border}
  185. broadcast "%{_x}% %{border}%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement