Advertisement
SuzukazeK

Untitled

Aug 21st, 2019
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.68 KB | None | 0 0
  1. command /start:
  2. trigger:
  3. {game} is not set
  4. set {game} to true
  5. set {_time} to 20
  6. while {_time} > -1:
  7. play sound "ui.button.click" with volume 0.5 and pitch 1 at all players
  8. send action bar "&b&l%{_time}%秒後にゲームを開始します..." to all players
  9. set {_time} to {_time} - 1
  10. wait a second
  11. send action bar "&b&lゲームを開始します" to all players
  12. broadcast "&b&lゲームを開始します"
  13. play sound "entity.firework.large_blast" with volume 0.5 and pitch 1 at all players
  14. wait 2 second
  15. set {_stage} to a random integer between 1 and {stagelist}
  16. loop {stage::*}:
  17. set {_loop} to {_loop} + 1
  18. {_loop} = {_stage}
  19. set {_gamestage} to loop-index
  20. play sound "block.anvil.use" with volume 0.5 and pitch 1 at all players
  21. broadcast "&f-+-----------------------------------+-"
  22. broadcast ""
  23. broadcast "&e&l 今回のステージ : %{stage::%{_gamestage}%}%"
  24. broadcast "&6&l Created by %{stage::%{_gamestage}%::create}%"
  25. broadcast ""
  26. broadcast "&d&l 試合時間 : %{stage::%{_gamestage}%::time}% 秒"
  27. broadcast ""
  28. broadcast "&f-+-----------------------------------+-"
  29. wait 3 second
  30. play sound "entity.elder_guardian.curse" with volume 0.5 and pitch 2 at all players
  31. set {_oni} to random player out of all players
  32. broadcast "" ,"&b&l今回の初期鬼は、&6&l%{_oni}%&b&lさんです" and ""
  33. wait 1 second
  34. play sound "entity.endermen.teleport" with volume 0.5 and pitch 1 at all players
  35. teleport all players to {stage::%{_gamestage}%::location}
  36. broadcast "&b&l鬼は20秒後に出現します"
  37. wait 20 second
  38. teleport {_oni} to {stage::%{_gamestage}%::location}
  39. broadcast "&b&l鬼が出現しました!"
  40. play sound "entity.generic.explode" with volume 0.5 and pitch 1 at all players
  41. set {nige} to -1
  42. loop all players:
  43. {nojoin.%player%} is not set
  44. set {nige} to {nige} + 1
  45. set {oni} to 1
  46. set {_time} to 10
  47. while {_time} > -1:
  48. send action bar "&f- &b&l逃 : %{nige}% &e[ &6&l%{_time}% &e] &c&l鬼 : %{oni}% &f-" to all players
  49. set {_time} to {_time} - 1
  50. if {nige} < 1:
  51. exit 1 loop
  52. wait 1 second
  53. broadcast "Game set!"
  54.  
  55. command /end:
  56. trigger:
  57. broadcast "&c&l試合が強制終了しました"
  58. delete {game}
  59.  
  60.  
  61.  
  62. on damage:
  63. if {nojoin.%attacker%} is set:
  64. cancel event
  65. attacker is player
  66. broadcast "&c&l%victim%は鬼に捕まった"
  67. play sound "entity.wolf.howl" with volume 0.5 and pitch 1 at all players
  68. display 30 lava particles at the victim's location offset by 0.5, 0, 0.5
  69.  
  70.  
  71. on inventory click:
  72. clicked inventory is player's current inventory
  73. if name of player's current inventory is "&8ステージ設定":
  74. cancel event
  75.  
  76. #-+-------------------------------------------------------------------------------------------------+-#
  77. command /stage-list:
  78. aliases: /s-l
  79. trigger:
  80. open chest with 6 row named "&8ステージ設定" to player
  81. play sound "block.chest.open" with volume 0.5 and pitch 1 at player
  82. set {_loop} to 0
  83. loop {stage::*}:
  84. set slot {_loop} of player's current inventory to name tag with name "%{stage::%loop-index%}%" with lore "ID : %loop-index%", "CREATE : %{stage::%loop-index%::create}%" and "LOCATION : %{stage::%loop-index%::location}%"
  85. set {_loop} to {_loop} + 1
  86.  
  87. command /stage-add <text> [<text>] [<text>] [<number>]:
  88. aliases: /s-a
  89. trigger:
  90. if arg-1 is "help":
  91. message "&7/stage-add <管理ID> <表示名> <作者名> <秒数>" to player
  92. stop
  93. arg-2 is set
  94. arg-3 is set
  95. arg-4 is set
  96. if {stage::%arg-1%} is set:
  97. message "&7同名のIDがあります" to player
  98. stop
  99. set {stagelist} to {stagelist} + 1
  100. set {stage::%arg-1%} to arg-2
  101. set {stage::%arg-1%::create} to arg-3
  102. set {stage::%arg-1%::time} to arg-4
  103. set {stage::%arg-1%::location} to player's location
  104. message "&7保存しました" to player
  105. execute player command "/stage-list"
  106.  
  107. command /stage-delete <text>:
  108. aliases: /s-d
  109. trigger:
  110. if {stage::%arg-1%} is not set:
  111. message "&7そのIDは存在しません" to player
  112. stop
  113. delete {stage::%arg-1%}
  114. delete {stage::%arg-1%::*}
  115. set {stagelist} to {stagelist} - 1
  116. broadcast "%{stage::%arg-1%::location}%"
  117. message "&7削除しました" to player
  118. execute player command "/stage-list"
  119.  
  120. command /stage-edit <text> [<text>] [<text>] [<number>]:
  121. aliases: /s-e
  122. trigger:
  123. if arg-1 is "help":
  124. message "&7/stage-edit <管理ID> <表示名> <作者名> <秒数>" to player
  125. stop
  126. arg-2 is set
  127. arg-3 is set
  128. arg-4 is set
  129. if {stage::%arg-1%} is not set:
  130. message "&7そのIDは存在しません" to player
  131. stop
  132. set {stage::%arg-1%} to arg-2
  133. set {stage::%arg-1%::create} to arg-3
  134. set {stage::%arg-1%::time} to arg-4
  135. set {stage::%arg-1%::location} to player's location
  136. message "&7変更しました" to player
  137. execute player command "/stage-list"
  138.  
  139. command /stage-teleport <text>:
  140. aliases: /s-t
  141. trigger:
  142. if {stage::%arg-1%} is not set:
  143. message "&7そのIDは存在しません" to player
  144. stop
  145. teleport player to {stage::%arg-1%::location}
  146. message "&7テレポートしました" to player
  147. #-+-------------------------------------------------------------------------------------------------+-#
  148.  
  149. command /setup:
  150. trigger:
  151. execute console command "/scoreboard teams add oni 鬼"
  152. execute console command "/scoreboard teams add nige 逃げ"
  153. execute console command "/scoreboard teams option oni friendlyfire false"
  154. execute console command "/scoreboard teams option nige friendlyfire false"
  155. execute console command "/scoreboard teams option oni nametagVisibility hideForOtherTeams"
  156. execute console command "/scoreboard teams option nige nametagVisibility hideForOtherTeams"
  157. execute console command "/scoreboard teams option oni color red"
  158. execute console command "/scoreboard teams option nige color blue"
  159. message "&7完了しました" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement