Advertisement
mocchi_0

wj test 2

Feb 21st, 2020
385
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 121.43 KB | None | 0 0
  1. # ---------------- #
  2. # 役職IDリスト #
  3. # murabito #
  4. # kyouzinn #
  5. # jinnrou #
  6. # yogennsya #
  7. # reibaisi #
  8. # kariudo #
  9. # wanasi #
  10. # youko #
  11. # kyousinnsya #
  12. # sasayakukyouzinn #
  13. # nekomata #
  14. # kuroneko #
  15. # kennzya #
  16. # youzyutusi #
  17. # ---------------- #
  18.  
  19. #---------#
  20. # options #
  21. #---------#
  22.  
  23. options:
  24. j: &d[マイクラ人狼]
  25. g: &9[GAME]
  26. qm: &b&l[QuickMath]
  27. a: &e&l[Attention]
  28.  
  29. #-----------#
  30. # variables #
  31. #-----------#
  32.  
  33. variables:
  34. {arrowup} = "MHF_ArrowUp"
  35. {arrowdown} = "MHF_ArrowDown"
  36. {arrowright} = "MHF_ArrowDown"
  37. {arrowleft} = "MHF_ArrowDown"
  38.  
  39. #----------------#
  40. # yakusyoku edit #
  41. #----------------#
  42.  
  43. on inventory click:
  44. if name of player's current inventory contains "edit":
  45. cancel event
  46.  
  47. command /arrow:
  48. trigger:
  49. set {arrowup} to "MHF_ArrowUp"
  50. set {arrowdown} to "MHF_ArrowDown"
  51. set {arrowleft} to "MHF_ArrowDown"
  52. set {arrowright} to "MHF_ArrowDown"
  53.  
  54. command /kitediter [<integer>] [<integer>]:
  55. trigger:
  56. if player is not an op:
  57. send "{@j} &c権限がありません。"
  58. else:
  59. if arg 1 is between 2 and 20:
  60. if arg 2 is between 1 and 100:
  61. set {arrowup} to {arrowup} parsed as offline player
  62. set {arrowdown} to {arrowdown} parsed as offline player
  63. set {arrowleft} to {arrowleft} parsed as offline player
  64. set {arrowright} to {arrowright} parsed as offline player
  65. if {kit-%arg 1%-%arg 2%-total} is not set:
  66. set {kit-%arg 1%-%arg 2%-remaining} to arg 1
  67. open chest with 5 rows named "Edit menu / ゲームの人数: %arg 1%" to player
  68. set slot 0 of player's current inventory to white stained glass pane
  69. set slot 8 of player's current inventory to white stained glass pane
  70. set slot 9 of player's current inventory to white stained glass pane
  71. set slot 17 of player's current inventory to white stained glass pane
  72. set slot 18 of player's current inventory to white stained glass pane
  73. set slot 26 of player's current inventory to white stained glass pane
  74. set slot 27 of player's current inventory to white stained glass pane
  75. set slot 35 of player's current inventory to white stained glass pane
  76. set slot 36 of player's current inventory to white stained glass pane
  77. set slot 44 of player's current inventory to white stained glass pane
  78. if {kit-%arg 1%-%arg 2%-remaining} is arg 1:
  79. set slot 1 of player's current inventory to black stained glass pane
  80. set slot 2 of player's current inventory to black stained glass pane
  81. set slot 3 of player's current inventory to black stained glass pane
  82. set slot 5 of player's current inventory to black stained glass pane
  83. set slot 6 of player's current inventory to black stained glass pane
  84. set slot 7 of player's current inventory to black stained glass pane
  85. set slot 37 of player's current inventory to black stained glass pane
  86. set slot 38 of player's current inventory to black stained glass pane
  87. set slot 39 of player's current inventory to black stained glass pane
  88. set slot 40 of player's current inventory to black stained glass pane
  89. set slot 41 of player's current inventory to black stained glass pane
  90. set slot 42 of player's current inventory to black stained glass pane
  91. set slot 43 of player's current inventory to black stained glass pane
  92. if {kit-%arg 1%-%arg 2%-remaining} is 0:
  93. set slot 1 of player's current inventory to lime stained glass pane
  94. set slot 2 of player's current inventory to lime stained glass pane
  95. set slot 3 of player's current inventory to lime stained glass pane
  96. set slot 5 of player's current inventory to lime stained glass pane
  97. set slot 6 of player's current inventory to lime stained glass pane
  98. set slot 7 of player's current inventory to lime stained glass pane
  99. set slot 37 of player's current inventory to lime stained glass pane
  100. set slot 38 of player's current inventory to lime stained glass pane
  101. set slot 39 of player's current inventory to lime stained glass pane
  102. set slot 40 of player's current inventory to lime stained glass pane
  103. set slot 41 of player's current inventory to lime stained glass pane
  104. set slot 42 of player's current inventory to lime stained glass pane
  105. set slot 43 of player's current inventory to lime stained glass pane
  106. set {_yes} to arg 1 - 1
  107. if {kit-%arg 1%-%arg 2%-remaining} is between 1 and {_yes}
  108. set slot 4 of player's current inventory to book named "&e情報" with lore "&a現在の役職の総数: ?", "&c人狼の人数: ?" and "&a村人陣営の人数: ?"
  109. set slot 10 of player's current inventory to skull of {arrowup} named "&e一人増やす"
  110. set slot 11 of player's current inventory to skull of {arrowup} named "&e一人増やす"
  111. set slot 12 of player's current inventory to skull of {arrowup} named "&e一人増やす"
  112. set slot 13 of player's current inventory to skull of {arrowup} named "&e一人増やす"
  113. set slot 14 of player's current inventory to skull of {arrowup} named "&e一人増やす"
  114. set slot 19 of player's current inventory to lime wool named "&a村人"
  115. set slot 20 of player's current inventory to red wool named "&c人狼"
  116. set slot 21 of player's current inventory to blue wool named "&1占い師"
  117. set slot 22 of player's current inventory to yellow wool named "&e霊媒師"
  118. set slot 23 of player's current inventory to purple wool named "&5狂人"
  119. set slot 28 of player's current inventory to skull of {arrowdown} named "&e一人減らす"
  120. set slot 29 of player's current inventory to skull of {arrowdown} named "&e一人減らす"
  121. set slot 30 of player's current inventory to skull of {arrowdown} named "&e一人減らす"
  122. set slot 31 of player's current inventory to skull of {arrowdown} named "&e一人減らす"
  123. set slot 32 of player's current inventory to skull of {arrowdown} named "&e一人減らす"
  124. else:
  125. send "{@j} &c数字は1から100の間である必要があります。"
  126. else:
  127. send "{@j} &c数字は2から20の間である必要があります。"
  128.  
  129. command /edit [<integer>] [<integer>] [<text>] [<text>]:
  130. if player is not an op:
  131. send "{@j} &c権限がありません。"
  132. else:
  133. if arg 1 is not set:
  134. send "{@j} &c/edit <参加人数> <ID> <役職> <add or remove>"
  135. stop
  136. if arg 1 is between 2 and 20:
  137. if arg 2 not set:
  138. send "{@j} &c/edit %arg 1% <ID> <役職> <add or remove>"
  139. stop
  140. if arg 2 is between 1 and 99:
  141. if arg 3 is not set:
  142. send "{@j} &c/edit %arg 1% %arg 2% <役職> <add or remove>"
  143. send "{@j} murabito, kyouzinn, jinnrou, yogennsya, reibaisi, kariudo, wanasi, youko, kyousinnsya, sasayakukyouzinn, nekomata, kuroneko, kennzya or youzyutusi"
  144. stop
  145. if arg 3 is "murabito", "kyouzinn", "jinnrou", "yogennsya", "reibaisi", "kariudo", "wanasi", "youko", "kyousinnsya", "sasayakukyouzinn", "nekomata", "kuroneko", "kennzya" or "youzyutusi":
  146. if arg 4 is not set:
  147. send "{@j} &c/edit %arg 1% %arg 2% %arg 3% <add or remove>"
  148. stop
  149. if arg 4 is "add" or "remove":
  150. if arg 4 is "add":
  151. add 1 to {kit-%arg 1%-%arg 2%-%arg 3%}
  152. if arg 4 is "remove":
  153. remove 1 from {kit-%arg 1%-%arg 2%-%arg 3%}
  154.  
  155. on inventory click:
  156. if name of current inventory contains "警告履歴":
  157. cancel event
  158.  
  159. on inventory close:
  160. delete {page.%uuid of player%}
  161.  
  162. command /rule:
  163. trigger:
  164. open chest with 5 rows named "ルールリスト" to player
  165. format slot 0 of player with black stained glass pane named " " to be unstealable
  166. format slot 1 of player with black stained glass pane named " " to be unstealable
  167. format slot 2 of player with black stained glass pane named " " to be unstealable
  168. format slot 3 of player with black stained glass pane named " " to be unstealable
  169. format slot 4 of player with black stained glass pane named " " to be unstealable
  170. format slot 5 of player with black stained glass pane named " " to be unstealable
  171. format slot 6 of player with black stained glass pane named " " to be unstealable
  172. format slot 7 of player with black stained glass pane named " " to be unstealable
  173. format slot 8 of player with black stained glass pane named " " to be unstealable
  174. format slot 9 of player with black stained glass pane named " " to be unstealable
  175. format slot 10 of player with black stained glass pane named " " to be unstealable
  176. format slot 11 of player with barrier named "&c禁止事項 1" with lore "&e過度な暴言、過度な性的発言" to be unstealable
  177. format slot 12 of player with barrier named "&c禁止事項 2" with lore "&e過度な煽り行為" to be unstealable
  178. format slot 13 of player with barrier named "&c禁止事項 3" with lore "&e差別発言" to be unstealable
  179. format slot 14 of player with barrier named "&c禁止事項 4" with lore "&eチャットのSPAM行為" to be unstealable
  180. format slot 15 of player with barrier named "&c禁止事項 5" with lore "&e過度なコマンドSPAM" to be unstealable
  181. format slot 16 of player with black stained glass pane named " " to be unstealable
  182. format slot 17 of player with black stained glass pane named " " to be unstealable
  183. format slot 18 of player with black stained glass pane named " " to be unstealable
  184. format slot 19 of player with black stained glass pane named " " to be unstealable
  185. format slot 20 of player with barrier named "&c禁止事項 6" with lore "&e性的なスキン、またはMCID" to be unstealable
  186. format slot 21 of player with barrier named "&c禁止事項 7" with lore "&eゲームの進行を妨害する行為" to be unstealable
  187. format slot 22 of player with barrier named "&c禁止事項 8" with lore "&eゲーム内での利敵行為" to be unstealable
  188. format slot 23 of player with barrier named "&c禁止事項 9" with lore "&eForge以外の外部ツールの使用" to be unstealable
  189. format slot 24 of player with barrier named "&c禁止事項 10" with lore "&e軽量化MODや日本語MOD等、ゲームの有利不利に" and "&e影響を及ぼさないMOD以外の使用" to be unstealable
  190. format slot 25 of player with black stained glass pane named " " to be unstealable
  191. format slot 26 of player with black stained glass pane named " " to be unstealable
  192. format slot 27 of player with black stained glass pane named " " to be unstealable
  193. format slot 28 of player with black stained glass pane named " " to be unstealable
  194. format slot 29 of player with barrier named "&c禁止事項 11" with lore "&eあらゆる勧誘" to be unstealable
  195. format slot 30 of player with barrier named "&c禁止事項 12" with lore "&e有害なURLをチャットに貼る行為" to be unstealable
  196. format slot 31 of player with barrier named "&c禁止事項 13" with lore "&eブロックグリッチの使用" to be unstealable
  197. format slot 32 of player with barrier named "&c禁止事項 14" with lore "&e運営の言うことを聞かないこと" to be unstealable
  198. format slot 33 of player with barrier named "&c禁止事項 15" with lore "&eその他運営が不適切だと判断した行為" to be unstealable
  199. format slot 34 of player with black stained glass pane named " " to be unstealable
  200. format slot 35 of player with black stained glass pane named " " to be unstealable
  201. format slot 36 of player with black stained glass pane named " " to be unstealable
  202. format slot 37 of player with black stained glass pane named " " to be unstealable
  203. format slot 38 of player with black stained glass pane named " " to be unstealable
  204. format slot 39 of player with black stained glass pane named " " to be unstealable
  205. format slot 41 of player with black stained glass pane named " " to be unstealable
  206. format slot 41 of player with black stained glass pane named " " to be unstealable
  207. format slot 42 of player with black stained glass pane named " " to be unstealable
  208. format slot 43 of player with black stained glass pane named " " to be unstealable
  209. format slot 44 of player with black stained glass pane named " " to be unstealable
  210.  
  211. command /attention [<offline player>] [<integer>] [<text>] [<text>]:
  212. trigger:
  213. if arg 1 is not set:
  214. wait 5 ticks
  215. set {page.%uuid of player%} to 1
  216. open chest with 5 rows named "&4%player%の警告履歴" to player
  217. format slot 0 of player with red stained glass pane named " " to be unstealable
  218. format slot 1 of player with red stained glass pane named " " to be unstealable
  219. format slot 2 of player with red stained glass pane named " " to be unstealable
  220. format slot 3 of player with red stained glass pane named " " to be unstealable
  221. format slot 4 of player with book named "&e%{page.%uuid of player%}%ページ目" to be unstealable
  222. format slot 5 of player with red stained glass pane named " " to be unstealable
  223. format slot 6 of player with red stained glass pane named " " to be unstealable
  224. format slot 7 of player with red stained glass pane named " " to be unstealable
  225. format slot 8 of player with red stained glass pane named " " to be unstealable
  226. format slot 9 of player with red stained glass pane named " " to be unstealable
  227. format slot 17 of player with red stained glass pane named " " to be unstealable
  228. format slot 18 of player with red stained glass pane named " " to be unstealable
  229. format slot 26 of player with red stained glass pane named " " to be unstealable
  230. format slot 27 of player with red stained glass pane named " " to be unstealable
  231. format slot 35 of player with red stained glass pane named " " to be unstealable
  232. format slot 36 of player with red stained glass pane named " " to be unstealable
  233. format slot 37 of player with red stained glass pane named " " to be unstealable
  234. format slot 38 of player with red stained glass pane named " " to be unstealable
  235. format slot 39 of player with red stained glass pane named " " to be unstealable
  236. format slot 41 of player with red stained glass pane named " " to be unstealable
  237. format slot 42 of player with red stained glass pane named " " to be unstealable
  238. format slot 43 of player with red stained glass pane named " " to be unstealable
  239. format slot 44 of player with red stained glass pane named " " to be unstealable
  240. format slot 40 of player with skull of player named "&e&l&n%player%" with lore "&cスコア&a: &6%{attention-point.%uuid of player%}%" and "&c警告された回数&a: &6%{attention-count.%uuid of player%}%&c回" to be unstealable
  241. if {attention-count.%uuid of player%} is higher than 21:
  242. if {page.%uuid of player%} is higher than 1:
  243. format slot 36 of player with arrow named "&a前のページへ" to close then run [make player execute "/attention %player% 1"]
  244. if {attention-count.%uuid of player%} is higher than 42:
  245. if {page.%uuid of player%} is higher than 2:
  246. format slot 36 of player with arrow named "&a前のページへ" to close then run [make player execute "/attention %player% 2"]
  247. if {attention-count.%uuid of player%} is higher than 63:
  248. if {page.%uuid of player%} is higher than 3:
  249. format slot 36 of player with arrow named "&a前のページへ" to close then run [make player execute "/attention %player% 3"]
  250. if {attention-count.%uuid of player%} is higher than 84:
  251. if {page.%uuid of player%} is higher than 4:
  252. format slot 36 of player with arrow named "&a前のページへ" to close then run [make player execute "/attention %player% 4"]
  253. if {attention-count.%uuid of player%} is higher than 105:
  254. if {page.%uuid of player%} is higher than 5:
  255. format slot 36 of player with arrow named "&a前のページへ" to close then run [make player execute "/attention %player% 5"]
  256. if {attention-count.%uuid of player%} is higher than 126:
  257. if {page.%uuid of player%} is higher than 6:
  258. format slot 36 of player with arrow named "&a前のページへ" to close then run [make player execute "/attention %player% 6"]
  259. if {attention-count.%uuid of player%} is 0:
  260. format slot 22 of player with barrier named " " with lore "&cこのプレイヤーはあらゆる警告を" and "&c受けていません。" to be unstealable
  261. if {attention-count.%uuid of player%} is higher than 21:
  262. if {page.%uuid of player%} is higher than 0:
  263. if {page.%uuid of player%} is 2:
  264. format slot 44 of player with red stained glass pane named " " to be unstealable
  265. else:
  266. format slot 44 of player with arrow named "&a次のページへ" to close then run [make player execute "/attention %player% 2"]
  267. if {attention-count.%uuid of player%} is higher than 42:
  268. if {page.%uuid of player%} is higher than 1:
  269. if {page.%uuid of player%} is 3:
  270. format slot 44 of player with red stained glass pane named " " to be unstealable
  271. else:
  272. format slot 44 of player with arrow named "&a次のページへ" to close then run [make player execute "/attention %player% 3"]
  273. if {attention-count.%uuid of player%} is higher than 63:
  274. if {page.%uuid of player%} is higher than 2:
  275. if {page.%uuid of player%} is 4:
  276. format slot 44 of player with red stained glass pane named " " to be unstealable
  277. else:
  278. format slot 44 of player with arrow named "&a次のページへ" to close then run [make player execute "/attention %player% 4"]
  279. if {attention-count.%uuid of player%} is higher than 84:
  280. if {page.%uuid of player%} is higher than 3:
  281. if {page.%uuid of player%} is 5:
  282. format slot 44 of player with red stained glass pane named " " to be unstealable
  283. else:
  284. format slot 44 of player with arrow named "&a次のページへ" to close then run [make player execute "/attention %player% 5"]
  285. if {attention-count.%uuid of player%} is higher than 105:
  286. if {page.%uuid of player%} is higher than 4:
  287. if {page.%uuid of player%} is 6:
  288. format slot 44 of player with red stained glass pane named " " to be unstealable
  289. else:
  290. format slot 44 of player with arrow named "&a次のページへ" to close then run [make player execute "/attention %player% 6"]
  291. if {attention-count.%uuid of player%} is higher than 0:
  292. set {_integer} to 0
  293. if {attention-count.%uuid of player%} is smaller than 21:
  294. loop {attention-count.%uuid of player%} times:
  295. add 1 to {_integer}
  296. if {_integer} is 1:
  297. set {_format-slot} to 10
  298. if {_integer} is 2:
  299. set {_format-slot} to 11
  300. if {_integer} is 3:
  301. set {_format-slot} to 12
  302. if {_integer} is 4:
  303. set {_format-slot} to 13
  304. if {_integer} is 5:
  305. set {_format-slot} to 14
  306. if {_integer} is 6:
  307. set {_format-slot} to 15
  308. if {_integer} is 7:
  309. set {_format-slot} to 16
  310. if {_integer} is 8:
  311. set {_format-slot} to 19
  312. if {_integer} is 9:
  313. set {_format-slot} to 20
  314. if {_integer} is 10:
  315. set {_format-slot} to 21
  316. if {_integer} is 11:
  317. set {_format-slot} to 22
  318. if {_integer} is 12:
  319. set {_format-slot} to 23
  320. if {_integer} is 13:
  321. set {_format-slot} to 24
  322. if {_integer} is 14:
  323. set {_format-slot} to 25
  324. if {_integer} is 15:
  325. set {_format-slot} to 28
  326. if {_integer} is 16:
  327. set {_format-slot} to 29
  328. if {_integer} is 17:
  329. set {_format-slot} to 30
  330. if {_integer} is 18:
  331. set {_format-slot} to 31
  332. if {_integer} is 19:
  333. set {_format-slot} to 32
  334. if {_integer} is 20:
  335. set {_format-slot} to 33
  336. if {_integer} is 21:
  337. set {_format-slot} to 34
  338. if {attention-log-reason-2-%{_integer}%.%uuid of arg 1%} is not set:
  339. format slot {_format-slot} of player with paper named "&c%{_integer}%回目の警告" with lore "&c理由&a: &e%{attention-log-reason-1-%{_integer}%.%uuid of player%}%", "&cスコア&a: &6%{attention-log-point-1-%{_integer}%.%uuid of player%}% &e-> &6%{attention-log-point-2-%{_integer}%.%uuid of player%}%" and "&c実行者&a: %{attention-log-executor-%{_integer}%.%uuid of player%}%" to be unstealable
  340. if {attention-log-reason-2-%{_integer}%.%uuid of arg 1%} is set:
  341. format slot {_format-slot} of player with paper named "&c%{_integer}%回目の警告" with lore "&c理由&a: &e%{attention-log-reason-1-%{_integer}%.%uuid of player%}%", "&e %{attention-log-reason-2-%{_integer}%.%uuid of player%}%", "&cスコア&a: &6%{attention-log-point-1-%{_integer}%.%uuid of player%}% &e-> &6%{attention-log-point-2-%{_integer}%.%uuid of player%}%" and "&c実行者&a: %{attention-log-executor-%{_integer}%.%uuid of player%}%" to be unstealable
  342. stop
  343. else:
  344. loop 21 times:
  345. add 1 to {_integer}
  346. if {_integer} is 1:
  347. set {_format-slot} to 10
  348. if {_integer} is 2:
  349. set {_format-slot} to 11
  350. if {_integer} is 3:
  351. set {_format-slot} to 12
  352. if {_integer} is 4:
  353. set {_format-slot} to 13
  354. if {_integer} is 5:
  355. set {_format-slot} to 14
  356. if {_integer} is 6:
  357. set {_format-slot} to 15
  358. if {_integer} is 7:
  359. set {_format-slot} to 16
  360. if {_integer} is 8:
  361. set {_format-slot} to 19
  362. if {_integer} is 9:
  363. set {_format-slot} to 20
  364. if {_integer} is 10:
  365. set {_format-slot} to 21
  366. if {_integer} is 11:
  367. set {_format-slot} to 22
  368. if {_integer} is 12:
  369. set {_format-slot} to 23
  370. if {_integer} is 13:
  371. set {_format-slot} to 24
  372. if {_integer} is 14:
  373. set {_format-slot} to 25
  374. if {_integer} is 15:
  375. set {_format-slot} to 28
  376. if {_integer} is 16:
  377. set {_format-slot} to 29
  378. if {_integer} is 17:
  379. set {_format-slot} to 30
  380. if {_integer} is 18:
  381. set {_format-slot} to 31
  382. if {_integer} is 19:
  383. set {_format-slot} to 32
  384. if {_integer} is 20:
  385. set {_format-slot} to 33
  386. if {_integer} is 21:
  387. set {_format-slot} to 34
  388. if {attention-log-reason-2-%{_integer}%.%uuid of arg 1%} is not set:
  389. format slot {_format-slot} of player with paper named "&c%{_integer}%回目の警告" with lore "&c理由&a: &e%{attention-log-reason-1-%{_integer}%.%uuid of player%}%", "&cスコア&a: &6%{attention-log-point-1-%{_integer}%.%uuid of player%}% &e-> &6%{attention-log-point-2-%{_integer}%.%uuid of player%}%" and "&c実行者&a: %{attention-log-executor-%{_integer}%.%uuid of player%}%" to be unstealable
  390. if {attention-log-reason-2-%{_integer}%.%uuid of arg 1%} is set:
  391. format slot {_format-slot} of player with paper named "&c%{_integer}%回目の警告" with lore "&c理由&a: &e%{attention-log-reason-1-%{_integer}%.%uuid of player%}%", "&e %{attention-log-reason-2-%{_integer}%.%uuid of player%}%", "&cスコア&a: &6%{attention-log-point-1-%{_integer}%.%uuid of player%}% &e-> &6%{attention-log-point-2-%{_integer}%.%uuid of player%}%" and "&c実行者&a: %{attention-log-executor-%{_integer}%.%uuid of player%}%" to be unstealable
  392. stop
  393. if arg 1 is set:
  394. loop {uuid::*}:
  395. if loop-value is uuid of arg 1:
  396. if arg 2 is not set:
  397. wait 5 ticks
  398. set {page.%uuid of player%} to 1
  399. open chest with 5 rows named "&4%arg 1%の警告履歴" to player
  400. format slot 0 of player with red stained glass pane named " " to be unstealable
  401. format slot 1 of player with red stained glass pane named " " to be unstealable
  402. format slot 2 of player with red stained glass pane named " " to be unstealable
  403. format slot 3 of player with red stained glass pane named " " to be unstealable
  404. format slot 4 of player with book named "&e%{page.%uuid of player%}%ページ目" to be unstealable
  405. format slot 5 of player with red stained glass pane named " " to be unstealable
  406. format slot 6 of player with red stained glass pane named " " to be unstealable
  407. format slot 7 of player with red stained glass pane named " " to be unstealable
  408. format slot 8 of player with red stained glass pane named " " to be unstealable
  409. format slot 9 of player with red stained glass pane named " " to be unstealable
  410. format slot 17 of player with red stained glass pane named " " to be unstealable
  411. format slot 18 of player with red stained glass pane named " " to be unstealable
  412. format slot 26 of player with red stained glass pane named " " to be unstealable
  413. format slot 27 of player with red stained glass pane named " " to be unstealable
  414. format slot 35 of player with red stained glass pane named " " to be unstealable
  415. format slot 36 of player with red stained glass pane named " " to be unstealable
  416. format slot 37 of player with red stained glass pane named " " to be unstealable
  417. format slot 38 of player with red stained glass pane named " " to be unstealable
  418. format slot 39 of player with red stained glass pane named " " to be unstealable
  419. format slot 41 of player with red stained glass pane named " " to be unstealable
  420. format slot 42 of player with red stained glass pane named " " to be unstealable
  421. format slot 43 of player with red stained glass pane named " " to be unstealable
  422. format slot 44 of player with red stained glass pane named " " to be unstealable
  423. format slot 40 of player with skull of arg 1 named "&e&l&n%arg 1%" with lore "&cスコア&a: &6%{attention-point.%uuid of arg 1%}%" and "&c警告された回数&a: &6%{attention-count.%uuid of arg 1%}%&c回" to be unstealable
  424. if {attention-count.%uuid of arg 1%} is higher than 21:
  425. if {page.%uuid of player%} is higher than 1:
  426. format slot 36 of player with arrow named "&a前のページへ" to close then run [make player execute "/attention %arg 1% 1"]
  427. if {attention-count.%uuid of arg 1%} is higher than 42:
  428. if {page.%uuid of player%} is higher than 2:
  429. format slot 36 of player with arrow named "&a前のページへ" to close then run [make player execute "/attention %arg 1% 2"]
  430. if {attention-count.%uuid of arg 1%} is higher than 63:
  431. if {page.%uuid of player%} is higher than 3:
  432. format slot 36 of player with arrow named "&a前のページへ" to close then run [make player execute "/attention %arg 1% 3"]
  433. if {attention-count.%uuid of arg 1%} is higher than 84:
  434. if {page.%uuid of player%} is higher than 4:
  435. format slot 36 of player with arrow named "&a前のページへ" to close then run [make player execute "/attention %arg 1% 4"]
  436. if {attention-count.%uuid of arg 1%} is higher than 105:
  437. if {page.%uuid of player%} is higher than 5:
  438. format slot 36 of player with arrow named "&a前のページへ" to close then run [make player execute "/attention %arg 1% 5"]
  439. if {attention-count.%uuid of arg 1%} is higher than 126:
  440. if {page.%uuid of player%} is higher than 6:
  441. format slot 36 of player with arrow named "&a前のページへ" to close then run [make player execute "/attention %arg 1% 6"]
  442. if {attention-count.%uuid of arg 1%} is higher than 21:
  443. if {page.%uuid of player%} is higher than 0:
  444. if {page.%uuid of player%} is 2:
  445. format slot 44 of player with red stained glass pane named " " to be unstealable
  446. else:
  447. format slot 44 of player with arrow named "&a次のページへ" to close then run [make player execute "/attention %arg 1% 2"]
  448. if {attention-count.%uuid of arg 1%} is higher than 42:
  449. if {page.%uuid of player%} is higher than 1:
  450. if {page.%uuid of player%} is 3:
  451. format slot 44 of player with red stained glass pane named " " to be unstealable
  452. else:
  453. format slot 44 of player with arrow named "&a次のページへ" to close then run [make player execute "/attention %arg 1% 3"]
  454. if {attention-count.%uuid of arg 1%} is higher than 63:
  455. if {page.%uuid of player%} is higher than 2:
  456. if {page.%uuid of player%} is 4:
  457. format slot 44 of player with red stained glass pane named " " to be unstealable
  458. else:
  459. format slot 44 of player with arrow named "&a次のページへ" to close then run [make player execute "/attention %arg 1% 4"]
  460. if {attention-count.%uuid of arg 1%} is higher than 84:
  461. if {page.%uuid of player%} is higher than 3:
  462. if {page.%uuid of player%} is 5:
  463. format slot 44 of player with red stained glass pane named " " to be unstealable
  464. else:
  465. format slot 44 of player with arrow named "&a次のページへ" to close then run [make player execute "/attention %arg 1% 5"]
  466. if {attention-count.%uuid of arg 1%} is higher than 105:
  467. if {page.%uuid of player%} is higher than 4:
  468. if {page.%uuid of player%} is 6:
  469. format slot 44 of player with red stained glass pane named " " to be unstealable
  470. else:
  471. format slot 44 of player with arrow named "&a次のページへ" to close then run [make player execute "/attention %arg 1% 6"]
  472. if {attention-count.%uuid of arg 1%} is 0:
  473. format slot 22 of player with barrier named " " with lore "&cこのプレイヤーはあらゆる警告を" and "&c受けていません。" to be unstealable
  474. if {attention-count.%uuid of arg 1%} is higher than 0:
  475. set {_integer} to 0
  476. if {attention-count.%uuid of arg 1%} is smaller than 21:
  477. loop {attention-count.%uuid of arg 1%} times:
  478. add 1 to {_integer}
  479. if {_integer} is 1:
  480. set {_format-slot} to 10
  481. if {_integer} is 2:
  482. set {_format-slot} to 11
  483. if {_integer} is 3:
  484. set {_format-slot} to 12
  485. if {_integer} is 4:
  486. set {_format-slot} to 13
  487. if {_integer} is 5:
  488. set {_format-slot} to 14
  489. if {_integer} is 6:
  490. set {_format-slot} to 15
  491. if {_integer} is 7:
  492. set {_format-slot} to 16
  493. if {_integer} is 8:
  494. set {_format-slot} to 19
  495. if {_integer} is 9:
  496. set {_format-slot} to 20
  497. if {_integer} is 10:
  498. set {_format-slot} to 21
  499. if {_integer} is 11:
  500. set {_format-slot} to 22
  501. if {_integer} is 12:
  502. set {_format-slot} to 23
  503. if {_integer} is 13:
  504. set {_format-slot} to 24
  505. if {_integer} is 14:
  506. set {_format-slot} to 25
  507. if {_integer} is 15:
  508. set {_format-slot} to 28
  509. if {_integer} is 16:
  510. set {_format-slot} to 29
  511. if {_integer} is 17:
  512. set {_format-slot} to 30
  513. if {_integer} is 18:
  514. set {_format-slot} to 31
  515. if {_integer} is 19:
  516. set {_format-slot} to 32
  517. if {_integer} is 20:
  518. set {_format-slot} to 33
  519. if {_integer} is 21:
  520. set {_format-slot} to 34
  521. if {attention-log-reason-2-%{_integer}%.%uuid of arg 1%} is not set:
  522. format slot {_format-slot} of player with paper named "&c%{_integer}%回目の警告" with lore "&c理由&a: &e%{attention-log-reason-1-%{_integer}%.%uuid of arg 1%}%", "&cスコア&a: &6%{attention-log-point-1-%{_integer}%.%uuid of arg 1%}% &e-> &6%{attention-log-point-2-%{_integer}%.%uuid of arg 1%}%" and "&c実行者&a: %{attention-log-executor-%{_integer}%.%uuid of arg 1%}%" to be unstealable
  523. if {attention-log-reason-2-%{_integer}%.%uuid of arg 1%} is set:
  524. format slot {_format-slot} of player with paper named "&c%{_integer}%回目の警告" with lore "&c理由&a: &e%{attention-log-reason-1-%{_integer}%.%uuid of arg 1%}%", "&e %{attention-log-reason-2-%{_integer}%.%uuid of arg 1%}%", "&cスコア&a: &6%{attention-log-point-1-%{_integer}%.%uuid of arg 1%}% &e-> &6%{attention-log-point-2-%{_integer}%.%uuid of arg 1%}%" and "&c実行者&a: %{attention-log-executor-%{_integer}%.%uuid of arg 1%}%" to be unstealable
  525. stop
  526. else:
  527. loop 21 times:
  528. add 1 to {_integer}
  529. if {_integer} is 1:
  530. set {_format-slot} to 10
  531. if {_integer} is 2:
  532. set {_format-slot} to 11
  533. if {_integer} is 3:
  534. set {_format-slot} to 12
  535. if {_integer} is 4:
  536. set {_format-slot} to 13
  537. if {_integer} is 5:
  538. set {_format-slot} to 14
  539. if {_integer} is 6:
  540. set {_format-slot} to 15
  541. if {_integer} is 7:
  542. set {_format-slot} to 16
  543. if {_integer} is 8:
  544. set {_format-slot} to 19
  545. if {_integer} is 9:
  546. set {_format-slot} to 20
  547. if {_integer} is 10:
  548. set {_format-slot} to 21
  549. if {_integer} is 11:
  550. set {_format-slot} to 22
  551. if {_integer} is 12:
  552. set {_format-slot} to 23
  553. if {_integer} is 13:
  554. set {_format-slot} to 24
  555. if {_integer} is 14:
  556. set {_format-slot} to 25
  557. if {_integer} is 15:
  558. set {_format-slot} to 28
  559. if {_integer} is 16:
  560. set {_format-slot} to 29
  561. if {_integer} is 17:
  562. set {_format-slot} to 30
  563. if {_integer} is 18:
  564. set {_format-slot} to 31
  565. if {_integer} is 19:
  566. set {_format-slot} to 32
  567. if {_integer} is 20:
  568. set {_format-slot} to 33
  569. if {_integer} is 21:
  570. set {_format-slot} to 34
  571. if {attention-log-reason-2-%{_integer}%.%uuid of arg 1%} is not set:
  572. format slot {_format-slot} of player with paper named "&c%{_integer}%回目の警告" with lore "&c理由&a: &e%{attention-log-reason-1-%{_integer}%.%uuid of arg 1%}%", "&cスコア&a: &6%{attention-log-point-1-%{_integer}%.%uuid of arg 1%}% &e-> &6%{attention-log-point-2-%{_integer}%.%uuid of arg 1%}%" and "&c実行者&a: %{attention-log-executor-%{_integer}%.%uuid of arg 1%}%" to be unstealable
  573. if {attention-log-reason-2-%{_integer}%.%uuid of arg 1%} is set:
  574. format slot {_format-slot} of player with paper named "&c%{_integer}%回目の警告" with lore "&c理由&a: &e%{attention-log-reason-1-%{_integer}%.%uuid of arg 1%}%", "&e %{attention-log-reason-2-%{_integer}%.%uuid of arg 1%}%", "&cスコア&a: &6%{attention-log-point-1-%{_integer}%.%uuid of arg 1%}% &e-> &6%{attention-log-point-2-%{_integer}%.%uuid of arg 1%}%" and "&c実行者&a: %{attention-log-executor-%{_integer}%.%uuid of arg 1%}%" to be unstealable
  575. stop
  576. if arg 2 is set:
  577. if arg 2 is between 1 and 100:
  578. if arg 3 is not set:
  579. set {_integer} to 21*arg 2
  580. set {_integer} to {_integer}-20
  581. if {attention-count.%uuid of arg 1%} is smaller than {_integer}:
  582. send "{@a} &c%arg 1%の%arg 2%ページ目の警告履歴が見つかりませんでした。"
  583. stop
  584. else:
  585. wait 5 ticks
  586. set {page.%uuid of player%} to arg 2
  587. open chest with 5 rows named "&4%arg 1%の警告履歴" to player
  588. format slot 0 of player with red stained glass pane named " " to be unstealable
  589. format slot 1 of player with red stained glass pane named " " to be unstealable
  590. format slot 2 of player with red stained glass pane named " " to be unstealable
  591. format slot 3 of player with red stained glass pane named " " to be unstealable
  592. format slot 4 of player with book named "&e%{page.%uuid of player%}%ページ目" to be unstealable
  593. format slot 5 of player with red stained glass pane named " " to be unstealable
  594. format slot 6 of player with red stained glass pane named " " to be unstealable
  595. format slot 7 of player with red stained glass pane named " " to be unstealable
  596. format slot 8 of player with red stained glass pane named " " to be unstealable
  597. format slot 9 of player with red stained glass pane named " " to be unstealable
  598. format slot 17 of player with red stained glass pane named " " to be unstealable
  599. format slot 18 of player with red stained glass pane named " " to be unstealable
  600. format slot 26 of player with red stained glass pane named " " to be unstealable
  601. format slot 27 of player with red stained glass pane named " " to be unstealable
  602. format slot 35 of player with red stained glass pane named " " to be unstealable
  603. format slot 36 of player with red stained glass pane named " " to be unstealable
  604. format slot 37 of player with red stained glass pane named " " to be unstealable
  605. format slot 38 of player with red stained glass pane named " " to be unstealable
  606. format slot 39 of player with red stained glass pane named " " to be unstealable
  607. format slot 41 of player with red stained glass pane named " " to be unstealable
  608. format slot 42 of player with red stained glass pane named " " to be unstealable
  609. format slot 43 of player with red stained glass pane named " " to be unstealable
  610. format slot 44 of player with red stained glass pane named " " to be unstealable
  611. format slot 40 of player with skull of arg 1 named "&e&l&n%arg 1%" with lore "&cスコア&a: &6%{attention-point.%uuid of arg 1%}%" and "&c警告された回数&a: &6%{attention-count.%uuid of arg 1%}%&c回" to be unstealable
  612. if {attention-count.%uuid of arg 1%} is higher than 21:
  613. if {page.%uuid of player%} is higher than 1:
  614. format slot 36 of player with arrow named "&a前のページへ" to close then run [make player execute "/attention %arg 1% 1"]
  615. if {attention-count.%uuid of arg 1%} is higher than 42:
  616. if {page.%uuid of player%} is higher than 2:
  617. format slot 36 of player with arrow named "&a前のページへ" to close then run [make player execute "/attention %arg 1% 2"]
  618. if {attention-count.%uuid of arg 1%} is higher than 63:
  619. if {page.%uuid of player%} is higher than 3:
  620. format slot 36 of player with arrow named "&a前のページへ" to close then run [make player execute "/attention %arg 1% 3"]
  621. if {attention-count.%uuid of arg 1%} is higher than 84:
  622. if {page.%uuid of player%} is higher than 4:
  623. format slot 36 of player with arrow named "&a前のページへ" to close then run [make player execute "/attention %arg 1% 4"]
  624. if {attention-count.%uuid of arg 1%} is higher than 105:
  625. if {page.%uuid of player%} is higher than 5:
  626. format slot 36 of player with arrow named "&a前のページへ" to close then run [make player execute "/attention %arg 1% 5"]
  627. if {attention-count.%uuid of arg 1%} is higher than 126:
  628. if {page.%uuid of player%} is higher than 6:
  629. format slot 36 of player with arrow named "&a前のページへ" to close then run [make player execute "/attention %arg 1% 6"]
  630. if {attention-count.%uuid of arg 1%} is higher than 21:
  631. if {page.%uuid of player%} is higher than 0:
  632. if {page.%uuid of player%} is 2:
  633. format slot 44 of player with red stained glass pane named " " to be unstealable
  634. else:
  635. format slot 44 of player with arrow named "&a次のページへ" to close then run [make player execute "/attention %arg 1% 2"]
  636. if {attention-count.%uuid of arg 1%} is higher than 42:
  637. if {page.%uuid of player%} is higher than 1:
  638. if {page.%uuid of player%} is 3:
  639. format slot 44 of player with red stained glass pane named " " to be unstealable
  640. else:
  641. format slot 44 of player with arrow named "&a次のページへ" to close then run [make player execute "/attention %arg 1% 3"]
  642. if {attention-count.%uuid of arg 1%} is higher than 63:
  643. if {page.%uuid of player%} is higher than 2:
  644. if {page.%uuid of player%} is 4:
  645. format slot 44 of player with red stained glass pane named " " to be unstealable
  646. else:
  647. format slot 44 of player with arrow named "&a次のページへ" to close then run [make player execute "/attention %arg 1% 4"]
  648. if {attention-count.%uuid of arg 1%} is higher than 84:
  649. if {page.%uuid of player%} is higher than 3:
  650. if {page.%uuid of player%} is 5:
  651. format slot 44 of player with red stained glass pane named " " to be unstealable
  652. else:
  653. format slot 44 of player with arrow named "&a次のページへ" to close then run [make player execute "/attention %arg 1% 5"]
  654. if {attention-count.%uuid of arg 1%} is higher than 105:
  655. if {page.%uuid of player%} is higher than 4:
  656. if {page.%uuid of player%} is 6:
  657. format slot 44 of player with red stained glass pane named " " to be unstealable
  658. else:
  659. format slot 44 of player with arrow named "&a次のページへ" to close then run [make player execute "/attention %arg 1% 6"]
  660. if {attention-count.%uuid of arg 1%} is 0:
  661. format slot 22 of player with barrier named " " with lore "&cこのプレイヤーはあらゆる警告を" and "&c受けていません。" to be unstealable
  662. set {_integer1} to {attention-count.%uuid of arg 1%}
  663. set {_integer2} to {_integer}-1
  664. set {_integer3} to 0
  665. set {_test} to true
  666. while {_test} is true:
  667. add 1 to {_integer2}
  668. add 1 to {_integer3}
  669. if {_integer3} is 1:
  670. set {_format-slot} to 10
  671. if {_integer3} is 2:
  672. set {_format-slot} to 11
  673. if {_integer3} is 3:
  674. set {_format-slot} to 12
  675. if {_integer3} is 4:
  676. set {_format-slot} to 13
  677. if {_integer3} is 5:
  678. set {_format-slot} to 14
  679. if {_integer3} is 6:
  680. set {_format-slot} to 15
  681. if {_integer3} is 7:
  682. set {_format-slot} to 16
  683. if {_integer3} is 8:
  684. set {_format-slot} to 19
  685. if {_integer3} is 9:
  686. set {_format-slot} to 20
  687. if {_integer3} is 10:
  688. set {_format-slot} to 21
  689. if {_integer3} is 11:
  690. set {_format-slot} to 22
  691. if {_integer3} is 12:
  692. set {_format-slot} to 23
  693. if {_integer3} is 13:
  694. set {_format-slot} to 24
  695. if {_integer3} is 14:
  696. set {_format-slot} to 25
  697. if {_integer3} is 15:
  698. set {_format-slot} to 28
  699. if {_integer3} is 16:
  700. set {_format-slot} to 29
  701. if {_integer3} is 17:
  702. set {_format-slot} to 30
  703. if {_integer3} is 18:
  704. set {_format-slot} to 31
  705. if {_integer3} is 19:
  706. set {_format-slot} to 32
  707. if {_integer3} is 20:
  708. set {_format-slot} to 33
  709. if {_integer3} is 21:
  710. set {_format-slot} to 34
  711. if {_integer2} is {attention-count.%uuid of arg 1%}:
  712. stop
  713. if {_integer3} is higher than 21:
  714. stop
  715. if {attention-log-reason-2-%{_integer2}%.%uuid of arg 1%} is not set:
  716. format slot {_format-slot} of player with paper named "&c%{_integer2}%回目の警告" with lore "&c理由&a: &e%{attention-log-reason-1-%{_integer2}%.%uuid of arg 1%}%", "&cスコア&a: &6%{attention-log-point-1-%{_integer2}%.%uuid of arg 1%}% &e-> &6%{attention-log-point-2-%{_integer2}%.%uuid of arg 1%}%" and "&c実行者&a: %{attention-log-executor-%{_integer2}%.%uuid of arg 1%}%" to be unstealable
  717. if {attention-log-reason-2-%{_integer2}%.%uuid of arg 1%} is set:
  718. format slot {_format-slot} of player with paper named "&c%{_integer2}%回目の警告" with lore "&c理由&a: &e%{attention-log-reason-1-%{_integer2}%.%uuid of arg 1%}%", "&e %{attention-log-reason-2-%{_integer2}%.%uuid of arg 1%}%", "&cスコア&a: &6%{attention-log-point-1-%{_integer2}%.%uuid of arg 1%}% &e-> &6%{attention-log-point-2-%{_integer2}%.%uuid of arg 1%}%" and "&c実行者&a: %{attention-log-executor-%{_integer2}%.%uuid of arg 1%}%" to be unstealable
  719. stop
  720. if arg 3 is set:
  721. if player is not an op:
  722. send "{@a} &c権限がありません。"
  723. if player is an op:
  724. if {attention-log-number.%uuid of arg 1%} is set:
  725. add 1 to {attention-log-number.%uuid of arg 1%}
  726. if {attention-log-number.%uuid of arg 1%} is not set:
  727. set {attention-log-number.%uuid of arg 1%} to 1
  728. set {attention-log-executor-%{attention-log-number.%uuid of arg 1%}%.%uuid of arg 1%} to player
  729. set {attention-log-point-1-%{attention-log-number.%uuid of arg 1%}%.%uuid of arg 1%} to {attention-point.%uuid of arg 1%}
  730. set {attention-log-point-2-%{attention-log-number.%uuid of arg 1%}%.%uuid of arg 1%} to {attention-point.%uuid of arg 1%}-arg 2
  731. set {attention-point.%uuid of arg 1%} to {attention-log-point-2-%{attention-log-number.%uuid of arg 1%}%.%uuid of arg 1%}
  732. set {attention-log-reason-1-%{attention-log-number.%uuid of arg 1%}%.%uuid of arg 1%} to arg 3
  733. if arg 4 is set:
  734. set {attention-log-reason-2-%{attention-log-number.%uuid of arg 1%}%.%uuid of arg 1%} to arg 4
  735. add 1 to {attention-count.%uuid of arg 1%}
  736. broadcast "{@a} &4====================[&e&lAttention&r&4]===================="
  737. broadcast "{@a} &6%arg 1%&cさんがAdminから警告を受けました。"
  738. broadcast "{@a} &c理由&a: &e%arg 3%"
  739. if arg 4 is set:
  740. broadcast "{@a} &c &e%arg 4%"
  741. if {attention-point.%uuid of arg 1%} is higher than 0:
  742. broadcast "{@a} &cスコア&a: &6%{attention-log-point-1-%{attention-log-number.%uuid of arg 1%}%.%uuid of arg 1%}% &e-> &6%{attention-log-point-2-%{attention-log-number.%uuid of arg 1%}%.%uuid of arg 1%}%"
  743. else:
  744. broadcast "{@a} &cスコア&a: &6%{attention-log-point-1-%{attention-log-number.%uuid of arg 1%}%.%uuid of arg 1%}% &e-> &40"
  745. broadcast "{@a} &c実行者&a: &6%player%"
  746. if {attention-point.%uuid of arg 1%} is higher than 0:
  747. broadcast "{@a} &4スコアが0になるとサーバーからBANされます。"
  748. broadcast "{@a} &4====================[&e&lAttention&r&4]===================="
  749. if {attention-point.%uuid of arg 1%} is smaller than 1:
  750. broadcast "{@a} &4&l%arg 1%のスコアが0になったため、BANされました。"
  751. make console execute command "/ban %arg 1% 貴方のスコアは0になったためBANされました。"
  752. loop all players:
  753. play sound "entity.enderdragon.growl" with volume 100 and pitch 1 at loop-player for loop-player
  754. loop all players:
  755. play sound "entity.villager.death" with volume 100 and pitch 0 at loop-player for loop-player
  756. play sound "entity.blaze.death" with volume 100 and pitch 0 at loop-player for loop-player
  757. make console execute command "/particle cloud %x-coordinate of arg 1% %y-coordinate of arg 1% %z-coordinate of arg 1% 0 0 0 0.5 200"
  758. stop
  759. else:
  760. if arg 2 is 99999:
  761. delete {attention-log-number.%uuid of arg 1%}
  762. loop {attention-count.%uuid of arg 1%} times:
  763. delete {attention-log-point-1-%{attention-count.%uuid of arg 1%}%.%uuid of arg 1%}
  764. delete {attention-log-point-2-%{attention-count.%uuid of arg 1%}%.%uuid of arg 1%}
  765. delete {attention-log-reason-1-%{attention-count.%uuid of arg 1%}%.%uuid of arg 1%}
  766. delete {attention-log-reason-2-%{attention-count.%uuid of arg 1%}%.%uuid of arg 1%}
  767. delete {attention-log-executor-%{attention-count.%uuid of arg 1%}%.%uuid of arg 1%}
  768. remove 1 from {attention-count.%uuid of arg 1%}
  769. set {attention-count.%uuid of arg 1%} to 0
  770. set {attention-point.%uuid of arg 1%} to 100
  771. send "{@a} &a%arg 1%をリセットしました。"
  772. stop
  773. else:
  774. send "{@a} &c1から100の数字を指定してください。"
  775. stop
  776. send "{@a} &cそのプレイヤーはこのサーバーにログインしたことがありません。"
  777. stop
  778.  
  779. command /co [<text>]:
  780. trigger:
  781. if arg 1 is not set:
  782. send "&6--------------------[&bCOコマンドリスト&6]--------------------"
  783.  
  784. on command "/help":
  785. cancel event
  786. send "&e--------- &fHelp: Index (1/1) &e--------------------"
  787. send "&7Use /help [n] to get page n of help."
  788. send "&6mocchi_0: &fAll commands for mocchi_0"
  789. send "&6Futaba_Nyan: &fAll commands for Futaba_Nyan"
  790.  
  791. command /jc [<text>]:
  792. trigger:
  793. if {yakusyoku.%player%} is "jinnrou":
  794. if arg 1 is not set:
  795. send "{@j} &c/jc [message] で、人狼にだけ見えるチャットを送信することができます。"
  796. if arg 1 is set:
  797. if {died.%player%} is true:
  798. send "{@j} 既に死んでいる為使用できません。"
  799. else:
  800. loop all players:
  801. if {yakusyoku.%loop-player%} is "jinnrou" or "sasayakukyouzinn":
  802. send "{@g}&4[人狼チャット]&c%player%&a: &f%arg-1%" to loop-player
  803. if {yakusyoku.%loop-player%} is not set:
  804. send "{@g}&4[人狼チャット]&c%player%&a: &f%arg-1%" to loop-player
  805. if {yakusyoku.%loop-player%} is "murabito", "yogennsya", "reibaisi", "kariudo", "kyousinnzya", "youko" or "kyouzinn":
  806. if {died.%loop-player%} is true:
  807. send "{@g}&4[人狼チャット]&c%player%&a: &f%arg-1%" to loop-player
  808. else:
  809. send "{@j} &c使用できません。"
  810.  
  811. command /rank [<offline player>] [<text>]:
  812. trigger:
  813. send "{@j} &c未実装のコマンドです。"
  814.  
  815. on command "/message":
  816. if {timer} is true:
  817. cancel event
  818. send "&c試合中はそのコマンドを使用できません。"
  819.  
  820. on command "//calc":
  821. cancel event
  822. send "&cそのコマンドは許可されていません。"
  823.  
  824. on command "/lc":
  825. cancel event
  826. send "&cそのコマンドは許可されていません。"
  827.  
  828. on command "/lunachat":
  829. cancel event
  830. send "&cそのコマンドは許可されていません。"
  831.  
  832. on command "/ch":
  833. cancel event
  834. send "&cそのコマンドは許可されていません。"
  835.  
  836. on command "/tell":
  837. if {timer} is true:
  838. cancel event
  839. send "&c試合中はそのコマンドを使用できません。"
  840.  
  841. on command "/t":
  842. if {timer} is true:
  843. cancel event
  844. send "&c試合中はそのコマンドを使用できません。"
  845.  
  846. on command "/msg":
  847. if {timer} is true:
  848. cancel event
  849. send "&c試合中はそのコマンドを使用できません。"
  850.  
  851. on command "/m":
  852. if {timer} is true:
  853. cancel event
  854. send "&c試合中はそのコマンドを使用できません。"
  855.  
  856. on command "/w":
  857. if {timer} is true:
  858. cancel event
  859. send "&c試合中はそのコマンドを使用できません。"
  860.  
  861. on command "/me":
  862. cancel event
  863. send "&cそのコマンドは許可されていません。"
  864.  
  865. on command "/pl":
  866. cancel event
  867. send "Plugins (2): &aFutaba_Nyan&f, &amocchi_0"
  868.  
  869. on command "/plugins":
  870. cancel event
  871. send "Plugins (2): &aFutaba_Nyan&f, &amocchi_0"
  872.  
  873. on explode:
  874. cancel event
  875.  
  876. on bed enter:
  877. cancel event
  878.  
  879. on rightclick on chest:
  880. {yakusyoku.%player%} is set
  881. cancel event
  882.  
  883. on rightclick on furnace:
  884. {yakusyoku.%player%} is set
  885. cancel event
  886.  
  887. on book edit:
  888. player is not an op
  889. cancel event
  890.  
  891. on book sign:
  892. player is not an op
  893. cancel event
  894.  
  895. on break:
  896. if player is not an op:
  897. cancel event
  898. if player is an op:
  899. if player's gamemode is survival:
  900. cancel event
  901.  
  902. on bucket empty:
  903. player is not an op
  904. cancel event
  905.  
  906. on bucket fill:
  907. player is not an op
  908. cancel event
  909.  
  910. on craft:
  911. player is not an op
  912. cancel event
  913.  
  914. on player drop:
  915. player is not an op
  916. cancel event
  917.  
  918. on sheep eat:
  919. cancel event
  920.  
  921. on rightclick on furnace:
  922. if {yakusyoku.%player%} is set:
  923. cancel event
  924.  
  925. on rightclick on anvil:
  926. if {yakusyoku.%player%} is set:
  927. cancel event
  928.  
  929. on experience spawn:
  930. cancel event
  931.  
  932. on lightning strike:
  933. cancel event
  934.  
  935. on place:
  936. player is not an op
  937. cancel event
  938.  
  939. on rightclick on white shulker box:
  940. cancel event
  941.  
  942. command /discord:
  943. trigger:
  944. make console execute command "/tellraw %player% ["""",{""text"":""[Discord] "",""color"":""aqua""},{""text"":""https://discord.gg/hZaH4PP"",""bold"":true,""color"":""yellow"",""clickEvent"":{""action"":""open_url"",""value"":""https://discord.gg/hZaH4PP""},""hoverEvent"":{""action"":""show_text"",""value"":""\u3053\u3053\u3092\u30af\u30ea\u30c3\u30af\uff01""}}]"
  945.  
  946. command /broadcast [<text>]:
  947. trigger:
  948. if player is not an op:
  949. send "&c権限がありません。"
  950. if player is an op:
  951. if arg 1 is not set:
  952. send "&c内容が含まれていません。"
  953. if arg 1 is set:
  954. broadcast "&a|&bBROADCAST&a| &e&l%arg 1%"
  955.  
  956. on death:
  957. if {timer} is true:
  958. loop all players:
  959. if {yakusyoku.%loop-player%} is not set:
  960. victim is a player
  961. damager is a player
  962. send "{@j} &4%victim%が%damager%に殺されました。" to loop-player
  963. if {yakusyoku.%loop-player%} is not set:
  964. if {died.%loop-player%} is true:
  965. send "{@j} &4%victim%が%damager%に殺されました。" to loop-player
  966. if {yakusyoku.%player%} is "jinnrou":
  967. clear player's inventory
  968. add 30 to {time}
  969. set {died.%player%} to true
  970. remove 1 from {jinnroucount}
  971. set victim's gamemode to spectator
  972. force respawn victim
  973. send "{@j} &c%damager%に殺されました。" to victim
  974. send "{@j} &c%victim%を殺しました。" to damager
  975. teleport victim to location of damager
  976. set victim's tablist name to " "
  977. if {yakusyoku.%player%} is "murabito" , "yogennsya", "reibaisi", "kariudo", "nekomata" or "kennzya":
  978. clear player's inventory
  979. add 30 to {time}
  980. set {died.%player%} to true
  981. remove 1 from {murabitocount}
  982. set victim's gamemode to spectator
  983. force respawn victim
  984. send "{@j} &c%damager%に殺されました。" to victim
  985. send "{@j} &c%victim%を殺しました。" to damager
  986. teleport victim to location of damager
  987. set victim's tablist name to " "
  988. if {yakusyoku.%player%} is "kyouzinn":
  989. clear player's inventory
  990. add 30 to {time}
  991. set {died.%player%} to true
  992. set victim's gamemode to spectator
  993. force respawn victim
  994. send "{@j} &c%damager%に殺されました。" to victim
  995. send "{@j} &c%victim%を殺しました。" to damager
  996. teleport victim to location of damager
  997. set victim's tablist name to " "
  998. if {jinnroucount} is smaller than 1:
  999. if {murabitocount} is smaller than 1:
  1000. loop all players:
  1001. send loop-player title "&6&l引き分けです" with subtitle "&6&l村人と人狼が全滅しました。" for 2 seconds
  1002. play sound "entity.zombie.break_door_wood" with volume 50 and pitch 1 at loop-player for loop-player
  1003. set {time} to 0
  1004. set {timer} to false
  1005. set {_integer} to 0
  1006. wait 5 seconds
  1007. delete {used-time-602}
  1008. delete {used-time-600}
  1009. delete {used-time-599}
  1010. loop all players:
  1011. teleport loop-player to {firstjoinlocation}
  1012. set loop-player's gamemode to survival
  1013. clear loop-player's inventory
  1014. delete {playing.%loop-player%}
  1015. delete {died.%loop-player%}
  1016. delete {used.%loop-player%}
  1017. set loop-player's tablist name to "&f%loop-player%"
  1018. set {state} to false
  1019. set {started} to false
  1020. broadcast "{@j} &6=================[&d今回の内訳&6]================="
  1021. broadcast "{@j} &b勝利陣営: なし"
  1022. if {sannkaninnzuu} is 4:
  1023. broadcast "{@j} &4人狼: [%{jinnrou1}%]"
  1024. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%], [%{murabito3}%]"
  1025. if {sannkaninnzuu} is 5:
  1026. broadcast "{@j} &4人狼: [%{jinnrou1}%]"
  1027. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  1028. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  1029. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%]"
  1030. if {sannkaninnzuu} is 6:
  1031. broadcast "{@j} &4人狼: [%{jinnrou1}%]"
  1032. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  1033. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  1034. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%], [%{murabito3}%]"
  1035. if {sannkaninnzuu} is 7:
  1036. broadcast "{@j} &4人狼: [%{jinnrou1}%], [%{jinnrou2}%]"
  1037. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  1038. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  1039. broadcast "{@j} &6霊媒師: [%{reibaisi1}%]"
  1040. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%]"
  1041. if {sannkaninnzuu} is 8:
  1042. broadcast "{@j} &4人狼: [%{jinnrou1}%], [%{jinnrou2}%]"
  1043. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  1044. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  1045. broadcast "{@j} &6霊媒師: [%{reibaisi1}%]"
  1046. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%], [%{murabito3}%]"
  1047. if {sannkaninnzuu} is 9:
  1048. broadcast "{@j} &4人狼: [%{jinnrou1}%], [%{jinnrou2}%], [%{jinnrou3}%]"
  1049. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  1050. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  1051. broadcast "{@j} &6霊媒師: [%{reibaisi1}%]"
  1052. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%], [%{murabito3}%]"
  1053. if {sannkaninnzuu} is 10:
  1054. broadcast "{@j} &4人狼: [%{jinnrou1}%], [%{jinnrou2}%], [%{jinnrou3}%]"
  1055. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  1056. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  1057. broadcast "{@j} &6霊媒師: [%{reibaisi1}%]"
  1058. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%], [%{murabito3}%], [%{murabito4}%]"
  1059. broadcast "{@j} &6============================================"
  1060. set {sannkaninnzuu} to 0
  1061. loop 10 times:
  1062. add 1 to {_integer}
  1063. delete {yakusyoku.%{sannka%{_integer}%}%}
  1064. delete {murabito%{_integer}%}
  1065. delete {jinnrou%{_integer}%}
  1066. delete {kyouzinn%{_integer}%}
  1067. delete {yogennsya%{_integer}%}
  1068. delete {reibaisi%{_integer}%}
  1069. delete {playing.%{sannka%{_integer}%}%}
  1070. delete {died.%{sannka%{_integer}%}%}
  1071. stop
  1072. if {murabitocount} is higher than 0:
  1073. loop all players:
  1074. send loop-player title "&a&l村人の勝利です!" with subtitle "&a&l人狼が全滅しました。" for 2 seconds
  1075. play sound "entity.player.levelup" with volume 50 and pitch 0 at loop-player for loop-player
  1076. set {time} to 0
  1077. set {timer} to false
  1078. set {_integer} to 0
  1079. wait 5 seconds
  1080. delete {used-time-602}
  1081. delete {used-time-600}
  1082. delete {used-time-599}
  1083. loop all players:
  1084. teleport loop-player to {firstjoinlocation}
  1085. set loop-player's gamemode to survival
  1086. clear loop-player's inventory
  1087. delete {playing.%loop-player%}
  1088. delete {died.%loop-player%}
  1089. delete {used.%loop-player%}
  1090. set loop-player's tablist name to "&f%loop-player%"
  1091. set {state} to false
  1092. set {started} to false
  1093. broadcast "{@j} &6=================[&d今回の内訳&6]================="
  1094. broadcast "{@j} &b勝利陣営: 村人陣営"
  1095. if {sannkaninnzuu} is 4:
  1096. broadcast "{@j} &4人狼: [%{jinnrou1}%]"
  1097. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%], [%{murabito3}%]"
  1098. if {sannkaninnzuu} is 5:
  1099. broadcast "{@j} &4人狼: [%{jinnrou1}%]"
  1100. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  1101. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  1102. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%]"
  1103. if {sannkaninnzuu} is 6:
  1104. broadcast "{@j} &4人狼: [%{jinnrou1}%]"
  1105. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  1106. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  1107. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%], [%{murabito3}%]"
  1108. if {sannkaninnzuu} is 7:
  1109. broadcast "{@j} &4人狼: [%{jinnrou1}%], [%{jinnrou2}%]"
  1110. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  1111. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  1112. broadcast "{@j} &6霊媒師: [%{reibaisi1}%]"
  1113. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%]"
  1114. if {sannkaninnzuu} is 8:
  1115. broadcast "{@j} &4人狼: [%{jinnrou1}%], [%{jinnrou2}%]"
  1116. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  1117. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  1118. broadcast "{@j} &6霊媒師: [%{reibaisi1}%]"
  1119. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%], [%{murabito3}%]"
  1120. if {sannkaninnzuu} is 9:
  1121. broadcast "{@j} &4人狼: [%{jinnrou1}%], [%{jinnrou2}%], [%{jinnrou3}%]"
  1122. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  1123. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  1124. broadcast "{@j} &6霊媒師: [%{reibaisi1}%]"
  1125. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%], [%{murabito3}%]"
  1126. if {sannkaninnzuu} is 10:
  1127. broadcast "{@j} &4人狼: [%{jinnrou1}%], [%{jinnrou2}%], [%{jinnrou3}%]"
  1128. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  1129. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  1130. broadcast "{@j} &6霊媒師: [%{reibaisi1}%]"
  1131. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%], [%{murabito3}%], [%{murabito4}%]"
  1132. broadcast "{@j} &6============================================"
  1133. set {sannkaninnzuu} to 0
  1134. loop 10 times:
  1135. add 1 to {_integer}
  1136. delete {yakusyoku.%{sannka%{_integer}%}%}
  1137. delete {murabito%{_integer}%}
  1138. delete {jinnrou%{_integer}%}
  1139. delete {kyouzinn%{_integer}%}
  1140. delete {yogennsya%{_integer}%}
  1141. delete {reibaisi%{_integer}%}
  1142. delete {sannka%{_integer}%}
  1143. delete {playing.%{sannka%{_integer}%}%}
  1144. delete {died.%{sannka%{_integer}%}%}
  1145. stop
  1146. if {murabitocount} is smaller than 1:
  1147. if {jinnroucount} is smaller than 1:
  1148. loop all players:
  1149. send loop-player title "&6&l引き分けです" with subtitle "&6&l村人と人狼が全滅しました。" for 2 seconds
  1150. play sound "entity.zombie.break_door_wood" with volume 50 and pitch 1 at loop-player for loop-player
  1151. set {time} to 0
  1152. set {timer} to false
  1153. set {_integer} to 0
  1154. wait 5 seconds
  1155. delete {used-time-602}
  1156. delete {used-time-600}
  1157. delete {used-time-599}
  1158. loop all players:
  1159. teleport loop-player to {firstjoinlocation}
  1160. set loop-player's gamemode to survival
  1161. clear loop-player's inventory
  1162. delete {playing.%loop-player%}
  1163. delete {died.%loop-player%}
  1164. delete {used.%loop-player%}
  1165. set loop-player's tablist name to "&f%loop-player%"
  1166. set {state} to false
  1167. set {started} to false
  1168. broadcast "{@j} &6=================[&d今回の内訳&6]================="
  1169. broadcast "{@j} &b勝利陣営: なし"
  1170. if {sannkaninnzuu} is 4:
  1171. broadcast "{@j} &4人狼: [%{jinnrou1}%]"
  1172. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%], [%{murabito3}%]"
  1173. if {sannkaninnzuu} is 5:
  1174. broadcast "{@j} &4人狼: [%{jinnrou1}%]"
  1175. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  1176. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  1177. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%]"
  1178. if {sannkaninnzuu} is 6:
  1179. broadcast "{@j} &4人狼: [%{jinnrou1}%]"
  1180. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  1181. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  1182. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%], [%{murabito3}%]"
  1183. if {sannkaninnzuu} is 7:
  1184. broadcast "{@j} &4人狼: [%{jinnrou1}%], [%{jinnrou2}%]"
  1185. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  1186. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  1187. broadcast "{@j} &6霊媒師: [%{reibaisi1}%]"
  1188. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%]"
  1189. if {sannkaninnzuu} is 8:
  1190. broadcast "{@j} &4人狼: [%{jinnrou1}%], [%{jinnrou2}%]"
  1191. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  1192. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  1193. broadcast "{@j} &6霊媒師: [%{reibaisi1}%]"
  1194. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%], [%{murabito3}%]"
  1195. if {sannkaninnzuu} is 9:
  1196. broadcast "{@j} &4人狼: [%{jinnrou1}%], [%{jinnrou2}%], [%{jinnrou3}%]"
  1197. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  1198. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  1199. broadcast "{@j} &6霊媒師: [%{reibaisi1}%]"
  1200. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%], [%{murabito3}%]"
  1201. if {sannkaninnzuu} is 10:
  1202. broadcast "{@j} &4人狼: [%{jinnrou1}%], [%{jinnrou2}%], [%{jinnrou3}%]"
  1203. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  1204. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  1205. broadcast "{@j} &6霊媒師: [%{reibaisi1}%]"
  1206. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%], [%{murabito3}%], [%{murabito4}%]"
  1207. broadcast "{@j} &6============================================"
  1208. set {sannkaninnzuu} to 0
  1209. loop 10 times:
  1210. add 1 to {_integer}
  1211. delete {yakusyoku.%{sannka%{_integer}%}%}
  1212. delete {murabito%{_integer}%}
  1213. delete {jinnrou%{_integer}%}
  1214. delete {kyouzinn%{_integer}%}
  1215. delete {yogennsya%{_integer}%}
  1216. delete {reibaisi%{_integer}%}
  1217. delete {sannka%{_integer}%}
  1218. delete {playing.%{sannka%{_integer}%}%}
  1219. delete {died.%{sannka%{_integer}%}%}
  1220. stop
  1221. if {jinnroucount} is higher than 0:
  1222. loop all players:
  1223. send loop-player title "&c&l人狼の勝利です!" with subtitle "&c&l村人が全滅しました。" for 2 seconds
  1224. play sound "entity.wither.death" with volume 50 and pitch 1 at loop-player for loop-player
  1225. set {winner} to "jinnrou"
  1226. set {time} to 0
  1227. set {timer} to false
  1228. set {_integer} to 0
  1229. wait 5 seconds
  1230. delete {used-time-602}
  1231. delete {used-time-600}
  1232. delete {used-time-599}
  1233. loop all players:
  1234. teleport loop-player to {firstjoinlocation}
  1235. set loop-player's gamemode to survival
  1236. clear loop-player's inventory
  1237. delete {playing.%loop-player%}
  1238. delete {died.%loop-player%}
  1239. delete {used.%loop-player%}
  1240. set loop-player's tablist name to "&f%loop-player%"
  1241. set {state} to false
  1242. set {started} to false
  1243. broadcast "{@j} &6=================[&d今回の内訳&6]================="
  1244. broadcast "{@j} &b勝利陣営: 人狼陣営"
  1245. if {sannkaninnzuu} is 4:
  1246. broadcast "{@j} &4人狼: [%{jinnrou1}%]"
  1247. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%], [%{murabito3}%]"
  1248. if {sannkaninnzuu} is 5:
  1249. broadcast "{@j} &4人狼: [%{jinnrou1}%]"
  1250. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  1251. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  1252. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%]"
  1253. if {sannkaninnzuu} is 6:
  1254. broadcast "{@j} &4人狼: [%{jinnrou1}%]"
  1255. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  1256. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  1257. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%], [%{murabito3}%]"
  1258. if {sannkaninnzuu} is 7:
  1259. broadcast "{@j} &4人狼: [%{jinnrou1}%], [%{jinnrou2}%]"
  1260. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  1261. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  1262. broadcast "{@j} &6霊媒師: [%{reibaisi1}%]"
  1263. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%]"
  1264. if {sannkaninnzuu} is 8:
  1265. broadcast "{@j} &4人狼: [%{jinnrou1}%], [%{jinnrou2}%]"
  1266. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  1267. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  1268. broadcast "{@j} &6霊媒師: [%{reibaisi1}%]"
  1269. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%], [%{murabito3}%]"
  1270. if {sannkaninnzuu} is 9:
  1271. broadcast "{@j} &4人狼: [%{jinnrou1}%], [%{jinnrou2}%], [%{jinnrou3}%]"
  1272. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  1273. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  1274. broadcast "{@j} &6霊媒師: [%{reibaisi1}%]"
  1275. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%], [%{murabito3}%]"
  1276. if {sannkaninnzuu} is 10:
  1277. broadcast "{@j} &4人狼: [%{jinnrou1}%], [%{jinnrou2}%], [%{jinnrou3}%]"
  1278. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  1279. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  1280. broadcast "{@j} &6霊媒師: [%{reibaisi1}%]"
  1281. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%], [%{murabito3}%], [%{murabito4}%]"
  1282. broadcast "{@j} &6============================================"
  1283. set {sannkaninnzuu} to 0
  1284. loop 10 times:
  1285. add 1 to {_integer}
  1286. delete {yakusyoku.%{sannka%{_integer}%}%}
  1287. delete {murabito%{_integer}%}
  1288. delete {jinnrou%{_integer}%}
  1289. delete {kyouzinn%{_integer}%}
  1290. delete {yogennsya%{_integer}%}
  1291. delete {reibaisi%{_integer}%}
  1292. delete {sannka%{_integer}%}
  1293. delete {playing.%{sannka%{_integer}%}%}
  1294. delete {died.%{sannka%{_integer}%}%}
  1295. stop
  1296.  
  1297. command /qm [<number>] [<text>] [<number>]:
  1298. trigger:
  1299. if player is not an op:
  1300. send "{@qm} &c権限がありません"
  1301. if player is an op:
  1302. if {quickmathing} is true:
  1303. send "{@qm} &cQuickMathが既に行われています。"
  1304. else:
  1305. if arg 1 is not set:
  1306. send "{@qm} &c arg 1 が設定されていません。"
  1307. if arg 1 is set:
  1308. if arg 2 is not set:
  1309. send "{@qm} &c arg 2 が設定されていません。"
  1310. if arg 2 is set:
  1311. if arg 2 is "+", "-", "*" or "/":
  1312. if arg 3 is not set:
  1313. send "{@qm} &c arg 3 が設定されていません。"
  1314. if arg 3 is set:
  1315. set {qm-arg-1} to arg 1
  1316. set {qm-arg-2} to arg 2
  1317. set {qm-arg-3} to arg 3
  1318. if {qm-arg-2} is "+":
  1319. set {qm-answer} to {qm-arg-1}+{qm-arg-3}
  1320. if {qm-arg-2} is "-":
  1321. set {qm-answer} to {qm-arg-1}-{qm-arg-3}
  1322. if {qm-arg-2} is "*":
  1323. set {qm-answer} to {qm-arg-1}*{qm-arg-3}
  1324. set {qm-arg-2} to "x"
  1325. if {qm-arg-2} is "/":
  1326. set {qm-answer} to {qm-arg-1}/{qm-arg-3}
  1327. set {qm-arg-2} to "÷"
  1328. set {quickmathing} to true
  1329. broadcast "{@qm} &r&b--------------------------------------------"
  1330. broadcast "{@qm} &6&lQuick Math!!!"
  1331. broadcast "{@qm} &e&l%{qm-arg-1}% %{qm-arg-2}% %{qm-arg-3}% = ?"
  1332. broadcast "{@qm} &r&b--------------------------------------------"
  1333. loop all players:
  1334. play sound "entity.wither.spawn" with volume 25 and pitch 1 at loop-player for loop-player
  1335. set {qm-time-1} to 10
  1336. set {qm-time-2} to 0
  1337. while {quickmathing} is true:
  1338. loop all players:
  1339. set action bar of loop-player to "&f残り時間: &f&l%{qm-time-1}%.%{qm-time-2}%&r&f秒"
  1340. wait 2 ticks
  1341. remove 1 from {qm-time-2}
  1342. if {qm-time-2} is smaller than 0:
  1343. if {qm-time-1} is higher than 0:
  1344. set {qm-time-2} to 9
  1345. remove 1 from {qm-time-1}
  1346. if {qm-time-1} is smaller than 1:
  1347. if {qm-time-2} is smaller than 1:
  1348. delete {quickmathing}
  1349. send player title "&6&d&l終了です!" with subtitle "&e&l答えは&6&l%{qm-answer}%&e&lでした。" for 5 seconds
  1350. broadcast "{@qm} &6終了です!"
  1351. broadcast "{@qm} &e&l答えは&6&l%{qm-answer}%&e&lでした。"
  1352. loop all players:
  1353. play sound "entity.enderdragon.death" with volume 25 and pitch 2 at loop-player for loop-player
  1354. broadcast "{@qm} &r&b--------------&e[&5Ranking&e]&b--------------"
  1355. if {qm-1st} is set:
  1356. if {qm-answer-time-2.%{qm-1st}%} is not set:
  1357. broadcast "{@qm} &e&l1st Place: &6&l%{qm-1st}% &r&e%{qm-answer-time-1.%{qm-1st}%}%.0秒"
  1358. else:
  1359. broadcast "{@qm} &e&l1st Place: &6&l%{qm-1st}% &r&e%{qm-answer-time-1.%{qm-1st}%}%.%{qm-answer-time-2.%{qm-1st}%}%秒"
  1360. if {qm-2nd} is set:
  1361. if {qm-answer-time-2.%{qm-2nd}%} is not set:
  1362. broadcast "{@qm} &e&l2nd Place: &6&l%{qm-2nd}% &r&e%{qm-answer-time-1.%{qm-2nd}%}%.0秒"
  1363. else:
  1364. broadcast "{@qm} &e&l2nd Place: &6&l%{qm-2nd}% &r&e%{qm-answer-time-1.%{qm-2nd}%}%.%{qm-answer-time-2.%{qm-2nd}%}%秒"
  1365. if {qm-3rd} is set:
  1366. if {qm-answer-time-2.%{qm-3rd}%} is not set:
  1367. broadcast "{@qm} &e&l3rd Place: &6&l%{qm-3rd}% &r&e%{qm-answer-time-1.%{qm-3rd}%}%.0秒"
  1368. else:
  1369. broadcast "{@qm} &e&l3rd Place: &6&l%{qm-3rd}% &r&e%{qm-answer-time-1.%{qm-3rd}%}%.%{qm-answer-time-2.%{qm-3rd}%}%秒"
  1370. if {qm-1st} is not set:
  1371. broadcast "{@qm} &c&l正解者はいませんでした…。"
  1372. broadcast "{@qm} &r&b--------------&e[&5Ranking&e]&b--------------"
  1373. delete {qm-arg-1}
  1374. delete {qm-arg-2}
  1375. delete {qm-arg-3}
  1376. delete {qm-time-1}
  1377. delete {qm-time-2}
  1378. delete {qm-answer}
  1379. delete {qm-1st}
  1380. delete {qm-2nd}
  1381. delete {qm-3rd}
  1382. loop {servermember::*}:
  1383. delete {qm-answer-time-1.%loop-value%}
  1384. delete {qm-answer-time-2.%loop-value%}
  1385. delete {qm-answered.%loop-value%}
  1386. else:
  1387. send "{@qm} &cその文字は有効ではありません。"
  1388.  
  1389.  
  1390. on chat:
  1391. cancel event
  1392. if {yakusyoku.%player%} is set:
  1393. if {died.%player%} is not set:
  1394. broadcast "{@g}&f%player%&a: &r%message%"
  1395. if {died.%player%} is true:
  1396. loop all players:
  1397. if {playing.%loop-player%} is not set:
  1398. send "&7[死者]%player%&a: &r%message%" to loop-player
  1399. if {playing.%loop-player%} is set:
  1400. if {died.%loop-player%} is true:
  1401. send "&7[死者]%player%&a: &r%message%" to loop-player
  1402. if {yakusyoku.%player%} is not set:
  1403. if {quickmathing} is true:
  1404. if message contains "%{qm-answer}% ":
  1405. if {qm-answered.%player%} is true:
  1406. cancel event
  1407. send "{@qm} &c貴方はすでに正解を答えています。"
  1408. else:
  1409. cancel event
  1410. broadcast "{@qm} &r&6%player%&r&eさんが正解しました!"
  1411. send "{@qm} &6正解です!"
  1412. loop all players:
  1413. play sound "entity.arrow.hit_player" with volume 50 and pitch 1 at loop-player for loop-player
  1414. set {qm-answered.%player%} to true
  1415. set {qm-answer-time-1.%player%} to 10-{qm-time-1}
  1416. if {qm-time-2} is higher than 0:
  1417. set {qm-answer-time-2.%player%} to 10-{qm-time-2}
  1418. remove 1 from {qm-answer-time-1.%player%}
  1419. if {qm-1st} is not set:
  1420. set {qm-1st} to player
  1421. stop
  1422. if {qm-1st} is set:
  1423. if {qm-2nd} is not set:
  1424. set {qm-2nd} to player
  1425. stop
  1426. if {qm-2nd} is set:
  1427. if {qm-3rd} is not set:
  1428. set {qm-3rd} to player
  1429. stop
  1430. else:
  1431. if player is an op:
  1432. broadcast "&c[ADMIN]%player%&a: &r%message%"
  1433. else:
  1434. broadcast "%player%&a: &r%message%"
  1435. else:
  1436. if player is an op:
  1437. loop all players:
  1438. if {playing.%loop-player%} is not set:
  1439. send "&c[ADMIN]%player%&a: &r%message%" to loop-player
  1440. if {playing.%loop-player%} is set:
  1441. if {died.%loop-player%} is true:
  1442. send "&c[ADMIN]%player%&a: &r%message%" to loop-player
  1443. if player is not an op:
  1444. loop all players:
  1445. if {playing.%loop-player%} is not set:
  1446. send "%player%&a: &r%message%" to loop-player
  1447. if {playing.%loop-player%} is set:
  1448. if {died.%loop-player%} is true:
  1449. send "%player%&a: &r%message%" to loop-player
  1450.  
  1451. on food bar change:
  1452. set player's food level to 10
  1453.  
  1454. on damage:
  1455. victim is player
  1456. if {yakusyoku.%victim%} is not set:
  1457. cancel event
  1458. if {yakusyoku.%victim%} is set:
  1459. if {yakusyoku.%damager%} is not set:
  1460. cancel event
  1461.  
  1462. command /kansen [<text>]:
  1463. trigger:
  1464. if arg 1 is "join":
  1465. if {timer} is true:
  1466. if {yakusyoku.%player%} is not set:
  1467. teleport player to {kansenlocation}
  1468. set player's gamemode to spectator
  1469. send "{@j} &e観戦に参加しました。戻る場合は/kansen leaveと入力してください。"
  1470. if {yakusyoku.%player%} is set:
  1471. send "{@j} &c参加者は使えません。"
  1472. else:
  1473. send "{@j} &c試合中にしか使えません。"
  1474. if arg 1 is "leave":
  1475. if {timer} is true:
  1476. if {yakusyoku.%player%} is not set:
  1477. teleport player to {firstjoinlocation}
  1478. set player's gamemode to survival
  1479. send "{@j} &e観戦から戻りました。"
  1480. if {yakusyoku.%player%} is set:
  1481. send "{@j} &c参加者は使えません。"
  1482. else:
  1483. send "{@j} &c試合中にしか使えません。"
  1484. if arg 1 is "location":
  1485. if player is not an op:
  1486. send "&c権限がありません。"
  1487. if player is an op:
  1488. set {kansenlocation} to location of player
  1489. send "&a%{kansenlocation}%"
  1490.  
  1491. #--------#
  1492. # System #
  1493. #--------#
  1494.  
  1495. command /fj [<text>]:
  1496. trigger:
  1497. if player is not an op:
  1498. send "{@j} &c権限がありません。"
  1499. if player is an op:
  1500. if arg 1 is not set:
  1501. send "{@j} &e%{firstjoinlocation}%"
  1502. if arg 1 is set:
  1503. if arg 1 is "set":
  1504. set {firstjoinlocation} to location of player
  1505. send "{@j} &e{firstjoinlocation}を%{firstjoinlocation}%に変更しました。"
  1506. else:
  1507. send "{@j} &e%{firstjoinlocation}%"
  1508.  
  1509. every 3 second:
  1510. if {state} is not set:
  1511. set {state} to false
  1512. if {state} is set:
  1513. if {state} is false:
  1514. loop all players:
  1515. wipe loop-player sidebar
  1516. set name of sidebar of loop-player to "&d&lじんろうげーむ"
  1517. set score "参加人数: &6%{sannkaninnzuu}%" in sidebar of loop-player to 0
  1518.  
  1519. command /resetdigits:
  1520. trigger:
  1521. if player is not an op:
  1522. send "&c権限がありません。"
  1523. if player is an op:
  1524. loop {servermember::*}:
  1525. delete {1digit.%loop-value%}
  1526. delete {2digit.%loop-value%}
  1527. delete {3digit.%loop-value%}
  1528. delete {4digit.%loop-value%}
  1529. delete {5digit.%loop-value%}
  1530. delete {6digit.%loop-value%}
  1531. remove loop-value from {servermember::*}
  1532. loop {uuid::*}:
  1533. delete {1digit.%loop-value%}
  1534. delete {2digit.%loop-value%}
  1535. delete {3digit.%loop-value%}
  1536. delete {4digit.%loop-value%}
  1537. delete {5digit.%loop-value%}
  1538. delete {6digit.%loop-value%}
  1539. remove loop-value from {uuid::*}
  1540. set {_integer} to 0
  1541. loop 6 times:
  1542. add 1 to {_integer}
  1543. delete {%{_integer}%digit}
  1544. send "&cすべてのdigitが削除されました。ログインしなおしてください。"
  1545.  
  1546. on join:
  1547. teleport player to {firstjoinlocation}
  1548. delete {page.%uuid of player%}
  1549. set player's gamemode to survival
  1550. clear player's inventory
  1551. set player's tablist name to "&f%player%"
  1552. send "&c&l/rule &r&cでルールを確認してください。"
  1553. if {attention-point.%uuid of player%} is not set:
  1554. set {attention-point.%uuid of player%} to 100
  1555. if {attention-count.%uuid of player%} is not set:
  1556. set {attention-count.%uuid of player%} to 0
  1557. loop {servermember::*}:
  1558. if loop-value is player:
  1559. set the join message to "&b[+]&9>> &6%player%##%{6digit.%uuid of player%}%%{5digit.%uuid of player%}%%{4digit.%uuid of player%}%%{3digit.%uuid of player%}%%{2digit.%uuid of player%}%%{1digit.%uuid of player%}% &eがログインしました。"
  1560. delete {yakusyoku.%player%}
  1561. delete {died.%player%}
  1562. delete {used.%player%}
  1563. delete {playing.%player%}
  1564. stop
  1565. loop {uuid::*}:
  1566. loop-value is uuid of player:
  1567. set the join message to "&b[+]&9>> &6%player%##%{6digit.%uuid of player%}%%{5digit.%uuid of player%}%%{4digit.%uuid of player%}%%{3digit.%uuid of player%}%%{2digit.%uuid of player%}%%{1digit.%uuid of player%}% &eがログインしました。"
  1568. delete {yakusyoku.%player%}
  1569. delete {died.%player%}
  1570. delete {used.%player%}
  1571. delete {playing.%player%}
  1572. stop
  1573. set {_integer} to 0
  1574. loop 6 times:
  1575. add 1 to {_integer}
  1576. if {%{_integer}%digit} is not set:
  1577. set {%{_integer}%digit} to 0
  1578. set {_integer} to 0
  1579. loop 6 times:
  1580. add 1 to {_integer}
  1581. set {%{_integer}%digit.%uuid of player%} to {%{_integer}%digit}
  1582. set the join message to "&b[+]&9>> &d%player%##%{6digit.%uuid of player%}%%{5digit.%uuid of player%}%%{4digit.%uuid of player%}%%{3digit.%uuid of player%}%%{2digit.%uuid of player%}%%{1digit.%uuid of player%}% &eがログインしました。"
  1583. add player to {servermember::*}
  1584. add uuid of player to {uuid::*}
  1585. add 1 to {1digit}
  1586. if {1digit} is higher than 9:
  1587. add 1 to {2digit}
  1588. set {1digit} to 0
  1589. if {2digit} is higher than 9:
  1590. add 1 to {3digit}
  1591. set {2digit} to 0
  1592. if {3digit} is higher than 9:
  1593. add 1 to {4digit}
  1594. set {3digit} to 0
  1595. if {4digit} is higher than 9:
  1596. add 1 to {5digit}
  1597. set {4digit} to 0
  1598. if {5digit} is higher than 9:
  1599. add 1 to {6digit}
  1600. set {5digit} to 0
  1601.  
  1602. command /digit:
  1603. trigger:
  1604. if player is not an op:
  1605. send "&c権限がありません。"
  1606. if player is an op:
  1607. send "&e%{6digit}%%{5digit}%%{4digit}%%{3digit}%%{2digit}%%{1digit}%"
  1608.  
  1609. on quit:
  1610. set the quit message to "&c[-]&4>> &6%player% &eがログアウトしました。"
  1611. set {_integer} to 0
  1612. loop 10 times:
  1613. add 1 to {_integer}
  1614. if player is {sannka%{_integer}%}:
  1615. if {timer} is false:
  1616. remove 1 from {sannkaninnzuu}
  1617. delete {sannka%{_integer}%}
  1618. if {timer} is true:
  1619. if {died.%player%} is not set:
  1620. if {yakusyoku.%player%} is "yogennsya" , "reibaisi" or "murabito":
  1621. remove 1 from {murabitocount}
  1622. delete {yakusyoku.%player%}
  1623. if {yakusyoku.%player%} is "jinnrou":
  1624. remove 1 from {jinnroucount}
  1625. delete {yakusyoku.%player%}
  1626. if {yakusyoku.%player%} is "kyouzinn":
  1627. delete {yakusyoku.%player%}
  1628.  
  1629. on right click:
  1630. if player's gamemode is spectator:
  1631. if targeted player's gamemode is survival:
  1632. if {yakusyoku.%targeted player%} is set:
  1633.  
  1634. command /j [<text>] [<integer>]:
  1635. trigger:
  1636. if arg 1 is "join":
  1637. if {state} is true:
  1638. send "{@j} &cゲームへの参加に失敗しました。ゲームがすでに始まっています。"
  1639. if {state} is false:
  1640. set {_integer} to 0
  1641. loop 16 times:
  1642. add 1 to {_integer}
  1643. if {sannka%{_integer}%} is player:
  1644. send "{@j} &c既に参加しています。"
  1645. stop
  1646. set {_integer} to 0
  1647. loop 10 times:
  1648. add 1 to {_integer}
  1649. if {sannka%{_integer}%} is not set:
  1650. set {sannka%{_integer}%} to player
  1651. add 1 to {sannkaninnzuu}
  1652. send "{@j} &eゲームに参加します。"
  1653. broadcast "{@j} &6%player% &eさんが参加しました。"
  1654. set {_aaalocal} to 16-{sannkaninnzuu}
  1655. if {_aaalocal} is higher than 0:
  1656. broadcast "{@j} &eあと&6%{_aaalocal}%&e人参加できます。"
  1657. if {_aaalocal} is 0:
  1658. broadcast "{@j} &cゲームの定員人数に達しました。"
  1659. set player's tablist name to "&6%player%"
  1660. stop
  1661. if {_integer} is higher than 16:
  1662. send "{@j} &cゲームへの参加に失敗しました。定員人数に達しています。"
  1663. stop
  1664. if arg 1 is "leave":
  1665. if {state} is true:
  1666. send "{@j} &cゲームから抜けることに失敗しました。ゲームがすでに始まっています。"
  1667. if {state} is false:
  1668. set {_integer} to 0
  1669. loop 16 times:
  1670. add 1 to {_integer}
  1671. if {sannka%{_integer}%} is player:
  1672. delete {sannka%{_integer}%}
  1673. remove 1 from {sannkaninnzuu}
  1674. send "{@j} &eゲームから抜けました。"
  1675. broadcast "{@j} &6%player% &cさんがゲームから抜けました。"
  1676. set {_aaalocal} to 16-{sannkaninnzuu}
  1677. broadcast "{@j} &eあと&6%{_aaalocal}%&e人参加できます。"
  1678. set player's tablist name to "&f%player%"
  1679. stop
  1680. send "{@j} &cゲームに参加していません。"
  1681. if arg 1 is "start":
  1682. if player is not an op:
  1683. send "{@j} &c権限がありません。"
  1684. else:
  1685. if {started} is true:
  1686. send "{@j} &cゲームの開始に失敗しました。ゲームがすでに始まっています。"
  1687. if {started} is false:
  1688. if {sannkaninnzuu} is smaller than 4:
  1689. send "{@j} &c参加人数が3人以下の為ゲームの開始ができません。"
  1690. stop
  1691. if {sannkaninnzuu} is higher than 3:
  1692. set {started} to true
  1693. set {state} to false
  1694. set {time} to 16
  1695. delete {_local::*}
  1696. set {_local} to 0
  1697. loop 15 times:
  1698. add 1 to {_local}
  1699. add {_local} to {_local::*}
  1700. loop 16 times:
  1701. remove 1 from {time}
  1702. loop all players:
  1703. set action bar of loop-player to "&f残り時間: &f&l%{time}%"
  1704. if {sannkaninnzuu} is smaller than 4:
  1705. broadcast "{@j} &c参加人数が4人を下回った為、カウントダウンを停止しました。"
  1706. loop all players:
  1707. set action bar of loop-player to "&cカウントダウンが停止しました。"
  1708. set {zyoutai} to 1
  1709. set {started} to false
  1710. stop
  1711. if {sannkaninnzuu} is higher than 3:
  1712. if {time} is 15:
  1713. broadcast "{@j} &e15秒後にゲームを開始します。"
  1714. if {sannkaninnzuu} is 15:
  1715. broadcast "{@j} &c参加者が定員人数に達しています。"
  1716. broadcast "{@j} &cカウントダウン終了後、&6/kansen join&cと入力することで試合を観戦できます。"
  1717. if {sannkaninnzuu} is smaller than 16:
  1718. broadcast "{@j} &eゲームに参加したい方は、&6/j join&eと入力することでゲームに参加できます。"
  1719. broadcast "{@j} &eまた、ゲームから抜けたい方は、&6/j leave&eと入力することでゲームから離脱できます。"
  1720. loop all players:
  1721. play sound "entity.arrow.hit_player" with volume 50 and pitch 1 at loop-player for loop-player
  1722. if {time} is 10:
  1723. broadcast "{@j} &e10秒後にゲームを開始します。"
  1724. loop all players:
  1725. play sound "entity.arrow.hit_player" with volume 50 and pitch 1 at loop-player for loop-player
  1726. if {time} is 5:
  1727. broadcast "{@j} &e5秒後にゲームを開始します。"
  1728. loop all players:
  1729. play sound "entity.arrow.hit_player" with volume 50 and pitch 1 at loop-player for loop-player
  1730. if {time} is 4:
  1731. broadcast "{@j} &e4秒後にゲームを開始します。"
  1732. loop all players:
  1733. play sound "entity.arrow.hit_player" with volume 50 and pitch 1 at loop-player for loop-player
  1734. if {time} is 3:
  1735. broadcast "{@j} &e3秒後にゲームを開始します。"
  1736. loop all players:
  1737. play sound "entity.arrow.hit_player" with volume 50 and pitch 1 at loop-player for loop-player
  1738. if {time} is 2:
  1739. broadcast "{@j} &e2秒後にゲームを開始します。"
  1740. loop all players:
  1741. play sound "entity.arrow.hit_player" with volume 50 and pitch 1 at loop-player for loop-player
  1742. if {time} is 1:
  1743. broadcast "{@j} &e1秒後にゲームを開始します。"
  1744. loop all players:
  1745. play sound "entity.arrow.hit_player" with volume 50 and pitch 1 at loop-player for loop-player
  1746. if {time} is 0:
  1747. loop all players:
  1748. play sound "entity.arrow.hit_player" with volume 50 and pitch 0 at loop-player for loop-player
  1749. else:
  1750. wait 1 second
  1751. if {sannkaninnzuu} is smaller than 4:
  1752. broadcast "{@j} &c参加人数が4人を下回った為、カウントダウンを停止しました。"
  1753. loop all players:
  1754. set action bar of loop-player to "&cカウントダウンが停止しました。"
  1755. set {started} to false
  1756. stop
  1757. if {sannkaninnzuu} is higher than 3:
  1758. delete {playmember::*}
  1759. set {_integer} to 0
  1760. loop 16 times:
  1761. add 1 to {_integer}
  1762. if {sannka%{_integer}%} is set:
  1763. add {sannka%{_integer}%} to {playmember::*}
  1764. loop 16 times:
  1765. add 1 to {_integer}
  1766. set {playing.%{sannka%{_integer}%}%} to true
  1767. set tablist name of {sannka%{_integer}%} to "&6%{sannka%{_integer}%}%"
  1768. set {_a} to random element of {_local::*}
  1769. delete {died.%{sannka%{_integer}%}%}
  1770. remove {_a} from {_local::*}
  1771. teleport {sannka%{_integer}%} to {location%{_a}%}
  1772. set {sannka%{_integer}%}'s gamemode to survival
  1773. clear {sannka%{_integer}%}'s inventory
  1774. set {state} to true
  1775. set {timer} to true
  1776. set {time} to 606
  1777. while {timer} is true:
  1778. remove 1 from {time}
  1779. loop all players:
  1780. if {yakusyoku.%loop-player%} is not set:
  1781. set action bar of loop-player to "&f残り時間: &f&l%{time}%"
  1782. if {yakusyoku.%loop-player%} is set:
  1783. if {yakusyoku.%loop-player%} is "jinnrou":
  1784. set action bar of loop-player to "&f残り時間: &f&l%{time}% &r&4あなたの役職: &4&l人狼 &r&4/jc [message]で人狼にだけ見えるチャットを送信できます"
  1785. if {yakusyoku.%loop-player%} is "kyouzinn":
  1786. set action bar of loop-player to "&f残り時間: &f&l%{time}% &r&5あなたの役職: &5&l狂人"
  1787. if {yakusyoku.%loop-player%} is "murabito":
  1788. set action bar of loop-player to "&f残り時間: &f&l%{time}% &r&aあなたの役職: &a&l村人"
  1789. if {yakusyoku.%loop-player%} is "yogennsya":
  1790. set action bar of loop-player to "&f残り時間: &f&l%{time}% &r&1あなたの役職: &1&l預言者 &r&1/uranai [player]で占いの能力を使えます"
  1791. if {yakusyoku.%loop-player%} is "reibaisi":
  1792. set action bar of loop-player to "&f残り時間: &f&l%{time}% &r&6あなたの役職: &6&l霊媒師 &r&6/reibai [player]で霊媒の能力を使えます"
  1793. if {time} is 602:
  1794. if {used-time-602} is not true:
  1795. set {used-time-602} to true
  1796. loop all players:
  1797. send loop-player title "&d&lマイクラ人狼" for 2 seconds
  1798. play sound "entity.arrow.hit_player" with volume 50 and pitch 0 at loop-player for loop-player
  1799. if {time} is 600:
  1800. if {used-time-600} is true:
  1801. loop all players:
  1802. send "{@j} &a残り時間は600秒です。" to loop-player
  1803. if {used-time-600} is not true:
  1804. set {used-time-600} to true
  1805. loop all players:
  1806. send loop-player title "&d&lマイクラ人狼" with subtitle "&c&lSTART!" for 2 seconds
  1807. play sound "entity.arrow.hit_player" with volume 50 and pitch 1 at loop-player for loop-player
  1808. if {yakusyoku.%loop-player%} is "jinnrou":
  1809. send "{@j} &eあなたの役職は &4&l人狼 &r&eです。" to loop-player
  1810. if {sannkaninnzuu} is smaller than 7:
  1811. send "{@j} &c今回の人狼は &c&l[%{jinnrou1}%] &r&cです。" to loop-player
  1812. if {sannkaninnzuu} is 7 or 8:
  1813. send "{@j} &c今回の人狼は &c&l[%{jinnrou1}%], [%{jinnrou2}%] &r&cです。" to loop-player
  1814. if {sannkaninnzuu} is higher than 8:
  1815. send "{@j} &c今回の人狼は &c&l[%{jinnrou1}%], [%{jinnrou2}%], [%{jinnrou3}%] &r&cです。" to loop-player
  1816. send "{@j} &6/jc [message]&eで人狼にだけ見えるチャットを送信できます。" to loop-player
  1817. if {yakusyoku.%loop-player%} is "kyouzinn":
  1818. send "{@j} &eあなたの役職は &5&l狂人 &r&eです。" to loop-player
  1819. if {yakusyoku.%loop-player%} is "murabito":
  1820. send "{@j} &eあなたの役職は &a&l村人 &r&eです。" to loop-player
  1821. if {yakusyoku.%loop-player%} is "yogennsya":
  1822. send "{@j} &eあなたの役職は &1&l預言者 &r&eです。" to loop-player
  1823. send "{@j} &1/uranai [player] &eでプレイヤーを一人だけ占うことができます。" to loop-player
  1824. if {yakusyoku.%loop-player%} is "reibaisi":
  1825. send "{@j} &eあなたの役職は &6&l霊媒師 &r&eです。" to loop-player
  1826. send "{@j} &6/reibai [player] &eでプレイヤーが死んでいる場合はプレイヤーの役職、" to loop-player
  1827. send "{@j} &e生きている場合は、生きていることが通知されます。" to loop-player
  1828. if {yakusyoku.%loop-player%} is not set:
  1829. send "{@j} &fあなたはゲームに参加しませんでした。" to loop-player
  1830. send "{@j} &f/kansen joinとうつことで現在のゲームを観戦できます。" to loop-player
  1831. if {time} is 599:
  1832. if {used-time-599} is not true:
  1833. set {used-time-599} to true
  1834. loop all players:
  1835. if {yakusyoku.%loop-player%} is set:
  1836. make console execute command "/give %loop-player% minecraft:bow 1 0 {HideFlags:5,Unbreakable:1,display:{Name:""§a§l人狼ゲームの弓"",Lore:[""§7どんな相手でも一発で倒せちゃう!""]},ench:[{id:48,lvl:30000},{id:51,lvl:1}]}"
  1837. make console execute command "/give %loop-player% minecraft:arrow 1 0 {HideFlags:5,Unbreakable:1,display:{Name:""§a§l人狼ゲームの矢""},ench:[{id:48,lvl:30000},{id:51,lvl:1}]}"
  1838. broadcast "{@j} &9=================[&a役職の人数&9]================="
  1839. if {sannkaninnzuu} is 4:
  1840. broadcast "{@j} &4[人狼] × 1"
  1841. broadcast "{@j} &a[村人] × 3"
  1842. if {sannkaninnzuu} is 5:
  1843. broadcast "{@j} &4[人狼] × 1"
  1844. broadcast "{@j} &5[狂人] × 1"
  1845. broadcast "{@j} &1[預言者] × 1"
  1846. broadcast "{@j} &a[村人] × 2"
  1847. if {sannkaninnzuu} is 6:
  1848. broadcast "{@j} &4[人狼] × 1"
  1849. broadcast "{@j} &5[狂人] × 1"
  1850. broadcast "{@j} &1[預言者] × 1"
  1851. broadcast "{@j} &a[村人] × 3"
  1852. if {sannkaninnzuu} is 7:
  1853. broadcast "{@j} &4[人狼] × 2"
  1854. broadcast "{@j} &5[狂人] × 1"
  1855. broadcast "{@j} &1[預言者] × 1"
  1856. broadcast "{@j} &6[霊媒師] × 1"
  1857. broadcast "{@j} &a[村人] × 2"
  1858. if {sannkaninnzuu} is 8:
  1859. broadcast "{@j} &4[人狼] × 2"
  1860. broadcast "{@j} &5[狂人] × 1"
  1861. broadcast "{@j} &1[預言者] × 1"
  1862. broadcast "{@j} &6[霊媒師] × 1"
  1863. broadcast "{@j} &a[村人] × 3"
  1864. if {sannkaninnzuu} is 9:
  1865. broadcast "{@j} &4[人狼] × 3"
  1866. broadcast "{@j} &5[狂人] × 1"
  1867. broadcast "{@j} &1[預言者] × 1"
  1868. broadcast "{@j} &6[霊媒師] × 1"
  1869. broadcast "{@j} &a[村人] × 3"
  1870. if {sannkaninnzuu} is 10:
  1871. broadcast "{@j} &4[人狼] × 3"
  1872. broadcast "{@j} &5[狂人] × 1"
  1873. broadcast "{@j} &1[預言者] × 1"
  1874. broadcast "{@j} &6[霊媒師] × 1"
  1875. broadcast "{@j} &a[村人] × 4"
  1876. broadcast "{@j} &9=================================================="
  1877. if {stopgame} is true:
  1878. delete {stopgame}
  1879. broadcast "{@j} &4ゲームが強制終了されました。"
  1880. set {sannkaninnzuu} to 0
  1881. set {_integer} to 0
  1882. loop 10 times:
  1883. add 1 to {_integer}
  1884. delete {murabito%{_integer}%}
  1885. delete {jinnrou%{_integer}%}
  1886. delete {kyouzinn%{_integer}%}
  1887. delete {yogennsya%{_integer}%}
  1888. delete {reibaisi%{_integer}%}
  1889. delete {playing.%{sannka%{_integer}%}%}
  1890. delete {died.%{sannka%{_integer}%}%}
  1891. loop all players:
  1892. teleport loop-player to {firstjoinlocation}
  1893. set loop-player's gamemode to survival
  1894. clear loop-player's inventory
  1895. delete {playing.%loop-player%}
  1896. delete {died.%loop-player%}
  1897. delete {used.%loop-player%}
  1898. delete {yakusyoku.%loop-player%}
  1899. set loop-player's tablist name to "&f%loop-player%"
  1900. set {state} to false
  1901. set {started} to false
  1902. set {time} to 0
  1903. set {timer} to false
  1904. stop
  1905. if {time} is 500:
  1906. loop all players:
  1907. send "{@j} &a残り時間は500秒です。" to loop-player
  1908. if {time} is 400:
  1909. loop all players:
  1910. send "{@j} &a残り時間は400秒です。" to loop-player
  1911. if {time} is 300:
  1912. loop all players:
  1913. send "{@j} &e残り時間は300秒です。" to loop-player
  1914. if {time} is 200:
  1915. loop all players:
  1916. send "{@j} &6残り時間は200秒です。" to loop-player
  1917. if {time} is 100:
  1918. if {used-time-100}
  1919. loop all players:
  1920. send "{@j} &c残り時間は100秒です。" to loop-player
  1921. if {jinnroucount} is smaller than 1:
  1922. if {murabitocount} is smaller than 1:
  1923. loop all players:
  1924. send loop-player title "&6&l引き分けです" with subtitle "&6&l村人と人狼が全滅しました。" for 2 seconds
  1925. play sound "entity.zombie.break_door_wood" with volume 50 and pitch 1 at loop-player for loop-player
  1926. set {time} to 0
  1927. set {timer} to false
  1928. set {_integer} to 0
  1929. wait 5 seconds
  1930. delete {used-time-602}
  1931. delete {used-time-600}
  1932. delete {used-time-599}
  1933. loop all players:
  1934. teleport loop-player to {firstjoinlocation}
  1935. set loop-player's gamemode to survival
  1936. clear loop-player's inventory
  1937. delete {playing.%loop-player%}
  1938. delete {died.%loop-player%}
  1939. delete {used.%loop-player%}
  1940. set loop-player's tablist name to "&f%loop-player%"
  1941. set {state} to false
  1942. set {started} to false
  1943. broadcast "{@j} &6=================[&d今回の内訳&6]================="
  1944. broadcast "{@j} &b勝利陣営: なし"
  1945. if {sannkaninnzuu} is 4:
  1946. broadcast "{@j} &4人狼: [%{jinnrou1}%]"
  1947. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%], [%{murabito3}%]"
  1948. if {sannkaninnzuu} is 5:
  1949. broadcast "{@j} &4人狼: [%{jinnrou1}%]"
  1950. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  1951. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  1952. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%]"
  1953. if {sannkaninnzuu} is 6:
  1954. broadcast "{@j} &4人狼: [%{jinnrou1}%]"
  1955. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  1956. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  1957. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%], [%{murabito3}%]"
  1958. if {sannkaninnzuu} is 7:
  1959. broadcast "{@j} &4人狼: [%{jinnrou1}%], [%{jinnrou2}%]"
  1960. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  1961. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  1962. broadcast "{@j} &6霊媒師: [%{reibaisi1}%]"
  1963. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%]"
  1964. if {sannkaninnzuu} is 8:
  1965. broadcast "{@j} &4人狼: [%{jinnrou1}%], [%{jinnrou2}%]"
  1966. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  1967. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  1968. broadcast "{@j} &6霊媒師: [%{reibaisi1}%]"
  1969. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%], [%{murabito3}%]"
  1970. if {sannkaninnzuu} is 9:
  1971. broadcast "{@j} &4人狼: [%{jinnrou1}%], [%{jinnrou2}%], [%{jinnrou3}%]"
  1972. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  1973. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  1974. broadcast "{@j} &6霊媒師: [%{reibaisi1}%]"
  1975. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%], [%{murabito3}%]"
  1976. if {sannkaninnzuu} is 10:
  1977. broadcast "{@j} &4人狼: [%{jinnrou1}%], [%{jinnrou2}%], [%{jinnrou3}%]"
  1978. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  1979. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  1980. broadcast "{@j} &6霊媒師: [%{reibaisi1}%]"
  1981. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%], [%{murabito3}%], [%{murabito4}%]"
  1982. broadcast "{@j} &6============================================"
  1983. set {sannkaninnzuu} to 0
  1984. loop 10 times:
  1985. add 1 to {_integer}
  1986. delete {yakusyoku.%{sannka%{_integer}%}%}
  1987. delete {murabito%{_integer}%}
  1988. delete {jinnrou%{_integer}%}
  1989. delete {kyouzinn%{_integer}%}
  1990. delete {yogennsya%{_integer}%}
  1991. delete {reibaisi%{_integer}%}
  1992. delete {playing.%{sannka%{_integer}%}%}
  1993. delete {died.%{sannka%{_integer}%}%}
  1994. stop
  1995. if {murabitocount} is higher than 0:
  1996. loop all players:
  1997. send loop-player title "&a&l村人の勝利です!" with subtitle "&a&l人狼が全滅しました。" for 2 seconds
  1998. play sound "entity.player.levelup" with volume 50 and pitch 0 at loop-player for loop-player
  1999. set {time} to 0
  2000. set {timer} to false
  2001. set {_integer} to 0
  2002. wait 5 seconds
  2003. delete {used-time-602}
  2004. delete {used-time-600}
  2005. delete {used-time-599}
  2006. loop all players:
  2007. teleport loop-player to {firstjoinlocation}
  2008. set loop-player's gamemode to survival
  2009. clear loop-player's inventory
  2010. delete {playing.%loop-player%}
  2011. delete {died.%loop-player%}
  2012. delete {used.%loop-player%}
  2013. set loop-player's tablist name to "&f%loop-player%"
  2014. set {state} to false
  2015. set {started} to false
  2016. broadcast "{@j} &6=================[&d今回の内訳&6]================="
  2017. broadcast "{@j} &b勝利陣営: 村人陣営"
  2018. if {sannkaninnzuu} is 4:
  2019. broadcast "{@j} &4人狼: [%{jinnrou1}%]"
  2020. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%], [%{murabito3}%]"
  2021. if {sannkaninnzuu} is 5:
  2022. broadcast "{@j} &4人狼: [%{jinnrou1}%]"
  2023. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  2024. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  2025. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%]"
  2026. if {sannkaninnzuu} is 6:
  2027. broadcast "{@j} &4人狼: [%{jinnrou1}%]"
  2028. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  2029. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  2030. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%], [%{murabito3}%]"
  2031. if {sannkaninnzuu} is 7:
  2032. broadcast "{@j} &4人狼: [%{jinnrou1}%], [%{jinnrou2}%]"
  2033. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  2034. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  2035. broadcast "{@j} &6霊媒師: [%{reibaisi1}%]"
  2036. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%]"
  2037. if {sannkaninnzuu} is 8:
  2038. broadcast "{@j} &4人狼: [%{jinnrou1}%], [%{jinnrou2}%]"
  2039. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  2040. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  2041. broadcast "{@j} &6霊媒師: [%{reibaisi1}%]"
  2042. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%], [%{murabito3}%]"
  2043. if {sannkaninnzuu} is 9:
  2044. broadcast "{@j} &4人狼: [%{jinnrou1}%], [%{jinnrou2}%], [%{jinnrou3}%]"
  2045. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  2046. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  2047. broadcast "{@j} &6霊媒師: [%{reibaisi1}%]"
  2048. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%], [%{murabito3}%]"
  2049. if {sannkaninnzuu} is 10:
  2050. broadcast "{@j} &4人狼: [%{jinnrou1}%], [%{jinnrou2}%], [%{jinnrou3}%]"
  2051. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  2052. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  2053. broadcast "{@j} &6霊媒師: [%{reibaisi1}%]"
  2054. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%], [%{murabito3}%], [%{murabito4}%]"
  2055. broadcast "{@j} &6============================================"
  2056. set {sannkaninnzuu} to 0
  2057. loop 10 times:
  2058. add 1 to {_integer}
  2059. delete {yakusyoku.%{sannka%{_integer}%}%}
  2060. delete {murabito%{_integer}%}
  2061. delete {jinnrou%{_integer}%}
  2062. delete {kyouzinn%{_integer}%}
  2063. delete {yogennsya%{_integer}%}
  2064. delete {reibaisi%{_integer}%}
  2065. delete {sannka%{_integer}%}
  2066. delete {playing.%{sannka%{_integer}%}%}
  2067. delete {died.%{sannka%{_integer}%}%}
  2068. stop
  2069. if {murabitocount} is smaller than 1:
  2070. if {jinnroucount} is smaller than 1:
  2071. loop all players:
  2072. send loop-player title "&6&l引き分けです" with subtitle "&6&l村人と人狼が全滅しました。" for 2 seconds
  2073. play sound "entity.zombie.break_door_wood" with volume 50 and pitch 1 at loop-player for loop-player
  2074. set {time} to 0
  2075. set {timer} to false
  2076. set {_integer} to 0
  2077. wait 5 seconds
  2078. delete {used-time-602}
  2079. delete {used-time-600}
  2080. delete {used-time-599}
  2081. loop all players:
  2082. teleport loop-player to {firstjoinlocation}
  2083. set loop-player's gamemode to survival
  2084. clear loop-player's inventory
  2085. delete {playing.%loop-player%}
  2086. delete {died.%loop-player%}
  2087. delete {used.%loop-player%}
  2088. set loop-player's tablist name to "&f%loop-player%"
  2089. set {state} to false
  2090. set {started} to false
  2091. broadcast "{@j} &6=================[&d今回の内訳&6]================="
  2092. broadcast "{@j} &b勝利陣営: なし"
  2093. if {sannkaninnzuu} is 4:
  2094. broadcast "{@j} &4人狼: [%{jinnrou1}%]"
  2095. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%], [%{murabito3}%]"
  2096. if {sannkaninnzuu} is 5:
  2097. broadcast "{@j} &4人狼: [%{jinnrou1}%]"
  2098. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  2099. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  2100. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%]"
  2101. if {sannkaninnzuu} is 6:
  2102. broadcast "{@j} &4人狼: [%{jinnrou1}%]"
  2103. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  2104. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  2105. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%], [%{murabito3}%]"
  2106. if {sannkaninnzuu} is 7:
  2107. broadcast "{@j} &4人狼: [%{jinnrou1}%], [%{jinnrou2}%]"
  2108. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  2109. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  2110. broadcast "{@j} &6霊媒師: [%{reibaisi1}%]"
  2111. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%]"
  2112. if {sannkaninnzuu} is 8:
  2113. broadcast "{@j} &4人狼: [%{jinnrou1}%], [%{jinnrou2}%]"
  2114. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  2115. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  2116. broadcast "{@j} &6霊媒師: [%{reibaisi1}%]"
  2117. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%], [%{murabito3}%]"
  2118. if {sannkaninnzuu} is 9:
  2119. broadcast "{@j} &4人狼: [%{jinnrou1}%], [%{jinnrou2}%], [%{jinnrou3}%]"
  2120. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  2121. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  2122. broadcast "{@j} &6霊媒師: [%{reibaisi1}%]"
  2123. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%], [%{murabito3}%]"
  2124. if {sannkaninnzuu} is 10:
  2125. broadcast "{@j} &4人狼: [%{jinnrou1}%], [%{jinnrou2}%], [%{jinnrou3}%]"
  2126. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  2127. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  2128. broadcast "{@j} &6霊媒師: [%{reibaisi1}%]"
  2129. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%], [%{murabito3}%], [%{murabito4}%]"
  2130. broadcast "{@j} &6============================================"
  2131. set {sannkaninnzuu} to 0
  2132. loop 10 times:
  2133. add 1 to {_integer}
  2134. delete {yakusyoku.%{sannka%{_integer}%}%}
  2135. delete {murabito%{_integer}%}
  2136. delete {jinnrou%{_integer}%}
  2137. delete {kyouzinn%{_integer}%}
  2138. delete {yogennsya%{_integer}%}
  2139. delete {reibaisi%{_integer}%}
  2140. delete {sannka%{_integer}%}
  2141. delete {playing.%{sannka%{_integer}%}%}
  2142. delete {died.%{sannka%{_integer}%}%}
  2143. stop
  2144. if {jinnroucount} is higher than 0:
  2145. loop all players:
  2146. send loop-player title "&c&l人狼の勝利です!" with subtitle "&c&l村人が全滅しました。" for 2 seconds
  2147. play sound "entity.wither.death" with volume 50 and pitch 1 at loop-player for loop-player
  2148. set {winner} to "jinnrou"
  2149. set {time} to 0
  2150. set {timer} to false
  2151. set {_integer} to 0
  2152. wait 5 seconds
  2153. delete {used-time-602}
  2154. delete {used-time-600}
  2155. delete {used-time-599}
  2156. loop all players:
  2157. teleport loop-player to {firstjoinlocation}
  2158. set loop-player's gamemode to survival
  2159. clear loop-player's inventory
  2160. delete {playing.%loop-player%}
  2161. delete {died.%loop-player%}
  2162. delete {used.%loop-player%}
  2163. set loop-player's tablist name to "&f%loop-player%"
  2164. set {state} to false
  2165. set {started} to false
  2166. broadcast "{@j} &6=================[&d今回の内訳&6]================="
  2167. broadcast "{@j} &b勝利陣営: 人狼陣営"
  2168. if {sannkaninnzuu} is 4:
  2169. broadcast "{@j} &4人狼: [%{jinnrou1}%]"
  2170. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%], [%{murabito3}%]"
  2171. if {sannkaninnzuu} is 5:
  2172. broadcast "{@j} &4人狼: [%{jinnrou1}%]"
  2173. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  2174. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  2175. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%]"
  2176. if {sannkaninnzuu} is 6:
  2177. broadcast "{@j} &4人狼: [%{jinnrou1}%]"
  2178. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  2179. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  2180. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%], [%{murabito3}%]"
  2181. if {sannkaninnzuu} is 7:
  2182. broadcast "{@j} &4人狼: [%{jinnrou1}%], [%{jinnrou2}%]"
  2183. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  2184. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  2185. broadcast "{@j} &6霊媒師: [%{reibaisi1}%]"
  2186. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%]"
  2187. if {sannkaninnzuu} is 8:
  2188. broadcast "{@j} &4人狼: [%{jinnrou1}%], [%{jinnrou2}%]"
  2189. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  2190. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  2191. broadcast "{@j} &6霊媒師: [%{reibaisi1}%]"
  2192. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%], [%{murabito3}%]"
  2193. if {sannkaninnzuu} is 9:
  2194. broadcast "{@j} &4人狼: [%{jinnrou1}%], [%{jinnrou2}%], [%{jinnrou3}%]"
  2195. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  2196. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  2197. broadcast "{@j} &6霊媒師: [%{reibaisi1}%]"
  2198. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%], [%{murabito3}%]"
  2199. if {sannkaninnzuu} is 10:
  2200. broadcast "{@j} &4人狼: [%{jinnrou1}%], [%{jinnrou2}%], [%{jinnrou3}%]"
  2201. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  2202. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  2203. broadcast "{@j} &6霊媒師: [%{reibaisi1}%]"
  2204. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%], [%{murabito3}%], [%{murabito4}%]"
  2205. broadcast "{@j} &6============================================"
  2206. set {sannkaninnzuu} to 0
  2207. loop 10 times:
  2208. add 1 to {_integer}
  2209. delete {yakusyoku.%{sannka%{_integer}%}%}
  2210. delete {murabito%{_integer}%}
  2211. delete {jinnrou%{_integer}%}
  2212. delete {kyouzinn%{_integer}%}
  2213. delete {yogennsya%{_integer}%}
  2214. delete {reibaisi%{_integer}%}
  2215. delete {sannka%{_integer}%}
  2216. delete {playing.%{sannka%{_integer}%}%}
  2217. delete {died.%{sannka%{_integer}%}%}
  2218. stop
  2219. if {time} is smaller than 1:
  2220. set {timer} to false
  2221. loop all players:
  2222. send loop-player title "&6&l引き分けです" with subtitle "&c&l制限時間を過ぎました。" for 2 seconds
  2223. play sound "entity.player.levelup" with volume 50 and pitch 1 at loop-player for loop-player
  2224. set {time} to 0
  2225. set {timer} to false
  2226. set {_integer} to 0
  2227. wait 5 seconds
  2228. delete {used-time-602}
  2229. delete {used-time-600}
  2230. delete {used-time-599}
  2231. loop all players:
  2232. teleport loop-player to {firstjoinlocation}
  2233. set loop-player's gamemode to survival
  2234. clear loop-player's inventory
  2235. delete {used.%loop-player%}
  2236. delete {playing.%loop-player%}
  2237. delete {died.%loop-player%}
  2238. set loop-player's tablist name to "&f%loop-player%"
  2239. set {state} to false
  2240. set {started} to false
  2241. broadcast "{@j} &6=================[&d今回の内訳&6]================="
  2242. broadcast "{@j} &b勝利陣営: 村人陣営"
  2243. if {sannkaninnzuu} is 4:
  2244. broadcast "{@j} &4人狼: [%{jinnrou1}%]"
  2245. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%], [%{murabito3}%]"
  2246. if {sannkaninnzuu} is 5:
  2247. broadcast "{@j} &4人狼: [%{jinnrou1}%]"
  2248. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  2249. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  2250. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%]"
  2251. if {sannkaninnzuu} is 6:
  2252. broadcast "{@j} &4人狼: [%{jinnrou1}%]"
  2253. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  2254. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  2255. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%], [%{murabito3}%]"
  2256. if {sannkaninnzuu} is 7:
  2257. broadcast "{@j} &4人狼: [%{jinnrou1}%], [%{jinnrou2}%]"
  2258. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  2259. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  2260. broadcast "{@j} &6霊媒師: [%{reibaisi1}%]"
  2261. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%]"
  2262. if {sannkaninnzuu} is 8:
  2263. broadcast "{@j} &4人狼: [%{jinnrou1}%], [%{jinnrou2}%]"
  2264. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  2265. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  2266. broadcast "{@j} &6霊媒師: [%{reibaisi1}%]"
  2267. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%], [%{murabito3}%]"
  2268. if {sannkaninnzuu} is 9:
  2269. broadcast "{@j} &4人狼: [%{jinnrou1}%], [%{jinnrou2}%], [%{jinnrou3}%]"
  2270. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  2271. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  2272. broadcast "{@j} &6霊媒師: [%{reibaisi1}%]"
  2273. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%], [%{murabito3}%]"
  2274. if {sannkaninnzuu} is 10:
  2275. broadcast "{@j} &4人狼: [%{jinnrou1}%], [%{jinnrou2}%], [%{jinnrou3}%]"
  2276. broadcast "{@j} &5狂人: [%{kyouzinn1}%]"
  2277. broadcast "{@j} &1預言者: [%{yogennsya1}%]"
  2278. broadcast "{@j} &6霊媒師: [%{reibaisi1}%]"
  2279. broadcast "{@j} &a村人: [%{murabito1}%], [%{murabito2}%], [%{murabito3}%], [%{murabito4}%]"
  2280. broadcast "{@j} &6============================================"
  2281. set {sannkaninnzuu} to 0
  2282. loop 10 times:
  2283. add 1 to {_integer}
  2284. delete {yakusyoku.%{sannka%{_integer}%}%}
  2285. delete {murabito%{_integer}%}
  2286. delete {jinnrou%{_integer}%}
  2287. delete {kyouzinn%{_integer}%}
  2288. delete {yogennsya%{_integer}%}
  2289. delete {reibaisi%{_integer}%}
  2290. delete {sannka%{_integer}%}
  2291. delete {playing.%{sannka%{_integer}%}%}
  2292. delete {died.%{sannka%{_integer}%}%}
  2293. stop
  2294. wait 1 second
  2295. if arg 1 is "view":
  2296. if player is not an op:
  2297. send "{@j} &c権限がありません。"
  2298. if player is an op:
  2299. send "{@j} &e現在の参加者は %{sannka1}% %{sannka2}% %{sannka3}% %{sannka4}% %{sannka5}% %{sannka6}% %{sannka7}% %{sannka8}% %{sannka9}% %{sannka10}%"
  2300. send "{@j} &e参加人数は &e&l%{sannkaninnzuu}% &r&e人です。"
  2301. if arg 1 is "locate":
  2302. if player is not an op:
  2303. send "{@j} &c権限がありません。"
  2304. if player is an op:
  2305. if arg 2 is not set:
  2306. set {_integer} to 0
  2307. loop 10 times:
  2308. add 1 to {_integer}
  2309. send "{@j} locate %{_integer}% %{location%{_integer}%}%"
  2310. if arg 2 is set:
  2311. if arg 2 is higher than 0:
  2312. if arg 2 is smaller than 11:
  2313. set {location%arg 2%} to location of player
  2314. send "{@j} &e{location%arg 2%}を%location of player%に設定しました。"
  2315. if arg 1 is "stop":
  2316. if player is not an op:
  2317. send "{@j} &c権限がありません。"
  2318. else:
  2319. send "{@j} &c/j accept と10秒以内に入力することで、ゲームを強制終了できます。"
  2320. send "{@j} &e&o※注意。よく考えて使用してください。"
  2321. set {accept} to true
  2322. wait 10 seconds
  2323. if {accept} is true:
  2324. delete {accept}
  2325. send "{@j} &c{accept}はfalseになりました。"
  2326. if arg 1 is "accept":
  2327. if player is not an op:
  2328. send "{@j} &c権限がありません。"
  2329. else:
  2330. if {accept} is true:
  2331. set {stopgame} to true
  2332. delete {accept}
  2333. send "{@j} &cゲームは停止されます。"
  2334. if arg 1 is "info":
  2335. if {timer} is true:
  2336. if {yakusyoku.%player%} is set:
  2337. if {died.%player%} is true:
  2338. open chest with 5 rows named "&6参加人数&a: %{sannkaninnzuu}%" to player
  2339. else:
  2340. send "{@j} &cゲームに参加して、なおかつ死んでいないので使用できません。"
  2341. else:
  2342. open chest with 5 rows named "&6参加人数&a: %{sannkaninnzuu}%" to player
  2343. else:
  2344. send "{@j} &cゲームが始まっていないため使用できません。"
  2345.  
  2346. on right click with stick:
  2347. if name of player's tool is "glowing rod":
  2348. apply glowing to targeted player for 10 seconds
  2349.  
  2350. command /var [<text>] [<integer>]:
  2351. trigger:
  2352. if player is not an op:
  2353. send "{@j} &c権限がありません。"
  2354. else:
  2355. if arg 1 is "sannkaninnzuu":
  2356. set {sannkaninnzuu} to arg 2
  2357. send "{@j} &e設定しました。"
  2358. if arg 1 is "state":
  2359. if arg 2 is not set:
  2360. send "{@j} &e%{state}%"
  2361. if arg 2 is 1:
  2362. set {state} to true
  2363. send "{@j} &e%{state}%"
  2364. if arg 2 is 2:
  2365. set {state} to false
  2366. send "{@j} &e%{state}%"
  2367. if arg 1 is "timer":
  2368. if arg 2 is not set:
  2369. send "{@j} &e%{timer}%"
  2370. if arg 2 is 1:
  2371. set {timer} to true
  2372. send "{@j} &e%{timer}%"
  2373. if arg 2 is 2:
  2374. set {timer} to false
  2375. send "{@j} &e%{timer}%"
  2376. if arg 1 is "started":
  2377. if arg 2 is not set:
  2378. send "{@j} &e%{started}%"
  2379. if arg 2 is 1:
  2380. set {started} to true
  2381. send "{@j} &e%{started}%"
  2382. if arg 2 is 2:
  2383. set {started} to false
  2384. send "{@j} &e%{started}%"
  2385. if arg 1 is "time":
  2386. if arg 2 is not set:
  2387. send "{@j} &e%{time}%"
  2388. if arg 2 is set:
  2389. if arg 2 is between 0 and 9999:
  2390. set {time} to arg 2
  2391. send "{@j} &e%{time}%"
  2392. else:
  2393. send "{@j} &cその数値は無効です。"
  2394.  
  2395. command /uranai [<player>]:
  2396. trigger:
  2397. if {yakusyoku.%player%} is "yogennsya":
  2398. if {died.%player%} is set:
  2399. send "{@j} &c死亡しているため使用できません。"
  2400. if {died.%player%} is not set:
  2401. if {used.%player%} is true:
  2402. send "{@j} &c使用済みです。"
  2403. else:
  2404. if arg 1 is not set:
  2405. send "{@j} 使用例: /uranai [player]"
  2406. if arg 1 is set:
  2407. if {yakusyoku.%arg 1%} is not set:
  2408. send "{@j} &cそのプレイヤーはゲームに参加していません。"
  2409. if {yakusyoku.%arg 1%} is set:
  2410. if {yakusyoku.%arg 1%} is "yogennsya", "reibaisi", "kyouzinn" or "murabito":
  2411. send "&c[GM] &a%arg 1% &eは、&a&l人狼ではありません。"
  2412. set {used.%player%} to true
  2413. if {yakusyoku.%arg 1%} is "jinnrou":
  2414. send "&c[GM] &a%arg 1% &eは、&4&l人狼です。"
  2415. set {used.%player%} to true
  2416. if {yakusyoku.%arg 1%} is "youko":
  2417. send "&c[GM] &a%arg 1% &eは、&a&l人狼ではありません。"
  2418. set {used.%player%} to true
  2419. broadcast "{@j} &d%arg 1%&eが呪殺されました。"
  2420. send "{@j} &c貴方は&6%player%&cに呪殺されました。" to arg 1
  2421. clear arg 1's inventory
  2422. add 30 to {time}
  2423. set {died.%arg 1%} to true
  2424. remove 1 from {youkocount}
  2425. set arg 1's gamemode to spectator
  2426. set arg 1's tablist name to " "
  2427. else:
  2428. send "{@j} &c貴方の役職はこのコマンドを使用することができません。"
  2429.  
  2430. command /reibai [<player>]:
  2431. trigger:
  2432. if {yakusyoku.%player%} is "reibaisi":
  2433. if {died.%player%} is set:
  2434. send "{@j} &c死亡しているため使用できません。"
  2435. if {died.%player%} is not set:
  2436. if {used.%player%} is true:
  2437. send "{@j} &c使用済みです。"
  2438. else:
  2439. if arg 1 is not set:
  2440. send "{@j} 使用例: /reibai [player]"
  2441. if arg 1 is set:
  2442. if {yakusyoku.%arg 1%} is not set:
  2443. send "{@j} &cそのプレイヤーはゲームに参加していません。"
  2444. if {yakusyoku.%arg 1%} is set:
  2445. if {died.%arg 1%} is true:
  2446. if {yakusyoku.%arg 1%} is "yogennsya", "reibaisi", "kyouzinn", "kyouyuusya", "kyousinnsya", "sasayakukyouzinn", "kennzya", "wanasi", "kariudo", "nekomata", "kuroneko", "haitokusya" or "murabito":
  2447. send "&c[GM] &a%arg 1% &eは、&a&l人狼ではありません。"
  2448. set {used.%player%} to true
  2449. if {yakusyoku.%arg 1%} is "jinnrou":
  2450. send "&c[GM] &a%arg 1% &eは、&4&l人狼です。"
  2451. set {used.%player%} to true
  2452. else:
  2453. send "&c[GM] &a%arg 1% &eは、&b生存しています。"
  2454. else:
  2455. send "{@j} &c貴方の役職はこのコマンドを使用することができません。"
  2456.  
  2457. command /yakusyoku [<integer>]:
  2458. trigger:
  2459. if player is not an op:
  2460. send "{@j} &c権限がありません。"
  2461. if player is an op:
  2462. if arg 1 is not set:
  2463. send "{@j} &c内容が含まれていません。"
  2464. if arg 1 is set:
  2465. if arg 1 is 1:
  2466. loop {servermember::*}:
  2467. if {yakusyoku.%loop-value%} is set:
  2468. send "{@j} &e%loop-value% %{yakusyoku.%loop-value%}%"
  2469. if arg 1 is 2:
  2470. set {_integer} to 0
  2471. loop 10 times:
  2472. add 1 to {_integer}
  2473. send "{@j} %{sannka%{_integer}%}% : %{yakusyoku.%{sannka%{_integer}%}%}%"
  2474.  
  2475. command /oukyuu:
  2476. trigger:
  2477. if player is not an op:
  2478. send "{@j} &c権限がありません。"
  2479. if player is an op:
  2480. set {_integer} to 0
  2481. loop 10 times:
  2482. add 1 to {_integer}
  2483. delete {yakusyoku.%{sannka%{_integer}%}%}
  2484. delete {murabito%{_integer}%}
  2485. delete {jinnrou%{_integer}%}
  2486. delete {kyouzinn%{_integer}%}
  2487. delete {yogennsya%{_integer}%}
  2488. delete {reibaisi%{_integer}%}
  2489. delete {sannka%{_integer}%}
  2490. delete {playing.%{sannka%{_integer}%}%}
  2491. delete {died.%{sannka%{_integer}%}%}
  2492. delete {used-time-602}
  2493. delete {used-time-600}
  2494. delete {used-time-599}
  2495. set {started} to false
  2496. set {sannkaninnzuu} to 0
  2497. loop all players:
  2498. delete {yakusyoku.%loop-player%}
  2499. set loop-player's tablist name to "&f%loop-player%"
  2500.  
  2501. command /distance [<player>]:
  2502. trigger:
  2503. if player is not an op:
  2504. send "{@j} &c権限がありません。"
  2505. if player is an op:
  2506. set {_a} to distance between player and arg 1
  2507. send "{@j} &6%player%&aと&6%arg 1%&aの距離は&b%{_a}%&aMです!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement