Advertisement
Guest User

Untitled

a guest
Aug 25th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 61.62 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 {kyu} is not 0:
  171. broadcast "&d 泥棒 &f… &b%{kyu}%&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 {kyu} 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. send "&aあなたは&4&l警察&aです" to loop-player
  429. send "&e他の警察 … &f%{jinrou::*}%" to loop-player
  430. send "&a紙に役職説明が書いています" to loop-player
  431. send title "&aあなたは&4&l警察&aです"
  432. else:
  433. if {score.%loop-player%} is 5:
  434. send title "&aあなたは&d&l泥棒&aです" with subtitle "&7紙に役職説明が書いています" to loop-player
  435. send "&aあなたは&d&l泥棒&aです" to loop-player
  436. execute console command "/menu grab %loop-player% murabito"
  437.  
  438.  
  439. #1 = 警察 ¦ 5 = 泥棒 #
  440.  
  441.  
  442.  
  443. on join:
  444. set {jinrou.%player%} to "false"
  445. set {kyouzin.%player%} to "false"
  446. set {gouhu.%player%} to "false"
  447. set {vampire.%player%} to "false"
  448. set {kame.%player%} to "false"
  449. set {syo.%player%} to "false"
  450. remove player from {murabito::*}
  451.  
  452.  
  453. command /summonskeleton:
  454. permission: skript.admin
  455. trigger:
  456. if {map} is 2:
  457. loop 30 times:
  458. command "/summon skeleton 100 1 117 {CustomName:""&7Skeleton"",CustomNameVisible:1,Attributes:[{Name:generic.maxHealth,Base:15},{Name:generic.attackDamage,Base:0.7}]}"
  459. wait a tick
  460. command "tp @e[x=100,y=1,z=117,r=3,name=&7Skeleton,type=skeleton] @r[name=豪邸,type=armor_stand]"
  461. else:
  462. if {map} is 1:
  463. loop 15 times:
  464. command "/summon skeleton -342 3 1373 {CustomName:""&7Skeleton"",CustomNameVisible:1,Attributes:[{Name:generic.maxHealth,Base:15},{Name:generic.attackDamage,Base:0.7}]}"
  465. wait a tick
  466. command "tp @e[x=-342,y=3,z=1373,r=3,name=&7Skeleton,type=skeleton] @r[name=Unknown,type=armor_stand]"
  467. else:
  468. if {map} is 3:
  469. loop 15 times:
  470. command "/summon skeleton -591 4 1612 {CustomName:""&7Skeleton"",CustomNameVisible:1,Attributes:[{Name:generic.maxHealth,Base:15},{Name:generic.attackDamage,Base:0.7}]}"
  471. wait a tick
  472. command "tp @e[x=-591,y=4,z=1612,r=3,type=&7Skeleton,type=skeleton] @r[name=Ocean,type=armor_stand]"
  473.  
  474.  
  475.  
  476. on respawn:
  477. wait 1 seconds
  478. if {game} is "true":
  479. send "&a観戦チャットになりました"
  480. set player's gamemode to spectator
  481. if {map} is 1:
  482. command "/tp %player% -349 9 1375"
  483. if {map} is 2:
  484. command "/tp %player% 100 5 100"
  485. if {map} is 3:
  486. command "/tp %player% -589.995 4 1640.499"
  487.  
  488. every 1 second:
  489. if {game} is "true":
  490. remove 1 from {times}
  491. if {times} is less than 0:
  492. if {time} is "night":
  493. add 1 to {hi}
  494. loop all players:
  495. send title "&8---= &c☀&6&l朝になりました&c☀ &8=---" with subtitle "&6&l&o~~%{hi}%日目~~" to loop-player
  496. command "/kill @e[type=skeleton,name=&7Skeleton]"
  497. set {time} to "day"
  498. set {times} to 100
  499. command "/time set day"
  500. command "effect @a 11 0"
  501. else:
  502. if {time} is "day":
  503. loop all players:
  504. send title "&8---= &b☽&9&l夜になりました&b☽ &8=---" to loop-player
  505. set {time} to "night"
  506. set {times} to 150
  507. command "/time set night"
  508. set {kisi.%loop-player%} to "false"
  509. command "/effect @a[team=kyuketu] 11 10000 255 true"
  510. loop all players:
  511. if loop-player's gamemode is spectator:
  512. hide the loop-player from all players
  513. else:
  514. reveal the loop-player from all players
  515. if {time} is "day":
  516. if loop-player is in the region "asure":
  517. set loop-player's hunger to 10
  518. if loop-player is in the region "lobby":
  519. set loop-player's hunger to 10
  520. send action bar "&8&l---= &6&l朝 &b>>> &a残り時間:&e&l%{times}% &8&l=---" to loop-player
  521. else:
  522. if {time} is "night":
  523. if loop-player is in the region "asure":
  524. set loop-player's hunger to 10
  525. if loop-player is in the region "lobby":
  526. set loop-player's hunger to 10
  527. send action bar "&8&l---= &9&l夜 &b>>> &a残り時間:&e&l%{times}% &8&l=---" to loop-player
  528. if {times} is 149:
  529. if {time} is "night":
  530. command "/summonskeleton"
  531. if {times} is 110:
  532. if {time} is "night":
  533. command "/summonskeleton"
  534. if {times} is 70:
  535. if {time} is "night":
  536. command "/summonskeleton"
  537. if {times} is 35:
  538. if {time} is "night":
  539. command "summonskeleton"
  540. if {mu} is 0:
  541. if {kyuketu} is greater or equal to 1:
  542. broadcast "{@logo} &e試合が終了しました"
  543. broadcast "{@logo} &d泥棒&eの勝利です!"
  544. execute console command "/execute @a ~ ~ ~ /playsound minecraft:entity.wither.death master @a ~ ~ ~ 0.5"
  545. loop all players:
  546. if {vampire.%loop-player%} is "true":
  547. add 100 to {xp.%loop-player%}
  548. send "&e勝利ボーナス:&b+100XP &8(&e%{xp.%loop-player%}%&7/&b250&8)" to loop-player
  549. else:
  550. send "&e参加ボーナス:&b+50XP &8(&e%{xp.%loop-player%}%&7/&b250&8)" to loop-player
  551. add 50 to {xp.%loop-player%}
  552. wait a tick
  553. send title "&8&k&l!!&d&l ☯泥棒の勝利☯ &8&k&l!!" to loop-player
  554. command "/jinro stop"
  555. stop
  556. else:
  557. broadcast "{@logo} &e試合が終了しました"
  558. broadcast "{@logo} &4警察&eの勝利です!"
  559. execute console command "/execute @a ~ ~ ~ /playsound minecraft:entity.wolf.howl master @a"
  560. loop all players:
  561. if {jinrou.%loop-player%} is "true":
  562. add 100 to {xp.%loop-player%}
  563. send "&e勝利ボーナス:&b+100XP &8(&e%{xp.%loop-player%}%&7/&b250&8)" to loop-player
  564. else:
  565. send "&e参加ボーナス:&b+50XP &8(&e%{xp.%loop-player%}%&7/&b250&8)" to loop-player
  566. add 50 to {xp.%loop-player%}
  567. wait a tick
  568. send title "&8&k&l!!&c&l ☠&4&l警察の勝利&c&l☠ &8&k&l!!" to loop-player
  569. command "/jinro stop"
  570. stop
  571. if {ji} is 0:
  572. if {kyuketu} is greater or equal to 1:
  573. broadcast "{@logo} &e試合が終了しました"
  574. broadcast "{@logo} &d泥棒&eの勝利です!"
  575. execute console command "/execute @a ~ ~ ~ /playsound minecraft:entity.wither.death master @a ~ ~ ~ 0.5"
  576. loop all players:
  577. if {vampire.%loop-player%} is "true":
  578. add 100 to {xp.%loop-player%}
  579. send "&e勝利ボーナス:&b+100XP &8(&e%{xp.%loop-player%}%&7/&b250&8)" to loop-player
  580. else:
  581. send "&e参加ボーナス:&b+50XP &8(&e%{xp.%loop-player%}%&7/&b250&8)" to loop-player
  582. add 50 to {xp.%loop-player%}
  583. wait a tick
  584. send title "&8&k&l!!&d&l ☯吸血鬼の勝利☯ &8&k&l!!" to loop-player
  585. command "/jinro stop"
  586. stop
  587. else:
  588. broadcast "{@logo} &e試合が終了しました"
  589. broadcast "{@logo} &a泥棒&eの勝利です!"
  590. execute console command "/execute @a ~ ~ ~ /playsound minecraft:entity.player.levelup master @a"
  591. loop all players:
  592. if {murabito::*} contain loop-player:
  593. add 100 to {xp.%loop-player%}
  594. send "&e勝利ボーナス:&b+100XP &8(&e%{xp.%loop-player%}%&7/&b250&8)" to loop-player
  595. else:
  596. send "&e参加ボーナス:&b+50XP &8(&e%{xp.%loop-player%}%&7/&b250&8)" to loop-player
  597. add 50 to {xp.%loop-player%}
  598. wait a tick
  599. send title "&8&k&l!!&a&l ☺泥棒の勝利☺ &8&k&l!!" to loop-player
  600. command "/jinro stop"
  601. stop
  602. else:
  603. loop all players:
  604. 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
  605. set loop-player's hunger to 10
  606.  
  607.  
  608. on first join:
  609. wait 2 tick
  610. command "/tp %player% -166 6 1415"
  611. if {game} is "false":
  612. set slot 4 of player to 1 nether star named "&aゲームに参加"
  613. set {sanka.%player%} to "false"
  614. set {chat.%player%} to "all"
  615. reveal the player from all players
  616. else:
  617. if {game} is "true":
  618. hide the player from all players
  619. command "/clear %player% nether_star"
  620. set player's gamemode to spectator
  621. send "&aゲームがすでに始まっていたため観戦になりました"
  622. set {chat.%player%} to "kansen"
  623. if {map} is 1:
  624. command "/tp %player% -349 9 1375"
  625. if {map} is 2:
  626. command "/tp %player% 100 5 100"
  627. if {map} is 3:
  628. command "/tp %player% -589.995 4 1640.499"
  629. on join:
  630. wait 2 tick
  631. if {game} is "false":
  632. set slot 4 of player to 1 nether star named "&aゲームに参加"
  633. set slot 1 of player to 1 south facing ender dragon head named "&eYour Status"
  634. set {sanka.%player%} to "false"
  635. set {chat.%player%} to "all"
  636. reveal the player from all players
  637. command "/clear %player% stick"
  638. command "/clear %player% armor_stand"
  639. command "/clear %player% paper"
  640. command "/clear %player% cooked_beef"
  641. command "/clear %player% splash_potion"
  642. command "/clear %player% potion"
  643. command "/clear %player% emerald"
  644. command "/clear %player% end_crystal"
  645. command "/clear %player% redstone"
  646. command "/clear %player% bow"
  647. command "/clear %player% record_far"
  648. command "/clear %player% arrow"
  649. command "/clear %player% wooden_sword"
  650. command "/clear %player% stone_axe"
  651. command "/clear %player% minecraft:totem_of_undying"
  652. command "/clear %player% firework_charge"
  653. command "/clear %player% bed"
  654. command "/clear %player% stone_sword"
  655. else:
  656. if {game} is "true":
  657. hide the player from all players
  658. set {co.cool.%player%} to "set"
  659. command "/clear %player% nether_star"
  660. set player's gamemode to spectator
  661. set {chat.%player%} to "kansen"
  662. send "&aゲームがすでに始まっていたため観戦になりました"
  663. command "/clear %player% stick"
  664. command "/clear %player% armor_stand"
  665. command "/clear %player% paper"
  666. command "/clear %player% cooked_beef"
  667. command "/clear %player% splash_potion"
  668. command "/clear %player% potion"
  669. command "/clear %player% emerald"
  670. command "/clear %player% end_crystal"
  671. command "/clear %player% redstone"
  672. command "/clear %player% bow"
  673. command "/clear %player% arrow"
  674. command "/clear %player% wooden_sword"
  675. command "/clear %player% stone_axe"
  676. command "/clear %player% minecraft:totem_of_undying"
  677. command "/clear %player% firework_charge"
  678. command "/clear %player% bed"
  679. command "/clear %player% stone_sword"
  680. if {map} is 1:
  681. command "/tp %player% -349 9 1375"
  682. if {map} is 2:
  683. command "/tp %player% 100 5 100"
  684. if {map} is 3:
  685. command "/tp %player% -589.995 4 1640.499"
  686.  
  687.  
  688. on quit:
  689. if {sanka.%player%} is "true":
  690. remove 1 from {join}
  691. if {game} is "true":
  692. if {jinrou.%player%} is "true":
  693. remove 1 from {ji}
  694. else:
  695. if {vampire.%player%} is "true":
  696. remove 1 from {kyuketu}
  697. else:
  698. if {murabito::*} contain player:
  699. remove 1 from {mu}
  700.  
  701. on join:
  702. wait 0.2 seconds
  703. send title "&ew"
  704. wait 0.3 seconds
  705. send title "&ew&de" #Welcome
  706. wait 0.3 seconds
  707. send title "&ew&de&bl"
  708. wait 0.3 seconds
  709. send title "&aw&de&bl&ac"
  710. wait 0.3 seconds
  711. send title "&aw&de&bl&ac&9o"
  712. wait 0.3 seconds
  713. send title "&aw&de&bl&ac&9o&6m"
  714. wait 0.3 seconds
  715. send title "&aW&de&bl&ac&9o&6m&3e"
  716. wait 0.3 seconds
  717. wait 0.3 seconds
  718. send title "&aW&de&bl&ac&9o&6m&3e, &a%player%!"
  719.  
  720.  
  721. on rightclick holding a nether star:
  722. name of held item contains "&aゲームに参加"
  723. if {game} is "false":
  724. if {sanka.%player%} is "false":
  725. send "&8[&2&lケイドロ&8] &aゲームに参加しました!"
  726. command "/execute %player% ~ ~ ~ /playsound minecraft:block.dispenser.fail master %player%"
  727. set {sanka.%player%} to "true"
  728. command "/scoreboard teams join sanka %player%"
  729. add 1 to {join}
  730. else:
  731. send "&8[&2&lケイドロ&8] &cすでに参加しています"
  732. command "/execute %player% ~ ~ ~ /playsound minecraft:block.dispenser.fail master %player%"
  733. else:
  734. send "{@logo} &cゲームは始まっています"
  735.  
  736. on rightclick holding a bed:
  737. name of held item contains "&c観戦"
  738. if {game} is "false":
  739. send "&c試合は始まっていません"
  740. else:
  741. hide the player from all players
  742. send "&a観戦になりました"
  743. send "&b/leave &aで観戦を抜けれます"
  744. set player's gamemode to spectator
  745. if {map} is 1:
  746. execute console command "/tp %player% 727 5 -880"
  747. if {map} is 2:
  748. execute console command "/tp %player% 727 5 -880"
  749. if {map} is 3:
  750. execute console command "/tp %player% 727 5 -880"
  751.  
  752. command /settime [<number>]:
  753. permission: skript.admin
  754. trigger:
  755. set {times} to arg-1
  756.  
  757. on inventory click:
  758. if {game} is "false":
  759. if clicked slot is 4 or 1:
  760. cancel event
  761.  
  762.  
  763. on damage:
  764. if attacker's tool's name is "&5占いの権利":
  765. if attacker's tool is stick:
  766. if victim is player:
  767. if {game} is "true":
  768. if {time} is "night":
  769. cancel event
  770. send "{@logo} &6占っています…" to attacker
  771. command "/clear %attacker% minecraft:stick 0 1 {display:{Name:""&5占いの権利""}}"
  772. wait 1 seconds
  773. if {jinrou.%victim%} is "true":
  774. send "{@logo} &6占い結果: &b%victim%&aは&4人狼&aでした" to attacker
  775. else:
  776. if {vampire.%victim%} is "true":
  777. send "{@logo} &6占い結果: &b%victim%&aは&d吸血鬼&aでした" to attacker
  778. else:
  779. if {gouhu.%victim%} is "true":
  780. send "{@logo} &6占い結果: &b%victim%&aは&6富豪&aでした" to attacker
  781. else:
  782. if {kame.%victim%} is "true":
  783. send "{@logo} &6占い結果: &b%victim%&aは&cカメレオン&aでした" to attacker
  784. else:
  785. if {syo.%victim%} is "true":
  786. send "&{@logo} &6占い結果: &b%victim%&aは&b聖人&aでした" to attacker
  787. else:
  788. send "{@logo} &6占い結果: &b%victim%&aは村人でした" to attacker
  789. else:
  790. cancel event
  791. send "{@logo} &c占いは夜の間だけ可能です" to attacker
  792. else:
  793. cancel event
  794. send "{@logo} &cゲームは始まっていません" to attacker
  795.  
  796.  
  797.  
  798. on drop:
  799. if event-item is armor stand:
  800. cancel event
  801. wait a tick
  802. if {time} is "night":
  803. if {kisi.%player%} is "false":
  804. set {kisi.%player%} to "true"
  805. command "/effect %player% 11 100000 255 true"
  806. command "/clear %player% armor_stand 0 1"
  807. send "{@logo} &6騎士の祈り&aを使用しました" to player
  808. else:
  809. send "{@logo} &cすでに騎士の祈りを使用しています" to player
  810. else:
  811. send "{@logo} &c騎士の祈りは夜の間しか使用できません" to player
  812. on drop:
  813. if event-item is ender crystal:
  814. cancel event
  815. if {me.%player%} is "false":
  816. wait a tick
  817. set {me.%player%} to "true"
  818. execute console command "/clear %player% end_crystal 0 1"
  819. send "{@logo} &5共犯者の目&aを使用しました" to player
  820. send "{@logo} &e共犯者が&5共犯者の目&eを使用した" to {jinrou::*}
  821. execute console command "/scoreboard teams join jinrou %player%"
  822. wait 20 seconds
  823. send "{@logo} &5共犯者の目の効果が&a残り&610秒&aで効果が切れます…" to player
  824. wait 10 seconds
  825. send "{@logo} &5共犯者の目&aの効果が切れました。" to player
  826. execute console command "/scoreboard teams join kyouzin %player%"
  827. set {me.%player%} to "false"
  828. else:
  829. send "{@logo} &cすでに共犯者の目を使用しています" to player
  830. on drop:
  831. if event-item is firework star:
  832. cancel event
  833. wait a tick
  834. command "/clear %player% firework_charge 0 1"
  835. execute console command "execute %player% ~ ~ ~ /effect @a[r=5] 15 5 1"
  836. execute console command "effect %Player% 15 0 "
  837. send "{@logo} &8煙幕&aを使用しました。" to player
  838.  
  839.  
  840. on drop:
  841. if event-item is totems of undying:
  842. cancel event
  843. wait a tick
  844. execute console command "/effect @a[team=jinrou] glowing 10 1"
  845. execute console command "/effect @a[team=murabito] glowing 10 1"
  846. execute console command "/effect @a[team=kyouzin] glowing 10 1"
  847. execute console command "/effect @a[team=gouhu] glowing 10 1"
  848. execute console command "/effect @a[team=kyuketu] glowing 10 1"
  849. execute console command "/effect @a[team=jinrou] glowing 10 1"
  850. send "{@logo} &e透姿&aを使用しました。" to player
  851. command "/clear %player% minecraft:totem_of_undying 0 1"
  852.  
  853. on damage:
  854. if attacker's tool is redstone dust:
  855. if attacker's tool's name is "&d聖なる十字架":
  856. if victim is player:
  857. cancel event
  858. command "execute %attacker% ~ ~ ~ /playsound minecraft:entity.item.break master %attacker% ~ ~ ~ 1 2"
  859. command "/clear %attacker% redstone 0 1"
  860. send "{@logo} &a聖なる十字架を使用した!" to attacker
  861. wait a tick
  862. if {vampire.%victim%} is "true":
  863. command "/kill %victim%"
  864. send "{@logo} &d吸血鬼&aの殺害に成功しました &8(吸血鬼:&e%victim%&8)" to attacker
  865. else:
  866. send "{@logo} &d吸血鬼&cの殺害に失敗した" to attacker
  867.  
  868.  
  869.  
  870. on drop:
  871. event-item is bed or pieces of paper:
  872. cancel event
  873.  
  874. on drop:
  875. event-item is music record far:
  876. cancel event
  877. wait a tick
  878. if {game} is "true":
  879. if {kame.%player%} is "true":
  880. if {inv.%player%} is not set:
  881. send "{@logo} &a透明スキルを使用しました" to player
  882. command "/effect %player% minecraft:invisibility 20 255 true"
  883. set {inv.%player%} to 1
  884. wait 140 seconds
  885. delete {inv.%player%}
  886. send "{@logo} &a透明スキルが使用可能になりました" to player
  887. else:
  888. send "{@logo} &cクールダウン中…" to player
  889. else:
  890. send "{@logo} &cカメレオンしか使用できません" to player
  891. command /leave:
  892. trigger:
  893. if {game} is "true":
  894. if player's gamemode is spectator:
  895. send "&a観戦を抜けました"
  896. teleport player to {lobby}
  897. set player's gamemode to survival
  898. else:
  899. send "&c観戦者だけが使えるコマンドです"
  900.  
  901. on rightclick on a villager:
  902. if {game} is "true":
  903. if villager's name is "&c&l戦闘":
  904. cancel event
  905. open chest with 5 row named " &8------------==<<&6&l戦闘SHOP&8>>==-------------" to player
  906. wait a tick
  907. format slot 0 of player with black stained glass pane named "&a" to run [command "a"]
  908. format slot 1 of player with 3 emerald named "&a↓必要エメラルド:3↓" to run [command "a"]
  909. format slot 2 of player with 2 emerald named "&a↓必要エメラルド:2↓" to run [command "a"]
  910. format slot 3 of player with emerald named "&a↓必要エメラルド:1↓" to run [command "a"]
  911. format slot 4 of player with 5 emerald named "&a↓必要エメラルド:5↓" to run [command "a"]
  912. format slot 5 of player with 10 emerald named "&a↓必要エメラルド:10↓" to run [command "a"]
  913. format slot 6 of player with black stained glass pane named "&a" to run [command "a"]
  914. format slot 7 of player with black stained glass pane named "&a" to run [command "a"]
  915. format slot 8 of player with black stained glass pane named "&a" to run [command "a"]
  916. format slot 9 of player with black stained glass pane named "&a" to run [command "a"]
  917. 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%"]
  918. 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%"]
  919. 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%"]
  920. 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%"]
  921. 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%"]
  922. format slot 17 of player with black stained glass pane named "&a" to run [command "a"]
  923. format slot 18 of player with black stained glass pane named "&a" to run [command "a"]
  924. format slot 19 of player with black stained glass pane named "&a" to run [command "a"]
  925. format slot 20 of player with black stained glass pane named "&a" to run [command "a"]
  926. format slot 21 of player with black stained glass pane named "&a" to run [command "a"]
  927. format slot 22 of player with black stained glass pane named "&a" to run [command "a"]
  928. format slot 23 of player with black stained glass pane named "&a" to run [command "a"]
  929. format slot 24 of player with black stained glass pane named "&a" to run [command "a"]
  930. format slot 25 of player with black stained glass pane named "&a" to run [command "a"]
  931. format slot 26 of player with black stained glass pane named "&a" to run [command "a"]
  932. format slot 27 of player with black stained glass pane named "&a" to run [command "a"]
  933. format slot 35 of player with black stained glass pane named "&a" to run [command "a"]
  934. format slot 36 of player with black stained glass pane named "&a" to run [command "a"]
  935. format slot 37 of player with black stained glass pane named "&a" to run [command "a"]
  936. format slot 38 of player with black stained glass pane named "&a" to run [command "a"]
  937. format slot 39 of player with black stained glass pane named "&a" to run [command "a"]
  938. format slot 40 of player with black stained glass pane named "&a" to run [command "a"]
  939. format slot 41 of player with black stained glass pane named "&a" to run [command "a"]
  940. format slot 42 of player with black stained glass pane named "&a" to run [command "a"]
  941. format slot 43 of player with black stained glass pane named "&a" to run [command "a"]
  942. format slot 44 of player with black stained glass pane named "&a" to run [command "a"]
  943. if {jinrou.%player%} is "true":
  944. 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%"]
  945. format slot 37 of player with 3 emerald named "&a↓必要エメラルド:3↓" to run [command "a"]
  946. if villager's name is "&a&l補助":
  947. cancel event
  948. open chest with 5 row named " &8------------==<<&6&l補助SHOP&8>>==-------------" to player
  949. wait a tick
  950. format slot 0 of player with black stained glass pane named "&a" to run [command "a"]
  951. format slot 1 of player with 5 emerald named "&a↓必要エメラルド:5↓" to run [command "a"]
  952. format slot 2 of player with 2 emerald named "&a↓必要エメラルド:18↓" to run [command "a"]
  953. format slot 3 of player with 8 emerald named "&a↓必要エメラルド:8↓" to run [command "a"]
  954. format slot 4 of player with 5 emerald named "&a↓必要エメラルド:5↓" to run [command "a"]
  955. format slot 5 of player with black stained glass pane named "&a" to run [command "a"]
  956. format slot 6 of player with black stained glass pane named "&a" to run [command "a"]
  957. format slot 7 of player with black stained glass pane named "&a" to run [command "a"]
  958. format slot 8 of player with black stained glass pane named "&a" to run [command "a"]
  959. format slot 9 of player with black stained glass pane named "&a" to run [command "a"]
  960. 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%"]
  961. 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%"]
  962. 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%"]
  963. 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%"]
  964. format slot 17 of player with black stained glass pane named "&6" to run [command "a"]
  965. format slot 18 of player with black stained glass pane named "&a" to run [command "a"]
  966. format slot 19 of player with black stained glass pane named "&a" to run [command "a"]
  967. format slot 20 of player with black stained glass pane named "&a" to run [command "a"]
  968. format slot 21 of player with black stained glass pane named "&a" to run [command "a"]
  969. format slot 22 of player with black stained glass pane named "&a" to run [command "a"]
  970. format slot 23 of player with black stained glass pane named "&a" to run [command "a"]
  971. format slot 24 of player with black stained glass pane named "&a" to run [command "a"]
  972. format slot 25 of player with black stained glass pane named "&a" to run [command "a"]
  973. format slot 26 of player with black stained glass pane named "&a" to run [command "a"]
  974. format slot 27 of player with black stained glass pane named "&a" to run [command "a"]
  975. format slot 35 of player with black stained glass pane named "&a" to run [command "a"]
  976. format slot 36 of player with black stained glass pane named "&a" to run [command "a"]
  977. format slot 37 of player with black stained glass pane named "&a" to run [command "a"]
  978. format slot 38 of player with black stained glass pane named "&a" to run [command "a"]
  979. format slot 39 of player with black stained glass pane named "&a" to run [command "a"]
  980. format slot 40 of player with black stained glass pane named "&a" to run [command "a"]
  981. format slot 41 of player with black stained glass pane named "&a" to run [command "a"]
  982. format slot 42 of player with black stained glass pane named "&a" to run [command "a"]
  983. format slot 43 of player with black stained glass pane named "&a" to run [command "a"]
  984. format slot 44 of player with black stained glass pane named "&a" to run [command "a"]
  985. if {jinrou.%player%} is "true":
  986. 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%"]
  987. 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%"]
  988. format slot 37 of player with 5 emerald named "&a↓必要エメラルド:5↓" to run [command "a"]
  989. format slot 38 of player with 3 emerald named "&a↓必要エメラルド:3↓" to run [command "a"]
  990. else:
  991. if {kyouzin.%player%} is "true":
  992. 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%"]
  993. format slot 37 of player with 5 emerald named "&a↓必要エメラルド:5↓" to run [command "a"]
  994. else:
  995. 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%"]
  996. format slot 37 of player with 5 emerald named "&a↓必要エメラルド:5↓" to run [command "a"]
  997.  
  998. command /shop [<text>] [<player>]:
  999. executable by: console
  1000. trigger:
  1001. if arg-1 is "1": #弓
  1002. set {_a} to amount of emerald in arg-2's inventory
  1003. if {_a} is greater than or equal to 3:
  1004. execute console command "/give %arg-2% minecraft:bow 1 384 {HideFlags:33,display:{Name:""&6&l弓""},ench:[{id:48,lvl:1000}]}"
  1005. execute console command "clear %arg-2% emerald 0 3"
  1006. else:
  1007. send "{@logo} &cエメラルドが足りません" to arg-2
  1008. if arg-1 is "2": #矢
  1009. set {_b} to amount of emerald in arg-2's inventory
  1010. if {_b} is greater than or equal to 2:
  1011. give arg-2 arrow named "&6&l矢"
  1012. execute console command "clear %arg-2% emerald 0 2"
  1013. else:
  1014. send "{@logo} &cエメラルドが足りません" to arg-2
  1015. if arg-1 is "3": #ステーキ
  1016. set {_c} to amount of emerald in arg-2's inventory
  1017. if {_c} is greater than or equal to 1:
  1018. give arg-2 5 steak
  1019. execute console command "clear %arg-2% emerald 0 1"
  1020. else:
  1021. send "{@logo} &cエメラルドが足りません" to arg-2
  1022. if arg-1 is "4": #スケ狩剣
  1023. set {_d} to amount of emerald in arg-2's inventory
  1024. if {_d} is greater than or equal to 5:
  1025. execute console command "give %arg-2% minecraft:wooden_sword 1 0 {HideFlags:4,Unbreakable:1,display:{Name:""&c&lスケ狩剣""}}"
  1026. execute console command "clear %arg-2% emerald 0 5"
  1027. else:
  1028. send "{@logo} &cエメラルドが足りません" to arg-2
  1029. if arg-1 is "5": #スケ狩剣 <強化>
  1030. set {_e} to amount of emerald in arg-2's inventory
  1031. if {_e} is greater than or equal to 10:
  1032. 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}]}"
  1033. execute console command "clear %arg-2% emerald 0 10"
  1034. else:
  1035. send "{@logo} &cエメラルドが足りません" to arg-2
  1036. if arg-1 is "6": #人狼の斧
  1037. set {_f} to amount of emerald in arg-2's inventory
  1038. if {_f} is greater than or equal to 3:
  1039. execute console command "/give %arg-2% minecraft:stone_axe 1 131 {HideFlags:5,display:{Name:""&4&l人狼の斧""},ench:[{id:16,lvl:10000}]}"
  1040. execute console command "clear %arg-2% emerald 0 3"
  1041. else:
  1042. send "{@logo} &cエメラルドが足りません" to arg-2
  1043. if arg-1 is "7": #占いの権利
  1044. set {_g} to amount of emerald in arg-2's inventory
  1045. if {_g} is greater than or equal to 5:
  1046. give arg-2 stick named "&5占いの権利"
  1047. execute console command "clear %arg-2% emerald 0 5"
  1048. else:
  1049. send "{@logo} &cエメラルドが足りません" to arg-2
  1050. if arg-1 is "8": #透姿
  1051. set {_h} to amount of emerald in arg-2's inventory
  1052. if {_h} is greater than or equal to 18:
  1053. give arg-2 totems of undying named "&7透姿"
  1054. execute console command "clear %arg-2% emerald 0 18"
  1055. else:
  1056. send "{@logo} &cエメラルドが足りません" to arg-2
  1057. if arg-1 is "9": #煙幕
  1058. set {_i} to amount of emerald in arg-2's inventory
  1059. if {_i} is greater than or equal to 8:
  1060. give arg-2 firework star named "&8煙幕"
  1061. command "/clear %arg-2% emerald 0 8"
  1062. else:
  1063. send "{@logo} &cエメラルドが足りません" to arg-2
  1064. if arg-1 is "10": #騎士の祈り
  1065. set {_j} to amount of emerald in arg-2's inventory
  1066. if {_j} is greater than or equal to 5:
  1067. give arg-2 armor stand named "&6騎士の祈り"
  1068. command "/clear %arg-2% emerald 0 5"
  1069. else:
  1070. send "{@logo} &cエメラルドが足りません" to arg-2
  1071. if arg-1 is "11": #共犯者の目
  1072. set {_k} to amount of emerald in arg-2's inventory
  1073. if {_k} is greater than or equal to 5:
  1074. give arg-2 end crystal item named "&5共犯者の目"
  1075. command "/clear %arg-2% emerald 0 5"
  1076. else:
  1077. send "{@logo} &cエメラルドが足りません" to arg-2
  1078. if arg-1 is "12": #透明
  1079. set {_l} to amount of emerald in arg-2's inventory
  1080. if {_l} is greater than or equal to 5:
  1081. execute console command "/give %arg-2% minecraft:potion 1 0 {display:{Name:""&a&l30秒&b透明""},CustomPotionEffects:[{Id:14,Amplifier:0,Duration:600}],CustomPotionColor:13104383}"
  1082. command "/clear %arg-2% emerald 0 5"
  1083. else:
  1084. send "{@logo} &cエメラルドが足りません" to arg-2
  1085. if arg-1 is "13": #スピード
  1086. set {_m} to amount of emerald in arg-2's inventory
  1087. if {_m} is greater than or equal to 3:
  1088. 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}"
  1089. command "/clear %arg-2% emerald 0 3"
  1090. else:
  1091. send "{@logo} &cエメラルドが足りません" to arg-2
  1092. if arg-1 is "14": #聖なる十字架
  1093. set {_n} to amount of emerald in arg-2's inventory
  1094. if {_n} is greater than or equal to 5:
  1095. give arg-2 redstone dust named "&d聖なる十字架"
  1096. command "/clear %arg-2% emerald 0 5"
  1097. else:
  1098. send "{@logo} &cエメラルドが足りません" to arg-2
  1099.  
  1100. on drop:
  1101. if event-item is written book:
  1102. cancel event
  1103.  
  1104. command /join [<player>]:
  1105. trigger:
  1106. if {game} is "false":
  1107. if arg-1 is not set:
  1108. if {sanka.%player%} is "false":
  1109. send "&8[&2&lケイドロ&8] &aゲームに参加しました!"
  1110. command "/execute %player% ~ ~ ~ /playsound minecraft:block.dispenser.fail master %player%"
  1111. set {sanka.%player%} to "true"
  1112. command "/scoreboard teams join sanka %player%"
  1113. add 1 to {join}
  1114. else:
  1115. send "&8[&2&lケイドロ&8] &cすでに参加しています"
  1116. command "/execute %player% ~ ~ ~ /playsound minecraft:block.dispenser.fail master %player%"
  1117. if arg-1 is set:
  1118. if player is op:
  1119. if {sanka.%arg-1%} is "false":
  1120. send "{@logo} &a%player%により強制参加させられました" to arg-1
  1121. command "/execute %arg-1% ~ ~ ~ /playsound minecraft:block.dispenser.fail master %arg-1%"
  1122. send "{@logo} &a%arg-1%を強制参加させました"
  1123. set {sanka.%arg-1%} to "true"
  1124. add 1 to {join}
  1125. command "/scoreboard teams join sanka %arg-1%"
  1126. else:
  1127. send "{@logo} &a%arg-1%はすでに参加しています"
  1128. command "/execute %player% ~ ~ ~ /playsound minecraft:block.dispenser.fail master %player%"
  1129. else:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement