Guest User

Untitled

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