Advertisement
Svely

kakurenbo v2

May 12th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. options:
  2. oniprefix: &c[&b増え鬼&c]
  3. prefix: &c[&eServer&c]
  4.  
  5. command /oni <text>:
  6. permission: oni.admin
  7. permission message: &cYou dont have permission needed "oni.admin"
  8. usage: /oni help
  9. trigger:
  10. if arg 1 is "help":
  11. send "{@oniprefix} &b/oni start &aかくれんぼを開始します"
  12. send "{@oniprefix} &b/oni wp &a鬼を決めます"
  13. send "{@oniprefix} &b/oni reset &a隠れんぼをリセットします"
  14. send "{@oniprefix} &b/oni gui &a隠れんぼごっこの設定などを表示します"
  15. send "{@oniprefix} &b/oni pvp <enable:disable> &aPvPをオン、オフ切り替えます"
  16. if arg 1 is "gui":
  17. open chest with 1 row named "&b&lkakureGui" to player
  18. wait 1 tick
  19. format slot 0 of player with clock named "&c隠れんぼスタート" to close then run "oni start"
  20. format slot 1 of player with compass named "&b鬼を決める" to close then run "oni wp"
  21. format slot 2 of player with lava bucket named "&e隠れんぼリセット" to close then run "oni reset"
  22. if arg 1 is "start":
  23. execute console command "/settimer 515"
  24. broadcast "{@oniprefix} &bかくれんぼごっこスタート!"
  25. broadcast "{@oniprefix} &c15秒後に鬼が出現します"
  26. enable pvp
  27. execute console command "/gamerule sendCommandFeedback false"
  28. execute console command "/give @a cooked_beef 64"
  29. execute console command "/effect @a[team=oni] 5 10000 127 true"
  30. execute console command "/effect @a[team=oni] 11 10000 127 true"
  31. execute console command "/effect @a saturation 1 255"
  32. execute console command "/scoreboard teams join nige @a[team=!oni]"
  33. execute console command "/effect @a[team=oni] speed 60 0 true"
  34. execute console command "/whitelist on"
  35. execute console command "/effect @a[team=!oni] 11 10000 3 true"
  36. wait 1 tick
  37. execute console command "/gamerule sendCommandFeedback true"
  38. wait 15 second
  39. execute console command "/setblock -3 13 0 redstone_torch"
  40. broadcast "{@oniprefix} &c鬼が開放されました!"
  41. if arg 1 is "wp":
  42. broadcast "{@oniprefix} &b鬼がランダムで選ばれます!"
  43. wait 1 second
  44. execute console command "/tp @r -4 15 0"
  45. execute console command "/scoreboard teams join oni @p[x=-4,y=15,z=0,dy=1]"
  46. if arg 1 is "reset":
  47. broadcast "{@oniprefix} &b増え鬼ごっこ終了!"
  48. disable pvp
  49. execute console command "/gamerule sendCommandFeedback false"
  50. execute console command "/tp @a 0 15 0"
  51. execute console command "/scoreboard teams leave @a"
  52. execute console command "/setblock -3 13 0 stone"
  53. execute console command "/effect @a clear"
  54. execute console command "/whitelist off"
  55. execute console command "/clear @a"
  56. execute console command "/gamemode 2 @a"
  57. execute console command "/effect @a saturation 1 5 true"
  58. wait 1 tick
  59. execute console command "/gamerule sendCommandFeedback true"
  60. if arg 1 is "pvp enable":
  61. enable pvp
  62. send "{@oniprefix} &cPvP is now enable!"
  63. if arg 1 is "pvp disable":
  64. disable pvp
  65. send "{@oniprefix} &cPvP is now disable!"
  66.  
  67. command /settimer <number>:
  68. permission: oni.admin
  69. permission message: &cYou dont have permission needed "oni.admin"
  70. aliases: /st
  71. trigger:
  72. loop all players:
  73. set loop-player's level to arg
  74. loop arg times:
  75. wait 1 second
  76. loop all players:
  77. set loop-player's level to arg - loop-number
  78. execute console command "/oni reset"
  79.  
  80. command /help:
  81. trigger:
  82. send "{@prefix} &b鬼はtabの色が水色です"
  83. send "{@prefix} &b隠れる人は500秒間隠れましょう!"
  84. send "{@prefix} &b/help &aでルールが読めます"
  85. send "{@prefix} &b/spawn &aで詰み穴に落ちても戻れます"
  86. send "{@prefix} &b/heal &aで体力を回復します"
  87. send "{@prefix} &b人来次第鬼ごっこを始めます!"
  88.  
  89. command /walkspeed <number>:
  90. permission: oni.admin
  91. permission message: &cYou dont have permission needed "oni.admin
  92. aliases: /ws
  93. trigger:
  94. set the player's walk speed to arg
  95. broadcast "&c[walkspeed]&b走るスピードを%arg%にしました"
  96.  
  97. command /spawn:
  98. trigger:
  99. teleport player to location (0, 15, 0)
  100. send "{@prefix} &aスポーンへテレポートしました!"
  101.  
  102. command /heal:
  103. trigger:
  104. heal the player
  105. wait 1 tick
  106. send "{@prefix} &c%player%&bさんの体力を回復しました"
  107. make console execute command "/effect %player% saturation 1 255"
  108.  
  109. command /broadcast <text>:
  110. permission: oni.admin
  111. permission message: &cYou dont have permission needed "oni.admin"
  112. usage: /broadcast <text>
  113. aliases: /bc
  114. trigger:
  115. broadcast "{@prefix} &c%argument%"
  116.  
  117. command /fly:
  118. usage: /fly
  119. Executable by: players
  120. permission: use.fly
  121. permission message: &cYou dont have permission needed "use.fly"
  122. trigger:
  123. if {fly.%player%} is not set:
  124. send "&7Flight mode is now &benabled&c." to player
  125. set player's flight mode to true
  126. set {fly.%player%} to true
  127. stop
  128. send "&7Flight mode is now &bdisabled&c." to player
  129. set player's flight mode to false
  130. delete {fly.%player%}
  131. stop
  132.  
  133. command /plugins:
  134. trigger:
  135. send "&fPlugins (5): &aOnigokko&f, &aOnigokkoCore&f, &aWorldEdit&f, &aVault&f, &aViaVersion"
  136.  
  137. command /pl:
  138. trigger:
  139. send "&fPlugins (5): &aOnigokko&f, &aOnigokkoCore&f, &aWorldEdit&f, &aVault&f, &aViaVersion"
  140.  
  141. on death:
  142. heal the player
  143. wait 1 tick
  144. teleport player to location (-4, 15, 0)
  145. make console execute command "/scoreboard teams join oni %player%"
  146. make console execute command "/effect %player% 5 10000 127 true"
  147. make console execute command "/effect %player% 11 10000 127 true"
  148. broadcast "{@oniprefix} &e%player%&bさんが捕まり鬼になりました"
  149.  
  150. on death of player:
  151. if attacker is a player:
  152. if attacker is set:
  153. set the death message to "{@prefix} &c%victim%さんは鬼に襲われた"
  154.  
  155. on load:
  156. execute console command "/gamerule reducedDebugInfo false"
  157. execute console command "/gamerule sendCommandFeedback true"
  158.  
  159. on join:
  160. set the join message to "{@prefix} &e%player%&bさんがサーバーに参加しました"
  161. send "{@prefix} &b/help &aでルールが読めます"
  162. send "{@prefix} &b/spawn &aで詰み穴に落ちても戻れます"
  163. send "{@prefix} &b/heal &aで体力を回復します"
  164. send "{@prefix} &b人来次第鬼ごっこを始めます!"
  165. send "{@prefix} &b人が来るまで隠れ場所などを見つけましょう!"
  166. make console execute command "/playsound minecraft:entity.player.levelup master @a"
  167. make console execute command "gamemode adventure %player%"
  168. teleport player to location (0, 15, 0)
  169.  
  170. on quit:
  171. set the quit message to "{@prefix} &e%player%&bさんがサーバーから退出しました"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement