Advertisement
maozou

時計作改造maozou

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