Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 67.13 KB | None | 0 0
  1.  
  2. options:
  3. logo: &8[&4&l人狼RPG&8]
  4. ser : &8[&bServer&8]
  5.  
  6. command /check:
  7. permission: skript.admin
  8. trigger:
  9. send "%{ji}%"
  10. send "%{mu}%"
  11.  
  12. on right click:
  13. event-item is armor stand:
  14. cancel event
  15. cancel event
  16. cancel event
  17. cancel event
  18. cancel event
  19. cancel event
  20. cancel event
  21. cancel event
  22.  
  23. command /touhyou [<player>]:
  24. executable by: console
  25. trigger:
  26. broadcast "&e============================"
  27. broadcast "&b%arg-1%&aさんがサーバーに投票してくれました!!"
  28. broadcast " &6&l(人''▽`)ありがとう☆!"
  29. broadcast "&e============================"
  30. send "&e投票ありがとうございます!&bAthletic Coin&eを20枚プレゼント!" to arg-1
  31. send "&e投票ありがとうございます!&b400XP&eをプレゼント!" to arg-1
  32. add 400 to {xp.%arg-1%}
  33. give arg-1 20 iron nugget named "&eAthletic Coin"
  34.  
  35. on drop:
  36. event-item is nether star:
  37. cancel event
  38.  
  39. command /closeserver [<text>]:
  40. permission: skript.admin
  41. trigger:
  42. if arg-1 is not set:
  43. send "&cHelp … ""/closeserver [理由]"" これを実行するとOP以外をKICKします"
  44. if arg-1 is set:
  45. broadcast "&e%player%&aによりOP以外をkickさせていただきます &b理由 … &c[%arg-1%]"
  46. wait 3 seconds
  47. command "/whitelist on"
  48. loop all players:
  49. if loop-player is not an op:
  50. kick the loop-player due to "&cメンテナンスに入るためkickさせていただきます。&e理由 [%arg-1%] "
  51.  
  52.  
  53. on death:
  54. if victim is skeleton:
  55. if {gouhu.%attacker%} is "true":
  56. chance of 60%:
  57. give attacker 2 emerald
  58. else:
  59. chance of 60%:
  60. give attacker 1 emerald
  61.  
  62. on chat:
  63. if {chat.%player%} is "kansen":
  64. cancel event
  65. loop all players:
  66. if {chat.%loop-player%} is "kansen":
  67. message "&a[観戦Chat] &b%player%: &f%message%" to loop-player
  68. if {time} is not "night":
  69. if {chat.%player%} is "all":
  70. command "execute @a ~ ~ ~ /playsound minecraft:entity.item.pickup master @a ~ ~ ~"
  71.  
  72. on right click holding south facing ender dragon head:
  73. send "&c未実装ですごめんなさい" to player
  74.  
  75. command /co [<text>]:
  76. trigger:
  77. if arg-1 is "help":
  78. send "&e=======&4【&aCO-Help&4】&e======="
  79. send "&b/co j … &d人狼をCOします"
  80. send "&b/co k … &d狂人をCOします"
  81. send "&b/co m … &d村人をCOします"
  82. send "&b/co v … &d吸血鬼をCOします"
  83. send "&b/co h … &d富豪をCOします"
  84. send "&b/co ka … &dカメレオンをCOします"
  85. send "&b/co s … &d聖人をCOします"
  86. send "&c※ 1回使ったら60秒使うことができません"
  87. send "&c※ COは朝にしかできません"
  88. send "&e=================================="
  89. else:
  90. if {game} is "true":
  91. if {time} is "day":
  92. if {co.cool.%player%} is not set:
  93. if arg-1 is "jinrou" or "j":
  94. broadcast "{@logo} &7<%player%> &4人狼&bカミングアウト"
  95. set {co.cool.%player%} to "set"
  96. set player's tab list name to "&f%player% &8[&4人狼CO&8]"
  97. wait 60 seconds
  98. delete {co.cool.%player%}
  99. send "{@logo} &aCO可能です"
  100. if arg-1 is "murabito" or "m":
  101. broadcast "{@logo} &7<%player%> &a村人&bカミングアウト"
  102. set {co.cool.%player%} to "set"
  103. set player's tab list name to "&f%player% &8[&a村人CO&8]"
  104. wait 60 seconds
  105. delete {co.cool.%player%}
  106. send "{@logo} &aCO可能です"
  107. if arg-1 is "kyouzin" or "k":
  108. if {kyouzin} is not 0:
  109. broadcast "{@logo} &7<%player%> &8狂人&bカミングアウト"
  110. set {co.cool.%player%} to "set"
  111. set player's tab list name to "&f%player% &8[&7狂人CO&8]"
  112. wait 60 seconds
  113. delete {co.cool.%player%}
  114. send "{@logo} &aCO可能です"
  115. else:
  116. send "{@logo} &c今回の試合に狂人はいません"
  117. if arg-1 is "vampire" or "v":
  118. if {kyu} is not 0:
  119. broadcast "{@logo} &7<%player%> &d吸血鬼&bカミングアウト"
  120. set {co.cool.%player%} to "set"
  121. set player's tab list name to "&f%player% &8[&d吸血鬼CO&8]"
  122. wait 60 seconds
  123. delete {co.cool.%player%}
  124. send "{@logo} &aCO可能です"
  125. else:
  126. send "{@logo} &c今回の試合に吸血鬼はいません"
  127. if arg-1 is "hugou" or "h":
  128. if {gouhu} is not 0:
  129. broadcast "{@logo} &7<%player%> &6富豪&bカミングアウト"
  130. set {co.cool.%player%} to "set"
  131. set player's tab list name to "&f%player% &8[&6富豪CO&8]"
  132. wait 60 seconds
  133. delete {co.cool.%player%}
  134. send "{@logo} &aCO可能です"
  135. else:
  136. send "{@logo} &c今回の試合に豪富はいません"
  137. if arg-1 is "kamereon" or "ka":
  138. if {kame} is not 0:
  139. broadcast "{@logo} &7<%player%> &bカメレオン&bカミングアウト"
  140. set {co.cool.%player%} to "set"
  141. set player's tab list name to "&f%player% &8[&bカメレオンCO&8]"
  142. wait 60 seconds
  143. delete {co.cool.%player%}
  144. send "{@logo} &aCO可能です"
  145. else:
  146. send "{@logo} &c今回の試合にカメレオンはいません"
  147. if arg-1 is "syounin" or "s":
  148. if {syo} is not 0:
  149. broadcast "{@logo} &7<%player%> &b聖人&bカミングアウト"
  150. set {co.cool.%player%} to "set"
  151. set player's tab list name to "&f%player% &8[&b聖人CO&8]"
  152. wait 60 seconds
  153. delete {co.cool.%player%}
  154. send "{@logo} &aCO可能です"
  155. else:
  156. send "{@logo} &c今回の試合に聖人はいません"
  157. else:
  158. send "{@logo} &cまだCOできません"
  159. else:
  160. send "{@logo} &cCOは朝の間だけ可能です"
  161. else:
  162. send "{@logo} &cゲームは始まっていません"
  163.  
  164.  
  165. command /jinro [<text>]:
  166. permission: skript.admin
  167. permission message: &cYou don't have permission!
  168. trigger:
  169. if arg-1 is "check":
  170. broadcast "&8--------=&c【現在の役職設定】&8=------"
  171. broadcast "&c 人狼 &f… &b%{jinrou}%&e人"
  172. if {kame} is not 0:
  173. broadcast "&c カメレオン &f… &b%{kame}%&e人"
  174. if {kyouzin} is not 0:
  175. broadcast "&8 狂人 &f… &b%{kyouzin}%&e人"
  176. if {syo} is not 0:
  177. broadcast "&b 聖人 &f… &b%{syo}%&e人"
  178. if {gouhu} is not 0:
  179. broadcast "&6 富豪 &f… &b%{gouhu}%&e人"
  180. if {kyu} is not 0:
  181. broadcast "&d 吸血鬼 &f… &b%{kyu}%&e人"
  182. broadcast "&8------------------------------------"
  183. if arg-1 is "help":
  184. send "&b----------------==&e【Help】&b==---------------"
  185. send "&a… ""/jinro help"" &e人狼のHelpを表示します"
  186. send "&a… ""/jinro start"" &e人狼を始めます"
  187. send "&a… ""/jinro stop"" &e人狼を強制終了させます"
  188. send "&a… ""/jinro check"" &e人狼の役職人数を表示します"
  189. send "&b-----------------------------------------------"
  190. if arg-1 is not set:
  191. send "&b----------------==&e【Help】&b==---------------"
  192. send "&a… ""/jinro help"" &e人狼のHelpを表示します"
  193. send "&a… ""/jinro start"" &e人狼を始めます"
  194. send "&a… ""/jinro stop"" &e人狼を強制終了させます"
  195. send "&a… ""/jinro check"" &e人狼の役職人数を表示します"
  196. send "&b-----------------------------------------------"
  197. if arg-1 is "stop":
  198. set {game} to "false"
  199. command "/scoreboard teams leave @a"
  200. command "/scoreboard players set 日 jinrou 0"
  201. broadcast "&8--------=&c【今回の役職】&8=--------"
  202. broadcast "&4 人狼&e(&b%{jinrou}%&e) &f… &c%{jinrou::*}%"
  203. if {kame} is not 0:
  204. broadcast "&c カメレオン&e(&b%{kame}%&e) &f… &d%{kame::*}%"
  205. if {kyouzin} is not 0:
  206. broadcast "&8 狂人&e(&b%{kyozin}%&e) &f… &5%{kyouzin::*}%"
  207. if {syo} is not 0:
  208. broadcast "&b 聖人&e(&b%{syo}%&e) &f… &a%{syo::*}%"
  209. if {gouhu} is not 0:
  210. broadcast "&6 富豪&e(&b%{gouhu}%&e) &f… &e%{gouhu::*}%"
  211. if {kyu} is not 0:
  212. broadcast "&d 吸血鬼&e(&b%{kyu}%&e) &f… &b%{kyu::*}%"
  213. broadcast "&e ゲーム参加人数: &a[&b%{join}%&8/&e%number of all players%&a]"
  214. broadcast "&8------------------------------------"
  215. delete {jinrou::*}
  216. set {join} to 0
  217. delete {_player::*}
  218. delete {kyozin::*}
  219. delete {gouhu::*}
  220. delete {kyu::*}
  221. delete {syo::*}
  222. delete {kame::*}
  223. set {ji} to 0
  224. set {kyuketu} to 0
  225. set {mu} to 0
  226. set {map} to "none"
  227. delete {murabito::*}
  228. set {time} to "none"
  229. set {times} to 150
  230. set {hi} to 0
  231. delete {_p}
  232. delete {_a}
  233. delete {_i}
  234. delete {_u}
  235. delete {_e}
  236. delete {_o}
  237. command "/clear @a stick"
  238. command "/clear @a armor_stand"
  239. command "/clear @a paper"
  240. command "/clear @a cooked_beef"
  241. command "/clear @a splash_potion"
  242. command "/clear @a potion"
  243. command "/clear @a emerald"
  244. command "/clear @a end_crystal"
  245. command "/clear @a redstone"
  246. command "/clear @a bow"
  247. command "/clear @a record_far"
  248. command "/clear @a arrow"
  249. command "/clear @a wooden_sword"
  250. command "/clear @a stone_axe"
  251. command "/clear @a minecraft:totem_of_undying"
  252. command "/clear @a firework_charge"
  253. command "/clear @a bed"
  254. command "/clear @a stone_sword"
  255. command "/kill @e[type=skeleton,name=&7Skeleton]"
  256. command "/clear @a written_book"
  257. loop all players:
  258. delete {co.cool.%loop-player%}
  259. set loop-player's tab list name to "&f%loop-player%"
  260. reveal the loop-player from all players
  261. set {sanka.%loop-player%} to "false"
  262. set {score.%loop-player%} to 0
  263. set slot 4 of loop-player to 1 nether star named "&aゲームに参加"
  264. set slot 1 of loop-player to 1 south facing ender dragon head named "&eYour Status"
  265. set {jinrou.%loop-player%} to "false"
  266. set {kyouzin.%loop-player%} to "false"
  267. set {vampire.%loop-player%} to "false"
  268. set {kame.%loop-player%} to "false"
  269. set {syo.%loop-player%} to "false"
  270. set {gouhu.%loop-player%} to "false"
  271. set {kisi.%loop-player%} to "false"
  272. set {me.%loop-player%} to "false"
  273. set {chat.%loop-player%} to "all"
  274. clear all potion effects from loop-player
  275. set loop-player's gamemode to spectator
  276. wait 5 seconds
  277. teleport all players to {lobby}
  278. loop all players:
  279. set loop-player's gamemode to survival
  280. if arg-1 is "start":
  281. broadcast "{@logo} &aマップを選んでいます…"
  282. wait 2 seconds
  283. command "/clear @a nether_star"
  284. set {_chance} to random integer between 1 and 3
  285. if {_chance} is 1:
  286. loop all players:
  287. send title "&8&k!!&6&l Unknown Stage &8&k!!" to loop-player
  288. broadcast "&6================================="
  289. broadcast "&b Made: NAGITOO"
  290. broadcast "&b &aMAP: Unknown Stage"
  291. broadcast "&6=================================="
  292. command "/execute @a ~ ~ ~ /playsound minecraft:entity.generic.explode master @a"
  293. set {map} to 1
  294. wait 1 seconds
  295. execute console command "/tp @a[team=sanka] -349 9 1375"
  296. loop all players:
  297. set {admin.%loop-player%} to "false"
  298. if {_chance} is 2:
  299. loop all players:
  300. send title "&8&k!!&6&l 山 &8&k!!" to loop-player
  301. broadcast "&6=============================="
  302. broadcast "&b Made: yuuhikun , tnksei"
  303. broadcast "&b &aMAP: 山"
  304. broadcast "&6==============================="
  305. command "/execute @a ~ ~ ~ /playsound minecraft:entity.generic.explode master @a"
  306. set {map} to 2
  307. wait 1 seconds
  308. execute console command "/tp @a[team=sanka] 100 5 100"
  309. loop all players:
  310. set {admin.%loop-player%} to "false"
  311. if {_chance} is 3:
  312. loop all players:
  313. send title "&8&k!!&6&l 異次元 &8&k!!" to loop-player
  314. broadcast "&6=============================="
  315. broadcast "&b Made: AndrewYu"
  316. broadcast "&b &aMAP: moutain"
  317. broadcast "&6==============================="
  318. command "/execute @a ~ ~ ~ /playsound minecraft:entity.generic.explode master @a"
  319. set {map} to 3
  320. wait 1 seconds
  321. execute console command "/tp @a[team=sanka] 727 5 -880"
  322. loop all players:
  323. set {admin.%loop-player%} to "false"
  324. execute console command "/gamemode spectator @a[team=sanka]"
  325. wait 5 seconds
  326. if {map} is 1:
  327. execute console command "/tp @a[team=sanka] 727 5 -880"
  328. else if {map} is 2:
  329. execute console command "/tp @a[team=sanka] 727 5 -880"
  330. else if {map} is 3:
  331. execute console command "/tp @a[team=sanka] 727 5 -880"
  332. execute console command "/gamemode survival @a[team=sanka]"
  333. command "/clear @a skull"
  334. wait 2 tick
  335. broadcast "{@logo} &e試合を開始します。開始前にプレイヤーは散らばりましょう"
  336. broadcast "{@logo} &e試合開始までのこり&c15秒前&e…"
  337. command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.fail master @a"
  338. loop all players:
  339. send title "&e15…" to loop-player
  340. wait 5 seconds
  341. broadcast "{@logo} &e試合開始までのこり&c10秒前&e…"
  342. command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.fail master @a"
  343. loop all players:
  344. send title "&e10…" to loop-player
  345. wait 5 seconds
  346. broadcast "{@logo} &e試合開始までのこり&c5秒前&e…"
  347. command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.fail master @a"
  348. loop all players:
  349. send title "&e5…" to loop-player
  350. wait 1 seconds
  351. broadcast "{@logo} &e試合開始までのこり&c4秒前&e…"
  352. command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.fail master @a"
  353. loop all players:
  354. send title "&e4…" to loop-player
  355. wait 1 seconds
  356. broadcast "{@logo} &e試合開始までのこり&c3秒前&e…"
  357. command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.fail master @a"
  358. loop all players:
  359. send title "&e3…" to loop-player
  360. wait 1 seconds
  361. broadcast "{@logo} &e試合開始までのこり&c2秒前&e…"
  362. command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.fail master @a"
  363. loop all players:
  364. send title "&e2…" to loop-player
  365. wait 1 seconds
  366. broadcast "{@logo} &e試合開始までのこり&c1秒前&e…"
  367. command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.fail master @a"
  368. loop all players:
  369. send title "&e1…" to loop-player
  370. wait 1 seconds
  371. broadcast "{@logo} &6&lStart!"
  372. broadcast "{@logo} &7役職が配られました"
  373. execute console command "/execute @a ~ ~ ~ /playsound minecraft:entity.wolf.howl master @a ~ ~ ~"
  374. command "/kill @e[type=skeleton]"
  375. wait 2 tick
  376. command "/time set night"
  377. command "/summonskeleton"
  378. set {time} to "night"
  379. set {times} to 150
  380. loop all players:
  381. if {sanka.%loop-player%} is "true":
  382. set loop-player's max health to 20
  383. set loop-player's health to 20
  384. set loop-player's hunger to 20
  385. add loop-player to {_player::*}
  386. command "/scoreboard teams join murabito %loop-player%"
  387. set {score.%loop-player%} to 7
  388. add 1 to {mu}
  389. loop {jinrou} times:
  390. set {_p} to random player of {_player::*}
  391. add {_p} to {jinrou::*}
  392. set {jinrou.%{_p}%} to "true"
  393. command "/scoreboard teams join jinrou %{_p}%"
  394. remove 1 from {mu}
  395. set {score.%{_p}%} to 1
  396. remove {_p} from {_player::*}
  397. loop {kyouzin} times:
  398. set {_a} to random player of {_player::*}
  399. command "/scoreboard teams join kyouzin %{_a}%"
  400. set {score.%{_a}%} to 2
  401. add {_a} to {kyozin::*}
  402. remove 1 from {mu}
  403. set {kyouzin.%{_a}%} to "true"
  404. remove {_a} from {_player::*}
  405. loop {kyu} times:
  406. set {_i} to random player of {_player::*}
  407. command "/scoreboard teams join kyuketu %{_i}%"
  408. set {score.%{_i}%} to 3
  409. add {_i} to {kyu::*}
  410. remove 1 from {mu}
  411. set {vampire.%{_i}%} to "true"
  412. remove {_i} from {_player::*}
  413. loop {gouhu} times:
  414. set {_u} to random player of {_player::*}
  415. set {score.%{_u}%} to 4
  416. add {_u} to {gouhu::*}
  417. set {gouhu.%{_u}%} to "true"
  418. command "/scoreboard teams join gouhu %{_u}%"
  419. remove {_u} from {_player::*}
  420. loop {kame} times:
  421. set {_e} to random player of {_player::*}
  422. set {score.%{_e}%} to 5
  423. remove 1 from {mu}
  424. add {_e} to {kame::*}
  425. set {kame.%{_e}%} to "true"
  426. command "/scoreboard teams join kamereon %{_e}%"
  427. remove {_e} from {_player::*}
  428. loop {syo} times:
  429. set {_o} to random player of {_player::*}
  430. set {score.%{_o}%} to 6
  431. add {_o} to {syo::*}
  432. set {syo.%{_o}%} to "true"
  433. command "/scoreboard teams join syounin %{_o}%"
  434. remove {_o} from {_player::*}
  435. add {_player::*} to {murabito::*}
  436. #1 = 人狼 ¦ 2 = 狂人 ¦ 3 = 吸血鬼 ¦ 4 = 豪富 ¦ 5 = カメレオン ¦ 6 = 聖人 ¦ 7 = 村人
  437. set {ji} to {jinrou}
  438. set {kyuketu} to {kyu}
  439. wait a tick
  440. set {game} to "true"
  441. broadcast "&8--------=&c【役職】&8=--------"
  442. broadcast "&c 人狼 &f… &b%{jinrou}%&e人"
  443. if {kame} is not 0:
  444. broadcast "&c カメレオン &f… &b%{kame}%&e人"
  445. if {kyouzin} is not 0:
  446. broadcast "&8 狂人 &f… &b%{kyouzin}%&e人"
  447. if {syo} is not 0:
  448. broadcast "&b 聖人 &f… &b%{syo}%&e人"
  449. if {gouhu} is not 0:
  450. broadcast "&6 富豪 &f… &b%{gouhu}%&e人"
  451. if {kyu} is not 0:
  452. broadcast "&d 吸血鬼 &f… &b%{kyu}%&e人"
  453. broadcast "&a 村人 &f… &b%{mu}%&e人"
  454. broadcast "&8-------------------------------"
  455. loop all players:
  456. command "/clear %loop-player% minecraft:writable_book"
  457. if {score.%loop-player%} is 0:
  458. set slot 4 of loop-player to 1 bed named "&c観戦"
  459. set {co.cool.%loop-player%} to "set"
  460. set {chat.%loop-player%} to "kansen"
  461. if {score.%loop-player%} is 1:
  462. execute console command "menu grab %loop-player% jinrou"
  463. give loop-player pieces of paper named "&4&l人狼" with lore "&e他の人狼" and "&3→→ &b%{jinrou::*}%" and "&6勝利条件 : &f他の人狼を&cすべて倒したら&f勝利。"
  464. send "&aあなたは&4&l人狼&aです" to loop-player
  465. send "&e他の人狼 … &f%{jinrou::*}%" to loop-player
  466. send "&a紙に役職説明が書いています" to loop-player
  467. send title "&aあなたは&4&l人狼&aです" with subtitle "&e他の人狼 … &f%{jinrou::*}%" to loop-player
  468. else:
  469. if {score.%loop-player%} is 2:
  470. send title "&aあなたは&8&l狂人&aです" with subtitle "&7紙に役職説明が書いています" to loop-player
  471. send "&aあなたは&8&l狂人&aです" to loop-player
  472. execute console command "menu grab %loop-player% kyouzin"
  473. else:
  474. if {score.%loop-player%} is 3:
  475. send title "&aあなたは&d&l吸血鬼&aです" with subtitle "&7紙に役職説明が書いています" to loop-player
  476. send "&aあなたは&d&l吸血鬼&aです" to loop-player
  477. execute console command "/menu grab %loop-player% kyuketu"
  478. else:
  479. if {score.%loop-player%} is 4:
  480. send title "&aあなたは&6&l富豪&aです" with subtitle "&7紙に役職説明が書いています" to loop-player
  481. send "&aあなたは&6&l富豪&aです" to loop-player
  482. execute console command "/menu grab %loop-player% gouhu"
  483. else:
  484. if {score.%loop-player%} is "5":
  485. send title "&aあなたは&c&lカメレオン&aです" with subtitle "&7紙に役職説明が書いています" to loop-player
  486. send "&aあなたは&c&lカメレオン&aです" to loop-player
  487. execute console command "/menu grab %loop-player% kamereon"
  488. else:
  489. if {score.%loop-player%} is "6":
  490. send title "&aあなたは&b&l聖人&aです" with subtitle "&7紙に役職説明が書いています" to loop-player
  491. send "&aあなたは&b&l聖人&aです" to loop-player
  492. execute console command "/menu grab %loop-player% syo"
  493. else:
  494. if {score.%loop-player%} is 7:
  495. send title "&aあなたは&a&l村人&aです" with subtitle "&7紙に役職説明が書いています" to loop-player
  496. send "&aあなたは&a&l村人&aです" to loop-player
  497. execute console command "/menu grab %loop-player% muraibito"
  498.  
  499.  
  500. #1 = 人狼 ¦ 2 = 狂人 ¦ 3 = 吸血鬼 ¦ 4 = 豪富 ¦ 5 = 村人#
  501.  
  502. on death of player:
  503. wait a tick
  504. if {game} is "true":
  505. hide the player from all players
  506. set victim's tab list name to "&f%victim%"
  507. set {chat.%victim%} to "kansen"
  508. set {co.cool.%victim%} to "set"
  509. if {jinrou.%victim%} is "true":
  510. remove 1 from {ji}
  511. else:
  512. if {kame.%victim%} is "true":
  513. remove 1 from {ji}
  514. else:
  515. if {vampire.%victim%} is "true":
  516. remove 1 from {kyuketu}
  517. else:
  518. if {murabito::*} contains victim:
  519. remove 1 from {mu}
  520. force victim to respawn
  521. send "{@logo} &c死んでしまったため観戦になりました" to victim
  522. send "{@logo} &cあなたはを殺した人:&e%attacker%" to victim
  523. command "/clear %player%"
  524. set {jinrou.%victim%} to "false"
  525. set {kyouzin.%victim%} to "false"
  526. set {gouhu.%victim%} to "false"
  527. set {vampire.%victim%} to "false"
  528. set {kame.%victim%} to "false"
  529. set {syo.%victim%} to "false"
  530. remove victim from {murabito::*}
  531. wait a tick
  532. set slot 4 of victim to 1 bed named "&c観戦"
  533.  
  534. on join:
  535. set {jinrou.%player%} to "false"
  536. set {kyouzin.%player%} to "false"
  537. set {gouhu.%player%} to "false"
  538. set {vampire.%player%} to "false"
  539. set {kame.%player%} to "false"
  540. set {syo.%player%} to "false"
  541. remove player from {murabito::*}
  542.  
  543.  
  544. command /summonskeleton:
  545. permission: skript.admin
  546. trigger:
  547. if {map} is 2:
  548. loop 30 times:
  549. command "/summon skeleton 100 1 117 {CustomName:""&7Skeleton"",CustomNameVisible:1,Attributes:[{Name:generic.maxHealth,Base:15},{Name:generic.attackDamage,Base:0.7}]}"
  550. wait a tick
  551. command "tp @e[x=100,y=1,z=117,r=3,name=&7Skeleton,type=skeleton] @r[name=豪邸,type=armor_stand]"
  552. else:
  553. if {map} is 1:
  554. loop 15 times:
  555. command "/summon skeleton -342 3 1373 {CustomName:""&7Skeleton"",CustomNameVisible:1,Attributes:[{Name:generic.maxHealth,Base:15},{Name:generic.attackDamage,Base:0.7}]}"
  556. wait a tick
  557. command "tp @e[x=-342,y=3,z=1373,r=3,name=&7Skeleton,type=skeleton] @r[name=Unknown,type=armor_stand]"
  558. else:
  559. if {map} is 3:
  560. loop 15 times:
  561. command "/summon skeleton -591 4 1612 {CustomName:""&7Skeleton"",CustomNameVisible:1,Attributes:[{Name:generic.maxHealth,Base:15},{Name:generic.attackDamage,Base:0.7}]}"
  562. wait a tick
  563. command "tp @e[x=-591,y=4,z=1612,r=3,type=&7Skeleton,type=skeleton] @r[name=Ocean,type=armor_stand]"
  564.  
  565.  
  566.  
  567. on respawn:
  568. wait 1 seconds
  569. if {game} is "true":
  570. send "&a観戦チャットになりました"
  571. set player's gamemode to spectator
  572. if {map} is 1:
  573. command "/tp %player% -349 9 1375"
  574. if {map} is 2:
  575. command "/tp %player% 100 5 100"
  576. if {map} is 3:
  577. command "/tp %player% -589.995 4 1640.499"
  578.  
  579. every 1 second:
  580. if {game} is "true":
  581. remove 1 from {times}
  582. if {times} is less than 0:
  583. if {time} is "night":
  584. add 1 to {hi}
  585. loop all players:
  586. send title "&8---= &c☀&6&l朝になりました&c☀ &8=---" with subtitle "&6&l&o~~%{hi}%日目~~" to loop-player
  587. command "/kill @e[type=skeleton,name=&7Skeleton]"
  588. set {time} to "day"
  589. set {times} to 100
  590. command "/time set day"
  591. command "effect @a 11 0"
  592. else:
  593. if {time} is "day":
  594. loop all players:
  595. send title "&8---= &b☽&9&l夜になりました&b☽ &8=---" to loop-player
  596. set {time} to "night"
  597. set {times} to 150
  598. command "/time set night"
  599. set {kisi.%loop-player%} to "false"
  600. command "/effect @a[team=kyuketu] 11 10000 255 true"
  601. loop all players:
  602. if loop-player's gamemode is spectator:
  603. hide the loop-player from all players
  604. else:
  605. reveal the loop-player from all players
  606. if {time} is "day":
  607. if loop-player is in the region "asure":
  608. set loop-player's hunger to 10
  609. if loop-player is in the region "lobby":
  610. set loop-player's hunger to 10
  611. send action bar "&8&l---= &6&l朝 &b>>> &a残り時間:&e&l%{times}% &8&l=---" to loop-player
  612. else:
  613. if {time} is "night":
  614. if loop-player is in the region "asure":
  615. set loop-player's hunger to 10
  616. if loop-player is in the region "lobby":
  617. set loop-player's hunger to 10
  618. send action bar "&8&l---= &9&l夜 &b>>> &a残り時間:&e&l%{times}% &8&l=---" to loop-player
  619. if {times} is 149:
  620. if {time} is "night":
  621. command "/summonskeleton"
  622. if {times} is 110:
  623. if {time} is "night":
  624. command "/summonskeleton"
  625. if {times} is 70:
  626. if {time} is "night":
  627. command "/summonskeleton"
  628. if {times} is 35:
  629. if {time} is "night":
  630. command "summonskeleton"
  631. if {mu} is 0:
  632. if {kyuketu} is greater or equal to 1:
  633. broadcast "{@logo} &e試合が終了しました"
  634. broadcast "{@logo} &d吸血鬼&eの勝利です!"
  635. execute console command "/execute @a ~ ~ ~ /playsound minecraft:entity.wither.death master @a ~ ~ ~ 0.5"
  636. loop all players:
  637. if {vampire.%loop-player%} is "true":
  638. add 100 to {xp.%loop-player%}
  639. send "&e勝利ボーナス:&b+100XP &8(&e%{xp.%loop-player%}%&7/&b250&8)" to loop-player
  640. else:
  641. send "&e参加ボーナス:&b+50XP &8(&e%{xp.%loop-player%}%&7/&b250&8)" to loop-player
  642. add 50 to {xp.%loop-player%}
  643. wait a tick
  644. send title "&8&k&l!!&d&l ☯吸血鬼の勝利☯ &8&k&l!!" to loop-player
  645. command "/jinro stop"
  646. stop
  647. else:
  648. broadcast "{@logo} &e試合が終了しました"
  649. broadcast "{@logo} &4人狼&eの勝利です!"
  650. execute console command "/execute @a ~ ~ ~ /playsound minecraft:entity.wolf.howl master @a"
  651. loop all players:
  652. if {jinrou.%loop-player%} is "true":
  653. add 100 to {xp.%loop-player%}
  654. send "&e勝利ボーナス:&b+100XP &8(&e%{xp.%loop-player%}%&7/&b250&8)" to loop-player
  655. else:
  656. send "&e参加ボーナス:&b+50XP &8(&e%{xp.%loop-player%}%&7/&b250&8)" to loop-player
  657. add 50 to {xp.%loop-player%}
  658. wait a tick
  659. send title "&8&k&l!!&c&l ☠&4&l人狼の勝利&c&l☠ &8&k&l!!" to loop-player
  660. command "/jinro stop"
  661. stop
  662. if {ji} is 0:
  663. if {kyuketu} is greater or equal to 1:
  664. broadcast "{@logo} &e試合が終了しました"
  665. broadcast "{@logo} &d吸血鬼&eの勝利です!"
  666. execute console command "/execute @a ~ ~ ~ /playsound minecraft:entity.wither.death master @a ~ ~ ~ 0.5"
  667. loop all players:
  668. if {vampire.%loop-player%} is "true":
  669. add 100 to {xp.%loop-player%}
  670. send "&e勝利ボーナス:&b+100XP &8(&e%{xp.%loop-player%}%&7/&b250&8)" to loop-player
  671. else:
  672. send "&e参加ボーナス:&b+50XP &8(&e%{xp.%loop-player%}%&7/&b250&8)" to loop-player
  673. add 50 to {xp.%loop-player%}
  674. wait a tick
  675. send title "&8&k&l!!&d&l ☯吸血鬼の勝利☯ &8&k&l!!" to loop-player
  676. command "/jinro stop"
  677. stop
  678. else:
  679. broadcast "{@logo} &e試合が終了しました"
  680. broadcast "{@logo} &a村人&eの勝利です!"
  681. execute console command "/execute @a ~ ~ ~ /playsound minecraft:entity.player.levelup master @a"
  682. loop all players:
  683. if {murabito::*} contain loop-player:
  684. add 100 to {xp.%loop-player%}
  685. send "&e勝利ボーナス:&b+100XP &8(&e%{xp.%loop-player%}%&7/&b250&8)" to loop-player
  686. else:
  687. send "&e参加ボーナス:&b+50XP &8(&e%{xp.%loop-player%}%&7/&b250&8)" to loop-player
  688. add 50 to {xp.%loop-player%}
  689. wait a tick
  690. send title "&8&k&l!!&a&l ☺村人の勝利☺ &8&k&l!!" to loop-player
  691. command "/jinro stop"
  692. stop
  693. else:
  694. loop all players:
  695. send action bar "&8 == &b&lレベル: &8[&b&l%{level.%loop-player%}%&8] &8== &a&lゲーム参加人数: &e&l(&b&l%{join}%&7/&b&l%number of all players%&e&l) &8== &b&l次のレベルまで: &8(&e%{xp.%loop-player%}%&7/&b250&8)" to loop-player
  696. set loop-player's hunger to 10
  697.  
  698.  
  699. on first join:
  700. wait 2 tick
  701. command "/tp %player% -166 6 1415"
  702. if {game} is "false":
  703. set slot 4 of player to 1 nether star named "&aゲームに参加"
  704. set {sanka.%player%} to "false"
  705. set {chat.%player%} to "all"
  706. reveal the player from all players
  707. else:
  708. if {game} is "true":
  709. hide the player from all players
  710. command "/clear %player% nether_star"
  711. set player's gamemode to spectator
  712. send "&aゲームがすでに始まっていたため観戦になりました"
  713. set {chat.%player%} to "kansen"
  714. if {map} is 1:
  715. command "/tp %player% -349 9 1375"
  716. if {map} is 2:
  717. command "/tp %player% 100 5 100"
  718. if {map} is 3:
  719. command "/tp %player% -589.995 4 1640.499"
  720. on join:
  721. wait 2 tick
  722. if {game} is "false":
  723. set slot 4 of player to 1 nether star named "&aゲームに参加"
  724. set slot 1 of player to 1 south facing ender dragon head named "&eYour Status"
  725. set {sanka.%player%} to "false"
  726. set {chat.%player%} to "all"
  727. reveal the player from all players
  728. command "/clear %player% stick"
  729. command "/clear %player% armor_stand"
  730. command "/clear %player% paper"
  731. command "/clear %player% cooked_beef"
  732. command "/clear %player% splash_potion"
  733. command "/clear %player% potion"
  734. command "/clear %player% emerald"
  735. command "/clear %player% end_crystal"
  736. command "/clear %player% redstone"
  737. command "/clear %player% bow"
  738. command "/clear %player% record_far"
  739. command "/clear %player% arrow"
  740. command "/clear %player% wooden_sword"
  741. command "/clear %player% stone_axe"
  742. command "/clear %player% minecraft:totem_of_undying"
  743. command "/clear %player% firework_charge"
  744. command "/clear %player% bed"
  745. command "/clear %player% stone_sword"
  746. else:
  747. if {game} is "true":
  748. hide the player from all players
  749. set {co.cool.%player%} to "set"
  750. command "/clear %player% nether_star"
  751. set player's gamemode to spectator
  752. set {chat.%player%} to "kansen"
  753. send "&aゲームがすでに始まっていたため観戦になりました"
  754. command "/clear %player% stick"
  755. command "/clear %player% armor_stand"
  756. command "/clear %player% paper"
  757. command "/clear %player% cooked_beef"
  758. command "/clear %player% splash_potion"
  759. command "/clear %player% potion"
  760. command "/clear %player% emerald"
  761. command "/clear %player% end_crystal"
  762. command "/clear %player% redstone"
  763. command "/clear %player% bow"
  764. command "/clear %player% arrow"
  765. command "/clear %player% wooden_sword"
  766. command "/clear %player% stone_axe"
  767. command "/clear %player% minecraft:totem_of_undying"
  768. command "/clear %player% firework_charge"
  769. command "/clear %player% bed"
  770. command "/clear %player% stone_sword"
  771. if {map} is 1:
  772. command "/tp %player% -349 9 1375"
  773. if {map} is 2:
  774. command "/tp %player% 100 5 100"
  775. if {map} is 3:
  776. command "/tp %player% -589.995 4 1640.499"
  777.  
  778.  
  779. on quit:
  780. if {sanka.%player%} is "true":
  781. remove 1 from {join}
  782. if {game} is "true":
  783. if {jinrou.%player%} is "true":
  784. remove 1 from {ji}
  785. else:
  786. if {vampire.%player%} is "true":
  787. remove 1 from {kyuketu}
  788. else:
  789. if {murabito::*} contain player:
  790. remove 1 from {mu}
  791.  
  792. on join:
  793. wait 0.2 seconds
  794. send title "&ew"
  795. wait 0.3 seconds
  796. send title "&ew&de" #Welcome
  797. wait 0.3 seconds
  798. send title "&ew&de&bl"
  799. wait 0.3 seconds
  800. send title "&aw&de&bl&ac"
  801. wait 0.3 seconds
  802. send title "&aw&de&bl&ac&9o"
  803. wait 0.3 seconds
  804. send title "&aw&de&bl&ac&9o&6m"
  805. wait 0.3 seconds
  806. send title "&aW&de&bl&ac&9o&6m&3e"
  807. wait 0.3 seconds
  808. wait 0.3 seconds
  809. send title "&aW&de&bl&ac&9o&6m&3e, &a%player%!"
  810.  
  811.  
  812. on rightclick holding a nether star:
  813. name of held item contains "&aゲームに参加"
  814. if {game} is "false":
  815. if {sanka.%player%} is "false":
  816. send "&8[&4&l人狼RPG&8] &aゲームに参加しました!"
  817. command "/execute %player% ~ ~ ~ /playsound minecraft:block.dispenser.fail master %player%"
  818. set {sanka.%player%} to "true"
  819. command "/scoreboard teams join sanka %player%"
  820. add 1 to {join}
  821. else:
  822. send "&8[&4&l人狼RPG&8] &cすでに参加しています"
  823. command "/execute %player% ~ ~ ~ /playsound minecraft:block.dispenser.fail master %player%"
  824. else:
  825. send "{@logo} &cゲームは始まっています"
  826.  
  827. on rightclick holding a bed:
  828. name of held item contains "&c観戦"
  829. if {game} is "false":
  830. send "&c試合は始まっていません"
  831. else:
  832. hide the player from all players
  833. send "&a観戦になりました"
  834. send "&b/leave &aで観戦を抜けれます"
  835. set player's gamemode to spectator
  836. if {map} is 1:
  837. execute console command "/tp %player% 727 5 -880"
  838. if {map} is 2:
  839. execute console command "/tp %player% 727 5 -880"
  840. if {map} is 3:
  841. execute console command "/tp %player% 727 5 -880"
  842.  
  843. command /settime [<number>]:
  844. permission: skript.admin
  845. trigger:
  846. set {times} to arg-1
  847.  
  848. on inventory click:
  849. if {game} is "false":
  850. if clicked slot is 4 or 1:
  851. cancel event
  852.  
  853.  
  854. on damage:
  855. if attacker's tool's name is "&5占いの権利":
  856. if attacker's tool is stick:
  857. if victim is player:
  858. if {game} is "true":
  859. if {time} is "night":
  860. cancel event
  861. send "{@logo} &6占っています…" to attacker
  862. command "/clear %attacker% minecraft:stick 0 1 {display:{Name:""&5占いの権利""}}"
  863. wait 1 seconds
  864. if {jinrou.%victim%} is "true":
  865. send "{@logo} &6占い結果: &b%victim%&aは&4人狼&aでした" to attacker
  866. else:
  867. if {vampire.%victim%} is "true":
  868. send "{@logo} &6占い結果: &b%victim%&aは&d吸血鬼&aでした" to attacker
  869. else:
  870. if {gouhu.%victim%} is "true":
  871. send "{@logo} &6占い結果: &b%victim%&aは&6富豪&aでした" to attacker
  872. else:
  873. if {kame.%victim%} is "true":
  874. send "{@logo} &6占い結果: &b%victim%&aは&cカメレオン&aでした" to attacker
  875. else:
  876. if {syo.%victim%} is "true":
  877. send "&{@logo} &6占い結果: &b%victim%&aは&b聖人&aでした" to attacker
  878. else:
  879. send "{@logo} &6占い結果: &b%victim%&aは村人でした" to attacker
  880. else:
  881. cancel event
  882. send "{@logo} &c占いは夜の間だけ可能です" to attacker
  883. else:
  884. cancel event
  885. send "{@logo} &cゲームは始まっていません" to attacker
  886.  
  887.  
  888.  
  889.  
  890. on drop:
  891. if event-item is armor stand:
  892. cancel event
  893. wait a tick
  894. if {time} is "night":
  895. if {kisi.%player%} is "false":
  896. set {kisi.%player%} to "true"
  897. command "/effect %player% 11 100000 255 true"
  898. command "/clear %player% armor_stand 0 1"
  899. send "{@logo} &6騎士の祈り&aを使用しました" to player
  900. else:
  901. send "{@logo} &cすでに騎士の祈りを使用しています" to player
  902. else:
  903. send "{@logo} &c騎士の祈りは夜の間しか使用できません" to player
  904. on drop:
  905. if event-item is ender crystal:
  906. cancel event
  907. if {me.%player%} is "false":
  908. wait a tick
  909. set {me.%player%} to "true"
  910. execute console command "/clear %player% end_crystal 0 1"
  911. send "{@logo} &5共犯者の目&aを使用しました" to player
  912. send "{@logo} &e共犯者が&5共犯者の目&eを使用した" to {jinrou::*}
  913. execute console command "/scoreboard teams join jinrou %player%"
  914. wait 20 seconds
  915. send "{@logo} &5共犯者の目の効果が&a残り&610秒&aで効果が切れます…" to player
  916. wait 10 seconds
  917. send "{@logo} &5共犯者の目&aの効果が切れました。" to player
  918. execute console command "/scoreboard teams join kyouzin %player%"
  919. set {me.%player%} to "false"
  920. else:
  921. send "{@logo} &cすでに共犯者の目を使用しています" to player
  922. on drop:
  923. if event-item is firework star:
  924. cancel event
  925. wait a tick
  926. command "/clear %player% firework_charge 0 1"
  927. execute console command "execute %player% ~ ~ ~ /effect @a[r=5] 15 5 1"
  928. execute console command "effect %Player% 15 0 "
  929. send "{@logo} &8煙幕&aを使用しました。" to player
  930.  
  931.  
  932. on drop:
  933. if event-item is totems of undying:
  934. cancel event
  935. wait a tick
  936. execute console command "/effect @a[team=jinrou] glowing 10 1"
  937. execute console command "/effect @a[team=murabito] glowing 10 1"
  938. execute console command "/effect @a[team=kyouzin] glowing 10 1"
  939. execute console command "/effect @a[team=gouhu] glowing 10 1"
  940. execute console command "/effect @a[team=kyuketu] glowing 10 1"
  941. execute console command "/effect @a[team=jinrou] glowing 10 1"
  942. send "{@logo} &e透姿&aを使用しました。" to player
  943. command "/clear %player% minecraft:totem_of_undying 0 1"
  944.  
  945. on damage:
  946. if attacker's tool is redstone dust:
  947. if attacker's tool's name is "&d聖なる十字架":
  948. if victim is player:
  949. cancel event
  950. command "execute %attacker% ~ ~ ~ /playsound minecraft:entity.item.break master %attacker% ~ ~ ~ 1 2"
  951. command "/clear %attacker% redstone 0 1"
  952. send "{@logo} &a聖なる十字架を使用した!" to attacker
  953. wait a tick
  954. if {vampire.%victim%} is "true":
  955. command "/kill %victim%"
  956. send "{@logo} &d吸血鬼&aの殺害に成功しました &8(吸血鬼:&e%victim%&8)" to attacker
  957. else:
  958. send "{@logo} &d吸血鬼&cの殺害に失敗した" to attacker
  959.  
  960.  
  961.  
  962. on drop:
  963. event-item is bed or pieces of paper:
  964. cancel event
  965.  
  966. on drop:
  967. event-item is music record far:
  968. cancel event
  969. wait a tick
  970. if {game} is "true":
  971. if {kame.%player%} is "true":
  972. if {inv.%player%} is not set:
  973. send "{@logo} &a透明スキルを使用しました" to player
  974. command "/effect %player% minecraft:invisibility 20 255 true"
  975. set {inv.%player%} to 1
  976. wait 140 seconds
  977. delete {inv.%player%}
  978. send "{@logo} &a透明スキルが使用可能になりました" to player
  979. else:
  980. send "{@logo} &cクールダウン中…" to player
  981. else:
  982. send "{@logo} &cカメレオンしか使用できません" to player
  983. command /leave:
  984. trigger:
  985. if {game} is "true":
  986. if player's gamemode is spectator:
  987. send "&a観戦を抜けました"
  988. teleport player to {lobby}
  989. set player's gamemode to survival
  990. else:
  991. send "&c観戦者だけが使えるコマンドです"
  992.  
  993. on rightclick on a villager:
  994. if {game} is "true":
  995. if villager's name is "&c&l戦闘":
  996. cancel event
  997. open chest with 5 row named " &8------------==<<&6&l戦闘SHOP&8>>==-------------" to player
  998. wait a tick
  999. format slot 0 of player with black stained glass pane named "&a" to run [command "a"]
  1000. format slot 1 of player with 3 emerald named "&a↓必要エメラルド:3↓" to run [command "a"]
  1001. format slot 2 of player with 2 emerald named "&a↓必要エメラルド:2↓" to run [command "a"]
  1002. format slot 3 of player with emerald named "&a↓必要エメラルド:1↓" to run [command "a"]
  1003. format slot 4 of player with 5 emerald named "&a↓必要エメラルド:5↓" to run [command "a"]
  1004. format slot 5 of player with 10 emerald named "&a↓必要エメラルド:10↓" to run [command "a"]
  1005. format slot 6 of player with black stained glass pane named "&a" to run [command "a"]
  1006. format slot 7 of player with black stained glass pane named "&a" to run [command "a"]
  1007. format slot 8 of player with black stained glass pane named "&a" to run [command "a"]
  1008. format slot 9 of player with black stained glass pane named "&a" to run [command "a"]
  1009. format slot 10 of player with bow named "&6&l弓" with lore "&3全役職購入可能" and "&6値段:3" and "&a当てた相手を1発で倒せる" and "&a1度使うと壊れる" and "&b>>>クリックで購入<<<" to run [execute console command "shop 1 %player%"]
  1010. format slot 11 of player with arrow named "&6&l矢" with lore "&3全役職購入可能" and "&6値段:2" and "&a弓を使うために必要" and "&c※1回買うと&c&n1個&cもらえます" and "&b>>>クリックで購入<<<" to run [execute console command "shop 2 %player%"]
  1011. format slot 12 of player with 5 steak named "&fステーキ" with lore "&3全役職購入可能" and "&6値段:1" and "&a食料!" and "&c※1回買うと&c&n5個&cもらえます" and "&b>>>クリックで購入<<<" to run [execute console command "shop 3 %player%"]
  1012. format slot 13 of player with wooden sword named "&c&lスケ狩剣" with lore "&3全役職購入可能" and "&6値段:5" and "&a物理攻撃の威力が高くなる" and "&b>>>クリックで購入<<<" to run [execute console command "shop 4 %player%"]
  1013. format slot 14 of player with stone sword named "&6&l<強化> &c&lスケ狩剣" with lore "&3全役職購入可能" and "&6値段:10" and "&a物理攻撃の威力が高くなる" and "&8&l&k!!&6&l [強化版] &8&l&k!!" and "&b>>>クリックで購入<<<" to run [execute console command "shop 5 %player%"]
  1014. format slot 17 of player with black stained glass pane named "&a" to run [command "a"]
  1015. format slot 18 of player with black stained glass pane named "&a" to run [command "a"]
  1016. format slot 19 of player with black stained glass pane named "&a" to run [command "a"]
  1017. format slot 20 of player with black stained glass pane named "&a" to run [command "a"]
  1018. format slot 21 of player with black stained glass pane named "&a" to run [command "a"]
  1019. format slot 22 of player with black stained glass pane named "&a" to run [command "a"]
  1020. format slot 23 of player with black stained glass pane named "&a" to run [command "a"]
  1021. format slot 24 of player with black stained glass pane named "&a" to run [command "a"]
  1022. format slot 25 of player with black stained glass pane named "&a" to run [command "a"]
  1023. format slot 26 of player with black stained glass pane named "&a" to run [command "a"]
  1024. format slot 27 of player with black stained glass pane named "&a" to run [command "a"]
  1025. format slot 35 of player with black stained glass pane named "&a" to run [command "a"]
  1026. format slot 36 of player with black stained glass pane named "&a" to run [command "a"]
  1027. format slot 37 of player with black stained glass pane named "&a" to run [command "a"]
  1028. format slot 38 of player with black stained glass pane named "&a" to run [command "a"]
  1029. format slot 39 of player with black stained glass pane named "&a" to run [command "a"]
  1030. format slot 40 of player with black stained glass pane named "&a" to run [command "a"]
  1031. format slot 41 of player with black stained glass pane named "&a" to run [command "a"]
  1032. format slot 42 of player with black stained glass pane named "&a" to run [command "a"]
  1033. format slot 43 of player with black stained glass pane named "&a" to run [command "a"]
  1034. format slot 44 of player with black stained glass pane named "&a" to run [command "a"]
  1035. if {jinrou.%player%} is "true":
  1036. format slot 28 of player with stone axe named "&4&l人狼の斧" with lore "&3人狼のみ購入可能" and "&6値段:3" and "&a1発で人を倒せる" and "&a1回使うと壊れる" and "&b>>>クリックで購入<<<" to run [execute console command "shop 6 %player%"]
  1037. format slot 37 of player with 3 emerald named "&a↓必要エメラルド:3↓" to run [command "a"]
  1038. if villager's name is "&a&l補助":
  1039. cancel event
  1040. open chest with 5 row named " &8------------==<<&6&l補助SHOP&8>>==-------------" to player
  1041. wait a tick
  1042. format slot 0 of player with black stained glass pane named "&a" to run [command "a"]
  1043. format slot 1 of player with 5 emerald named "&a↓必要エメラルド:5↓" to run [command "a"]
  1044. format slot 2 of player with 2 emerald named "&a↓必要エメラルド:18↓" to run [command "a"]
  1045. format slot 3 of player with 8 emerald named "&a↓必要エメラルド:8↓" to run [command "a"]
  1046. format slot 4 of player with 5 emerald named "&a↓必要エメラルド:5↓" to run [command "a"]
  1047. format slot 5 of player with black stained glass pane named "&a" to run [command "a"]
  1048. format slot 6 of player with black stained glass pane named "&a" to run [command "a"]
  1049. format slot 7 of player with black stained glass pane named "&a" to run [command "a"]
  1050. format slot 8 of player with black stained glass pane named "&a" to run [command "a"]
  1051. format slot 9 of player with black stained glass pane named "&a" to run [command "a"]
  1052. format slot 10 of player with stick named "&5占いの権利" with lore "&3全役職購入可能" and "&6値段:5" and "&aこのアイテムを持ちながら占いたい人を殴ると占うことができる" and "&a1度使うと消える" and "&c※夜の間だけ使用可能" and "&b>>>クリックで購入<<<" to run [execute console command "shop 7 %player%"]
  1053. format slot 11 of player with totems of undying named "&7透姿" with lore "&3全役職購入可能" and "&6値段:18" and "&a捨てると使用できる" and "&a10秒間すべてのプレイヤーに発行を付ける" and "&a1度使うと消える" and "&b>>>クリックで購入<<<" to run [execute console command "shop 8 %player%"]
  1054. format slot 12 of player with firework star named "&8煙幕" with lore "&3全役職購入可能" and "&6値段:8" and "&a捨てると使用できる" and "&a使ったプレイヤーの付近にいる人に盲目を付ける" and "&a1度使うと消える" and "&b>>>クリックで購入<<<" to run [execute console command "shop 9 %player%"]
  1055. format slot 13 of player with redstone dust named "&d聖なる十字架" with lore "&3全役職購入可能" and "&6値段:5" and "&aこのアイテムを持ちながら殴ると使用できる" and "&a相手が吸血鬼だったら殺すことができ、" and "&a吸血鬼ではなかったら何も起こらない" and "&a1度使ったら壊れる" and "&b>>>クリックで購入<<<" to run [execute console command "/shop 14 %player%"]
  1056. format slot 17 of player with black stained glass pane named "&6" to run [command "a"]
  1057. format slot 18 of player with black stained glass pane named "&a" to run [command "a"]
  1058. format slot 19 of player with black stained glass pane named "&a" to run [command "a"]
  1059. format slot 20 of player with black stained glass pane named "&a" to run [command "a"]
  1060. format slot 21 of player with black stained glass pane named "&a" to run [command "a"]
  1061. format slot 22 of player with black stained glass pane named "&a" to run [command "a"]
  1062. format slot 23 of player with black stained glass pane named "&a" to run [command "a"]
  1063. format slot 24 of player with black stained glass pane named "&a" to run [command "a"]
  1064. format slot 25 of player with black stained glass pane named "&a" to run [command "a"]
  1065. format slot 26 of player with black stained glass pane named "&a" to run [command "a"]
  1066. format slot 27 of player with black stained glass pane named "&a" to run [command "a"]
  1067. format slot 35 of player with black stained glass pane named "&a" to run [command "a"]
  1068. format slot 36 of player with black stained glass pane named "&a" to run [command "a"]
  1069. format slot 37 of player with black stained glass pane named "&a" to run [command "a"]
  1070. format slot 38 of player with black stained glass pane named "&a" to run [command "a"]
  1071. format slot 39 of player with black stained glass pane named "&a" to run [command "a"]
  1072. format slot 40 of player with black stained glass pane named "&a" to run [command "a"]
  1073. format slot 41 of player with black stained glass pane named "&a" to run [command "a"]
  1074. format slot 42 of player with black stained glass pane named "&a" to run [command "a"]
  1075. format slot 43 of player with black stained glass pane named "&a" to run [command "a"]
  1076. format slot 44 of player with black stained glass pane named "&a" to run [command "a"]
  1077. if {jinrou.%player%} is "true":
  1078. format slot 28 of player with invisibility potion named "&a&l30秒&b&l透明" with lore "&3人狼のみ購入可能" and "&6値段:5" and "&a30秒間透明になる" and "&b>>>クリックで購入<<<" to run [execute console command "shop 13 %player%"]
  1079. format slot 29 of player with splash potions of strong speed named "&a&l60秒&b&lスピード" with lore "&3人狼のみ購入可能" and "&6値段:3" and "&a60秒間俊敏がつく" and "&b>>>クリックで購入<<<" to run [execute console command "shop 12 %player%"]
  1080. format slot 37 of player with 5 emerald named "&a↓必要エメラルド:5↓" to run [command "a"]
  1081. format slot 38 of player with 3 emerald named "&a↓必要エメラルド:3↓" to run [command "a"]
  1082. else:
  1083. if {kyouzin.%player%} is "true":
  1084. format slot 28 of player with end crystal item named "&5共犯者の目" with lore "&3共犯者のみ購入可能" and "&6値段:5" and "&a捨てると使用できる" and "30秒間人狼のネームバーが見え,人狼を確認できる" and "&b>>>クリックで購入<<<" to run [execute console command "shop 11 %player%"]
  1085. format slot 37 of player with 5 emerald named "&a↓必要エメラルド:5↓" to run [command "a"]
  1086. else:
  1087. format slot 28 of player with armor stand named "&6騎士の祈り" with lore "&3人狼陣営以外購入可能" and "&6値段:5" and "&a捨てると使用できる" and "&a夜の間だけ無敵になれる" and "&a1度使うと壊れる" and "&c※夜の間だけしか使用できません" and "&b>>>クリックで購入<<<" to run [execute console command "shop 10 %player%"]
  1088. format slot 37 of player with 5 emerald named "&a↓必要エメラルド:5↓" to run [command "a"]
  1089.  
  1090. command /shop [<text>] [<player>]:
  1091. executable by: console
  1092. trigger:
  1093. if arg-1 is "1": #弓
  1094. set {_a} to amount of emerald in arg-2's inventory
  1095. if {_a} is greater than or equal to 3:
  1096. execute console command "/give %arg-2% minecraft:bow 1 384 {HideFlags:33,display:{Name:""&6&l弓""},ench:[{id:48,lvl:1000}]}"
  1097. execute console command "clear %arg-2% emerald 0 3"
  1098. else:
  1099. send "{@logo} &cエメラルドが足りません" to arg-2
  1100. if arg-1 is "2": #矢
  1101. set {_b} to amount of emerald in arg-2's inventory
  1102. if {_b} is greater than or equal to 2:
  1103. give arg-2 arrow named "&6&l矢"
  1104. execute console command "clear %arg-2% emerald 0 2"
  1105. else:
  1106. send "{@logo} &cエメラルドが足りません" to arg-2
  1107. if arg-1 is "3": #ステーキ
  1108. set {_c} to amount of emerald in arg-2's inventory
  1109. if {_c} is greater than or equal to 1:
  1110. give arg-2 5 steak
  1111. execute console command "clear %arg-2% emerald 0 1"
  1112. else:
  1113. send "{@logo} &cエメラルドが足りません" to arg-2
  1114. if arg-1 is "4": #スケ狩剣
  1115. set {_d} to amount of emerald in arg-2's inventory
  1116. if {_d} is greater than or equal to 5:
  1117. execute console command "give %arg-2% minecraft:wooden_sword 1 0 {HideFlags:4,Unbreakable:1,display:{Name:""&c&lスケ狩剣""}}"
  1118. execute console command "clear %arg-2% emerald 0 5"
  1119. else:
  1120. send "{@logo} &cエメラルドが足りません" to arg-2
  1121. if arg-1 is "5": #スケ狩剣 <強化>
  1122. set {_e} to amount of emerald in arg-2's inventory
  1123. if {_e} is greater than or equal to 10:
  1124. execute console command "/give %arg-2% minecraft:stone_sword 1 0 {HideFlags:5,Unbreakable:1,display:{Name:""&6&l<強化> &c&lスケ狩剣""},ench:[{id:16,lvl:2}]}"
  1125. execute console command "clear %arg-2% emerald 0 10"
  1126. else:
  1127. send "{@logo} &cエメラルドが足りません" to arg-2
  1128. if arg-1 is "6": #人狼の斧
  1129. set {_f} to amount of emerald in arg-2's inventory
  1130. if {_f} is greater than or equal to 3:
  1131. execute console command "/give %arg-2% minecraft:stone_axe 1 131 {HideFlags:5,display:{Name:""&4&l人狼の斧""},ench:[{id:16,lvl:10000}]}"
  1132. execute console command "clear %arg-2% emerald 0 3"
  1133. else:
  1134. send "{@logo} &cエメラルドが足りません" to arg-2
  1135. if arg-1 is "7": #占いの権利
  1136. set {_g} to amount of emerald in arg-2's inventory
  1137. if {_g} is greater than or equal to 5:
  1138. give arg-2 stick named "&5占いの権利"
  1139. execute console command "clear %arg-2% emerald 0 5"
  1140. else:
  1141. send "{@logo} &cエメラルドが足りません" to arg-2
  1142. if arg-1 is "8": #透姿
  1143. set {_h} to amount of emerald in arg-2's inventory
  1144. if {_h} is greater than or equal to 18:
  1145. give arg-2 totems of undying named "&7透姿"
  1146. execute console command "clear %arg-2% emerald 0 18"
  1147. else:
  1148. send "{@logo} &cエメラルドが足りません" to arg-2
  1149. if arg-1 is "9": #煙幕
  1150. set {_i} to amount of emerald in arg-2's inventory
  1151. if {_i} is greater than or equal to 8:
  1152. give arg-2 firework star named "&8煙幕"
  1153. command "/clear %arg-2% emerald 0 8"
  1154. else:
  1155. send "{@logo} &cエメラルドが足りません" to arg-2
  1156. if arg-1 is "10": #騎士の祈り
  1157. set {_j} to amount of emerald in arg-2's inventory
  1158. if {_j} is greater than or equal to 5:
  1159. give arg-2 armor stand named "&6騎士の祈り"
  1160. command "/clear %arg-2% emerald 0 5"
  1161. else:
  1162. send "{@logo} &cエメラルドが足りません" to arg-2
  1163. if arg-1 is "11": #共犯者の目
  1164. set {_k} to amount of emerald in arg-2's inventory
  1165. if {_k} is greater than or equal to 5:
  1166. give arg-2 end crystal item named "&5共犯者の目"
  1167. command "/clear %arg-2% emerald 0 5"
  1168. else:
  1169. send "{@logo} &cエメラルドが足りません" to arg-2
  1170. if arg-1 is "12": #透明
  1171. set {_l} to amount of emerald in arg-2's inventory
  1172. if {_l} is greater than or equal to 5:
  1173. execute console command "/give %arg-2% minecraft:potion 1 0 {display:{Name:""&a&l30秒&b透明""},CustomPotionEffects:[{Id:14,Amplifier:0,Duration:600}],CustomPotionColor:13104383}"
  1174. command "/clear %arg-2% emerald 0 5"
  1175. else:
  1176. send "{@logo} &cエメラルドが足りません" to arg-2
  1177. if arg-1 is "13": #スピード
  1178. set {_m} to amount of emerald in arg-2's inventory
  1179. if {_m} is greater than or equal to 3:
  1180. execute console command "/give %arg-2% minecraft:splash_potion 1 0 {display:{Name:""&a&l60秒&俊敏""},CustomPotionEffects:[{Id:1,Amplifier:1,Duration:1200}],Potion:""minecraft:water"",CustomPotionColor:5429247}"
  1181. command "/clear %arg-2% emerald 0 3"
  1182. else:
  1183. send "{@logo} &cエメラルドが足りません" to arg-2
  1184. if arg-1 is "14": #聖なる十字架
  1185. set {_n} to amount of emerald in arg-2's inventory
  1186. if {_n} is greater than or equal to 5:
  1187. give arg-2 redstone dust named "&d聖なる十字架"
  1188. command "/clear %arg-2% emerald 0 5"
  1189. else:
  1190. send "{@logo} &cエメラルドが足りません" to arg-2
  1191.  
  1192. on drop:
  1193. if event-item is written book:
  1194. cancel event
  1195.  
  1196. command /join [<player>]:
  1197. trigger:
  1198. if {game} is "false":
  1199. if arg-1 is not set:
  1200. if {sanka.%player%} is "false":
  1201. send "&8[&4&l人狼RPG&8] &aゲームに参加しました!"
  1202. command "/execute %player% ~ ~ ~ /playsound minecraft:block.dispenser.fail master %player%"
  1203. set {sanka.%player%} to "true"
  1204. command "/scoreboard teams join sanka %player%"
  1205. add 1 to {join}
  1206. else:
  1207. send "&8[&4&l人狼RPG&8] &cすでに参加しています"
  1208. command "/execute %player% ~ ~ ~ /playsound minecraft:block.dispenser.fail master %player%"
  1209. if arg-1 is set:
  1210. if player is op:
  1211. if {sanka.%arg-1%} is "false":
  1212. send "{@logo} &a%player%により強制参加させられました" to arg-1
  1213. command "/execute %arg-1% ~ ~ ~ /playsound minecraft:block.dispenser.fail master %arg-1%"
  1214. send "{@logo} &a%arg-1%を強制参加させました"
  1215. set {sanka.%arg-1%} to "true"
  1216. add 1 to {join}
  1217. command "/scoreboard teams join sanka %arg-1%"
  1218. else:
  1219. send "{@logo} &a%arg-1%はすでに参加しています"
  1220. command "/execute %player% ~ ~ ~ /playsound minecraft:block.dispenser.fail master %player%"
  1221. else:
  1222. send "{@logo} &cゲームは始まっています"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement