Advertisement
Guest User

Untitled

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