Advertisement
maozou

Aoonis

Dec 31st, 2018
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.14 KB | None | 0 0
  1. command /aooni [<text>] [<text>]:
  2. permission: sk.aooni
  3. permission message: §cYou do not have permission to execute this command!
  4. trigger:
  5. if arg-1 is "start" or "oniwarp" or "owp" or "chuukoku" or "help" or "random" or "dairi" or "stop" or "onichuukoku":
  6. if arg-1 is "start":
  7. if {aooni.aooni} is "false":
  8. set {aooni.aooni} to "true"
  9. send "&7[&bAooni&7] &a青鬼をスタートしました。"
  10. execute console command "setblock 778 64 460 redstone_block"
  11. broadcast "&9&l[--AooniMiniGames--]&e 青鬼を開始します!"
  12. set {time} to 800
  13. else:
  14. send "&7[&bAooni&7] &c青鬼が既に開始しています!"
  15. if arg-1 is "stop":
  16. if {aooni.aooni} is "true":
  17. set {aooni.aooni} to "false"
  18. execute console command "setblock 776 64 455 redstone_block"
  19. delete {aooni.oni}
  20. loop all players:
  21. delete {%loop-player%.clear}
  22. delete {%loop-player%.team}
  23. send "&7[&bAooni&7] &a青鬼をストップしました。"
  24. set {aooni.cpc} to 0
  25. set {aooni.tjl} to 0
  26. delete {aooni.oni}
  27. execute console command "settime 1"
  28. else:
  29. send "&7[&bAooni&7] &c青鬼が開始されていません!"
  30. if arg-1 is "oniwarp" or "owp":
  31. if {aooni.aooni} is "false":
  32. if arg-2 is set:
  33. execute console command "tp %arg 2% 751 46 405"
  34. execute arg-2 command "onisetting"
  35. set {a.awpd} to 1
  36. else:
  37. execute console command "setblock 790 43 448 redstone_block"
  38. set {a.awpd} to 1
  39. else if {aooni.aooni} is "true":
  40. send "&7[&bAooni&7] &c青鬼が既に開始しています!"
  41. if arg-1 is "chuukoku":
  42. broadcast "&9&l[--AooniMiniGames--]&e 青鬼を開始します。"
  43. execute console command "execute @a ~ ~ ~ /playsound minecraft:entity.arrow.hit_player master @a ~ ~ ~ 5 0.8"
  44. if arg-1 is "help":
  45. send "&9&l&o------------ AooniMiniGames &e&lSystems &9&l&o------------"
  46. send " &a&l作者: maozou &e&l改造: ClockClap"
  47. send " "
  48. send "&7start &8- &b青鬼を開始します。"
  49. send "&7oniwarp [Player]&8 | &7owp &8- &b青鬼を決めます。"
  50. send "&7chuukoku &8- &b青鬼開始忠告をします。"
  51. send "&7help &8- &bこれを表示します。"
  52. send "&7random &8- &3※ 青鬼が決まらなかった時用&b 青鬼をランダムで選びます。"
  53. send "&7dairi &8- &b青鬼が歪をしたときに青鬼の代理を選びます。"
  54. send "&7stop &8- &b青鬼を強制終了させます。"
  55. send "&7onichuukoku &8- &b青鬼抽選忠告をします。"
  56. send " "
  57. if arg-1 is "random":
  58. if {aooni.aooni} is "false":
  59. execute console command "setblock 770 64 469 redstone_block"
  60. else if {aooni.aooni} is "true":
  61. send "&7[&bAooni&7] &c青鬼が既に開始しています!"
  62. if arg-1 is "dairi":
  63. if {aooni.aooni} is "true":
  64. execute console command "setblock 777 64 463 redstone_block"
  65. else if {aooni.aooni} is "false":
  66. send "&7[&bAooni&7] &c青鬼が開始されていません!"
  67. if arg-1 is "onichuukoku":
  68. if {aooni.aooni} is "false":
  69. broadcast "&9&l[--AooniMiniGames]&b 青鬼を抽選します。"
  70. execute console command "execute @a ~ ~ ~ /playsound minecraft:entity.arrow.hit_player master @a ~ ~ ~ 5 0.8"
  71. else if {aooni.aooni} is "true":
  72. send "&7[&bAooni&7] &c青鬼が既に開始しています!"
  73.  
  74. command /rowp:
  75. permission: admin
  76. trigger:
  77. execute console command "setblock 790 43 448 redstone_block"
  78.  
  79. command /sc <text>:
  80. permission: admin
  81. trigger:
  82. if arg-1 is "reset":
  83. delete {sc.type}
  84. if arg-1 is "tika":
  85. set {sc.type} to 0
  86. if arg-1 is "5kai":
  87. set {sc.type} to 1
  88. if arg-1 is "nazo":
  89. set {sc.type} to 2
  90.  
  91. command /deletetime:
  92. permission: admin
  93. trigger:
  94. delete {time}
  95. send "&7[&6Time&7] &e残り時間を消しました。"
  96.  
  97. command /settime <number>:
  98. permission: admin
  99. trigger:
  100. send "&7[&6Time&7] &e残り時間を&6 %arg 1%&e に設定しました。"
  101. set {time} to arg-1
  102.  
  103. command /astop:
  104. permission: admin
  105. trigger:
  106. set {aooni.aooni} to "false"
  107. execute console command "setblock 777 64 466 redstone_block"
  108. delete {aooni.oni}
  109. loop all players:
  110. delete {%loop-player%.clear}
  111. delete {%loop-player%.team}
  112. set {aooni.cpc} to 0
  113. set {aooni.tjl} to 0
  114. set {time} to 0
  115. delete {aooni.oni}
  116.  
  117. command /oniset <player>:
  118. permission: admin
  119. trigger:
  120. set {aooni.oni} to arg-1
  121. set {%arg 1%.team} to "aooni"
  122.  
  123. command /hirosi <player>:
  124. permission: admin
  125. trigger:
  126. if {aooni.oni} is "%arg 1%":
  127. delete {aooni.oni}
  128. set {%arg 1%.team} to "hirosi"
  129. else:
  130. set {%arg 1%.team} to "hirosi"
  131.  
  132. command /dsc:
  133. permission: admin
  134. trigger:
  135. delete {aooni.scoreboard}
  136. send "&cスコアボードを非表示にしました。"
  137.  
  138. command /ssc:
  139. permission: admin
  140. trigger:
  141. set {aooni.scoreboard} to 1
  142. send "&aスコアボードを表示しました。"
  143.  
  144. command /aclp <player>:
  145. permission: admin
  146. trigger:
  147. if {%arg 1%.clear} is not set:
  148. add 1 to {aooni.cpc}
  149. set {%arg 1%.clear} to 1
  150.  
  151. on death of player:
  152. if attacker is a player:
  153. broadcast "&9%victim%は青鬼に食べられた"
  154. every seconds:
  155. loop all players:
  156. execute console command "/title @a actionbar ["""",{""text"":""キル数:"",""color"":""green""},{""text"":""%{kills.%loop-player%}%}]"
  157. if {aooni.cpc} is not set:
  158. set {aooni.cpc} to 0
  159. if {time} is 0:
  160. execute console command "astop"
  161. if {time} is 200:
  162. execute console command "setblock 776 46 478 air"
  163. execute console command "setblock 774 46 478 air"
  164. if {time} is 790:
  165. execute console command "setblock 776 64 474 redstone_block"
  166. if {time} is 780:
  167. execute console command "setblock 776 64 476 redstone_block"
  168. if {aooni.aooni} is "true":
  169. remove 1 from {time}
  170. execute console command "scoreboard players set 残り時間 Aooni %{time}%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement