Advertisement
taktie0304

Untitled

Jul 22nd, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 36.76 KB | None | 0 0
  1. command /scoreoption:
  2. trigger:
  3. command "/scoreboard teams add red"
  4. command "/scoreboard teams add blue"
  5. command "/scoreboard teams option red color red"
  6. command "/scoreboard teams option blue color blue"
  7. command "/scoreboard teams option red friendlyfire false"
  8. command "/scoreboard teams option blue friendlyfire false"
  9. command "/scoreboard teams option red nametagVisibility hideForOtherTeams"
  10. command "/scoreboard teams option blue nametagVisibility hideForOtherTeams"
  11. set {game} to false
  12. set {start} to false
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20. on rightclick on wood button:
  21. if {start} is false:
  22. if {game} is false:
  23. set {start} to true
  24. wait 1 second
  25. loop all players:
  26. send loop-player title "&a5" with subtitle "&fスタートまで" for 1 seconds
  27. wait 1 second
  28. loop all players:
  29. send loop-player title "&a4" with subtitle "&fスタートまで" for 1 seconds
  30. wait 1 second
  31. loop all players:
  32. send loop-player title "&a3" with subtitle "&fスタートまで" for 1 seconds
  33. wait 1 second
  34. loop all players:
  35. send loop-player title "&a2" with subtitle "&fスタートまで" for 1 seconds
  36. wait 1 second
  37. loop all players:
  38. send loop-player title "&a1" with subtitle "&fスタートまで" for 1 seconds
  39. wait 2 second
  40. set {gameplayer} to 0
  41. loop all players:
  42. if {join.%loop-player%} is true:
  43. add 1 to {gameplayer}
  44. if {gameplayer} <= 1:
  45. broadcast "&c参加人数が足りませんでした"
  46. wait 1 second
  47. set {start} to false
  48. else:
  49. set {red} to 0
  50. set {blue} to 0
  51. set {count} to 120
  52. set {lobby} to location (49, 5, 10)
  53. set {cmdlobby} to "49 5 10"
  54. set {redspawn} to location (-80, 22, 33)
  55. set {bluespawn} to location (-18, 19, 0)
  56. set {obsidian} to true
  57. set {putobsidian} to false
  58. command "/scoreboard teams empty red"
  59. command "/scoreboard teams empty blue"
  60. loop all players:
  61. if {join.%loop-player%} is true:
  62. if {a} == 0:
  63. command "clear %loop-player%"
  64. if {obsidian} is true:
  65. command "/give %loop-player% minecraft:obsidian 1 0 {display:{Name:""金ブロックの上に置いてください!""},CanPlaceOn:[""minecraft:gold_block""]}"
  66. set {obsidian} to false
  67. set {died.%loop-player%} to false
  68. set {team.%loop-player%} to "red"
  69. set {teamchat.%loop-player%} to "&c"
  70. add 1 to {red}
  71. command "/scoreboard teams join red %loop-player%"
  72. wait 2 ticks
  73. teleport the loop-player to {redspawn}
  74. command "shot give %loop-player% ak"
  75. give red wool named "&cあなたは赤チームです" to loop-player
  76. equip loop-player with leather helmet
  77. dye loop-player's helmet (255, 51, 0)
  78. set the loop-player's gamemode to adventure
  79. set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%{prefix.%uuid of loop-player%}%&c%loop-player%&r%{suffix.%uuid of loop-player%}%"
  80. send loop-player title " " with subtitle "&f敵を全滅、もしくは黒曜石を防衛せよ" for 5 seconds
  81. delete {join.%loop-player%}
  82. set {a} to 1
  83. else:
  84. command "clear %loop-player%"
  85. command "/give %loop-player% minecraft:diamond_pickaxe 1 0 {display:{Name:""黒曜石を破壊してください!""},ench:[{id:32s,lvl:1s}],CanDestroy:[""minecraft:obsidian""]}"
  86. set {died.%loop-player%} to false
  87. set {team.%loop-player%} to "blue"
  88. set {teamchat.%loop-player%} to "&9"
  89. add 1 to {blue}
  90. command "/scoreboard teams join blue %loop-player%"
  91. wait 2 ticks
  92. teleport the loop-player to {bluespawn}
  93. command "shot give %loop-player% ak"
  94. give blue wool named "&9あなたは青チームです" to loop-player
  95. equip loop-player with leather helmet
  96. dye loop-player's helmet (0, 51, 255)
  97. set the loop-player's gamemode to adventure
  98. set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%{prefix.%uuid of loop-player%}%&9%loop-player%&r%{suffix.%uuid of loop-player%}%"
  99. send loop-player title " " with subtitle "&f敵を全滅、もしくは黒曜石を破壊せよ" for 5 seconds
  100. delete {join.%loop-player%}
  101. set {a} to 0
  102. set {game} to true
  103. broadcast "&c赤%{red}%人&a &9青%{blue}%人 &a参加中"
  104. enable PvP
  105. set {start} to false
  106. else:
  107. send "&c現在試合中です" to player
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116. on damage of player:
  117. if {game} is true:
  118. if {team.%attacker%} == {team.%victim%}:
  119. cancel event
  120.  
  121. on death of player:
  122. if {game} is true:
  123. set {died.%player%} to true
  124. set the death message to "%{teamchat.%attacker%}%%attacker% &7--&8|&6)&7--> %{teamchat.%victim%}%%victim%"
  125. set {DeathPoint.%player%} to location of player
  126. force the player to respawn
  127. teleport player to {DeathPoint.%player%}
  128. set the player's gamemode to spectator
  129. remove 1 from {%{team.%victim%}%}
  130. add 1 to {kill.%uuid of attacker%}
  131. add 1 to {death.%uuid of victim%}
  132. add 3 to {xp.%uuid of attacker%}
  133. send "&a+3xp" to attacker
  134. if {putobsidian} is true:
  135. if {red} is 0:
  136. loop all players:
  137. if {team.%loop-player%} is "red":
  138. send loop-player title " " with subtitle "&f味方が全員倒された" for 3 seconds
  139. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
  140. if {team.%loop-player%} is "blue":
  141. send loop-player title " " with subtitle "&f敵は全滅した。黒曜石を破壊せよ" for 3 seconds
  142. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
  143. else if {blue} is 0:
  144. set {game} to false
  145. disable PvP
  146. loop all players:
  147. if {team.%loop-player%} is "red":
  148. send loop-player title "&6&l勝利" with subtitle "&f敵を全員倒した" for 5 seconds
  149. send "&6&l勝利!" to loop-player
  150. send "&a+10xp" to loop-player
  151. add 10 to {xp.%uuid of loop-player%}
  152. add 1 to {win.%uuid of loop-player%}
  153. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  154. if {team.%loop-player%} is "blue":
  155. send loop-player title "&9&l敗北" with subtitle "&f味方が全員倒された" for 5 seconds
  156. send "&9&l敗北..." to loop-player
  157. send "&a+2xp" to loop-player
  158. add 2 to {xp.%uuid of loop-player%}
  159. add 1 to {lose.%uuid of loop-player%}
  160. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  161. wait 6 seconds
  162. loop all players:
  163. if {team.%loop-player%} is set:
  164. close loop-player's inventory
  165. command "clear %loop-player%"
  166. command "kill @e[type=Item]"
  167. give grey dye named "&eゲームに参加する" to loop-player
  168. teleport the loop-player to {lobby}
  169. set health of loop-player to max health of loop-player
  170. set the loop-player's gamemode to adventure
  171. set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%{prefix.%uuid of loop-player%}%&r%loop-player%&r%{suffix.%uuid of loop-player%}%"
  172. delete {team.%loop-player%}
  173. command "/fill -43 21 -9 -47 21 -5 air"
  174. command "/fill -11 21 37 -7 21 41 air"
  175. else:
  176. send "&a試合が終了しました" to loop-player
  177. else:
  178. loop all players:
  179. if {team.%loop-player%} is "red":
  180. send loop-player title " " with subtitle "%{red}% VS %{blue}%" for 3 seconds
  181. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
  182. if {team.%loop-player%} is "blue":
  183. send loop-player title " " with subtitle "%{blue}% VS %{red}%" for 3 seconds
  184. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
  185. else if {red} is 0:
  186. set {game} to false
  187. disable PvP
  188. loop all players:
  189. if {team.%loop-player%} is "red":
  190. send loop-player title "&9&l敗北" with subtitle "&f味方が全員倒された" for 5 seconds
  191. send "&9&l敗北..." to loop-player
  192. send "&a+2xp" to loop-player
  193. add 2 to {xp.%uuid of loop-player%}
  194. add 1 to {lose.%uuid of loop-player%}
  195. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  196. if {team.%loop-player%} is "blue":
  197. send loop-player title "&6&l勝利" with subtitle "&f敵を全員倒した" for 5 seconds
  198. send "&6&l勝利!" to loop-player
  199. send "&a+10xp" to loop-player
  200. add 10 to {xp.%uuid of loop-player%}
  201. add 1 to {win.%uuid of loop-player%}
  202. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  203. wait 6 seconds
  204. loop all players:
  205. if {team.%loop-player%} is set:
  206. close loop-player's inventory
  207. command "clear %loop-player%"
  208. command "kill @e[type=Item]"
  209. give grey dye named "&eゲームに参加する" to loop-player
  210. teleport the loop-player to {lobby}
  211. set health of loop-player to max health of loop-player
  212. set the loop-player's gamemode to adventure
  213. set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%{prefix.%uuid of loop-player%}%&r%loop-player%&r%{suffix.%uuid of loop-player%}%"
  214. delete {team.%loop-player%}
  215. command "/fill -43 21 -9 -47 21 -5 air"
  216. command "/fill -11 21 37 -7 21 41 air"
  217. else:
  218. send "&a試合が終了しました" to loop-player
  219. else if {blue} is 0:
  220. set {game} to false
  221. disable PvP
  222. loop all players:
  223. if {team.%loop-player%} is "red":
  224. send loop-player title "&6&l勝利" with subtitle "&f敵を全員倒した" for 5 seconds
  225. send "&6&l勝利!" to loop-player
  226. send "&a+10xp" to loop-player
  227. add 10 to {xp.%uuid of loop-player%}
  228. add 1 to {win.%uuid of loop-player%}
  229. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  230. if {team.%loop-player%} is "blue":
  231. send loop-player title "&9&l敗北" with subtitle "&f味方が全員倒された" for 5 seconds
  232. send "&9&l敗北..." to loop-player
  233. send "&a+2xp" to loop-player
  234. add 2 to {xp.%uuid of loop-player%}
  235. add 1 to {lose.%uuid of loop-player%}
  236. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  237. wait 6 seconds
  238. loop all players:
  239. if {team.%loop-player%} is set:
  240. close loop-player's inventory
  241. command "clear %loop-player%"
  242. command "kill @e[type=Item]"
  243. give grey dye named "&eゲームに参加する" to loop-player
  244. teleport the loop-player to {lobby}
  245. set health of loop-player to max health of loop-player
  246. set the loop-player's gamemode to adventure
  247. set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%{prefix.%uuid of loop-player%}%&r%loop-player%&r%{suffix.%uuid of loop-player%}%"
  248. delete {team.%loop-player%}
  249. command "/fill -43 21 -9 -47 21 -5 air"
  250. command "/fill -11 21 37 -7 21 41 air"
  251. else:
  252. send "&a試合が終了しました" to loop-player
  253. else:
  254. loop all players:
  255. if {team.%loop-player%} is "red":
  256. send loop-player title " " with subtitle "%{red}% VS %{blue}%" for 3 seconds
  257. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
  258. if {team.%loop-player%} is "blue":
  259. send loop-player title " " with subtitle "%{blue}% VS %{red}%" for 3 seconds
  260. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269. on quit:
  270. if {team.%player%} is set:
  271. delete {team.%player%}
  272. delete {teamchat.%player%}
  273. if {died.%player%} is false:
  274. remove 1 from {%{team.%player%}%}
  275. command "/scoreboard teams leave %{team.%player%}% %player%"
  276. if {red} is 0:
  277. set {game} to false
  278. disable PvP
  279. loop all players:
  280. if {team.%loop-player%} is "red":
  281. send loop-player title "&9&l敗北" with subtitle "&f味方が全員倒された" for 5 seconds
  282. send "&9&l敗北..." to loop-player
  283. send "&a+2xp" to loop-player
  284. add 2 to {xp.%uuid of loop-player%}
  285. add 1 to {lose.%uuid of loop-player%}
  286. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  287. if {team.%loop-player%} is "blue":
  288. send loop-player title "&6&l勝利" with subtitle "&f敵を全員倒した" for 5 seconds
  289. send "&6&l勝利!" to loop-player
  290. send "&a+10xp" to loop-player
  291. add 10 to {xp.%uuid of loop-player%}
  292. add 1 to {win.%uuid of loop-player%}
  293. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  294. wait 6 seconds
  295. loop all players:
  296. if {team.%loop-player%} is set:
  297. close loop-player's inventory
  298. command "clear %loop-player%"
  299. command "kill @e[type=Item]"
  300. give grey dye named "&eゲームに参加する" to loop-player
  301. teleport the loop-player to {lobby}
  302. set health of loop-player to max health of loop-player
  303. set the loop-player's gamemode to adventure
  304. set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%{prefix.%uuid of loop-player%}%&r%loop-player%&r%{suffix.%uuid of loop-player%}%"
  305. delete {team.%loop-player%}
  306. command "/fill -43 21 -9 -47 21 -5 air"
  307. command "/fill -11 21 37 -7 21 41 air"
  308. else:
  309. send "&a試合が終了しました" to loop-player
  310. else if {blue} is 0:
  311. set {game} to false
  312. disable PvP
  313. loop all players:
  314. if {team.%loop-player%} is "red":
  315. send loop-player title "&6&l勝利" with subtitle "&f敵を全員倒した" for 5 seconds
  316. send "&6&l勝利!" to loop-player
  317. send "&a+10xp" to loop-player
  318. add 10 to {xp.%uuid of loop-player%}
  319. add 1 to {win.%uuid of loop-player%}
  320. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  321. if {team.%loop-player%} is "blue":
  322. send loop-player title "&9&l敗北" with subtitle "&f味方が全員倒された" for 5 seconds
  323. send "&9&l敗北..." to loop-player
  324. send "&a+2xp" to loop-player
  325. add 2 to {xp.%uuid of loop-player%}
  326. add 1 to {lose.%uuid of loop-player%}
  327. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  328. wait 6 seconds
  329. loop all players:
  330. if {team.%loop-player%} is set:
  331. close loop-player's inventory
  332. command "clear %loop-player%"
  333. command "kill @e[type=Item]"
  334. give grey dye named "&eゲームに参加する" to loop-player
  335. teleport the loop-player to {lobby}
  336. set health of loop-player to max health of loop-player
  337. set the loop-player's gamemode to adventure
  338. set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%{prefix.%uuid of loop-player%}%&r%loop-player%&r%{suffix.%uuid of loop-player%}%"
  339. delete {team.%loop-player%}
  340. command "/fill -43 21 -9 -47 21 -5 air"
  341. command "/fill -11 21 37 -7 21 41 air"
  342. else:
  343. send "&a試合が終了しました" to loop-player
  344. else:
  345. loop all players:
  346. if {team.%loop-player%} is "red":
  347. send loop-player title " " with subtitle "%{red}% VS %{blue}%" for 3 seconds
  348. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
  349. if {team.%loop-player%} is "blue":
  350. send loop-player title " " with subtitle "%{blue}% VS %{red}%" for 3 seconds
  351. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
  352.  
  353.  
  354.  
  355.  
  356.  
  357.  
  358.  
  359.  
  360. on place of obsidian:
  361. if {game} is true:
  362. set {count} to 40
  363. set {putobsidian} to true
  364. loop all players:
  365. if {team.%loop-player%} is "red":
  366. send "&a&l黒曜石が設置された! 40秒間守り切れ!" to loop-player
  367. send loop-player title " " with subtitle "&a黒曜石が設置された! 40秒間守り切れ!" for 3 seconds
  368. if {team.%loop-player%} is "blue":
  369. send "&c&l黒曜石が設置された! 40秒以内に破壊せよ!" to loop-player
  370. send loop-player title " " with subtitle "&c黒曜石が設置された! 40秒以内に破壊せよ!" for 3 seconds
  371.  
  372.  
  373.  
  374.  
  375.  
  376.  
  377.  
  378.  
  379. on pick up of obsidian:
  380. if {team.%player%} is "blue":
  381. cancel event
  382.  
  383. on break of obsidian:
  384. if {game} is true:
  385. set {game} to false
  386. disable PvP
  387. loop all players:
  388. if {team.%loop-player%} is "red":
  389. send loop-player title "&9&l敗北" with subtitle "&f黒曜石が破壊された" for 5 seconds
  390. send "&9&l敗北..." to loop-player
  391. send "&a+2xp" to loop-player
  392. add 2 to {xp.%uuid of loop-player%}
  393. add 1 to {lose.%uuid of loop-player%}
  394. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  395. if {team.%loop-player%} is "blue":
  396. send loop-player title "&6&l勝利" with subtitle "&f黒曜石を破壊した" for 5 seconds
  397. send "&6&l勝利!" to loop-player
  398. send "&a+10xp" to loop-player
  399. add 10 to {xp.%uuid of loop-player%}
  400. add 1 to {victory.%uuid of loop-player%}
  401. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  402. wait 6 seconds
  403. loop all players:
  404. if {team.%loop-player%} is set:
  405. close loop-player's inventory
  406. command "clear %loop-player%"
  407. command "kill @e[type=Item]"
  408. give grey dye named "&eゲームに参加する" to loop-player
  409. teleport the loop-player to {lobby}
  410. set health of loop-player to max health of loop-player
  411. set the loop-player's gamemode to adventure
  412. set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%{prefix.%uuid of loop-player%}%&r%loop-player%&r%{suffix.%uuid of loop-player%}%"
  413. delete {team.%loop-player%}
  414. command "/fill -43 21 -9 -47 21 -5 air"
  415. command "/fill -11 21 37 -7 21 41 air"
  416. else:
  417. send "&a試合が終了しました" to loop-player
  418.  
  419.  
  420.  
  421.  
  422.  
  423.  
  424.  
  425.  
  426. every a second in "world":
  427. if {game} is true:
  428. remove 1 from {count}
  429. if {count} < 0:
  430. set {game} to false
  431. disable PvP
  432. if {putobsidian} is true:
  433. loop all players:
  434. if {team.%loop-player%} is "red":
  435. send loop-player title "&6&l勝利" with subtitle "&f時間切れ" for 5 seconds
  436. send "&6&l勝利!" to loop-player
  437. send "&a+10xp" to loop-player
  438. add 10 to {xp.%uuid of loop-player%}
  439. add 1 to {win.%uuid of loop-player%}
  440. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  441. if {team.%loop-player%} is "blue":
  442. send loop-player title "&9&l敗北" with subtitle "&f時間切れ" for 5 seconds
  443. send "&9&l敗北..." to loop-player
  444. send "&a+2xp" to loop-player
  445. add 2 to {xp.%uuid of loop-player%}
  446. add 1 to {lose.%uuid of loop-player%}
  447. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  448. wait 6 seconds
  449. loop all players:
  450. if {team.%loop-player%} is set:
  451. close loop-player's inventory
  452. command "clear %loop-player%"
  453. command "kill @e[type=Item]"
  454. give grey dye named "&eゲームに参加する" to loop-player
  455. command "/tp %loop-player% %{cmdlobby}%"
  456. set health of loop-player to max health of loop-player
  457. set the loop-player's gamemode to adventure
  458. set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%{prefix.%uuid of loop-player%}%&r%loop-player%&r%{suffix.%uuid of loop-player%}%"
  459. delete {team.%loop-player%}
  460. command "/fill -43 21 -9 -47 21 -5 air"
  461. command "/fill -11 21 37 -7 21 41 air"
  462. else:
  463. send "&a試合が終了しました" to loop-player
  464. else:
  465. loop all players:
  466. if {team.%loop-player%} is "red":
  467. send loop-player title "&9&l敗北" with subtitle "&f時間切れ" for 5 seconds
  468. send "&9&l敗北..." to loop-player
  469. send "&a+2xp" to loop-player
  470. add 2 to {xp.%uuid of loop-player%}
  471. add 1 to {lose.%uuid of loop-player%}
  472. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  473. if {team.%loop-player%} is "blue":
  474. send loop-player title "&6&l勝利" with subtitle "&f時間切れ" for 5 seconds
  475. send "&6&l勝利!" to loop-player
  476. send "&a+10xp" to loop-player
  477. add 10 to {xp.%uuid of loop-player%}
  478. add 1 to {win.%uuid of loop-player%}
  479. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  480. wait 6 seconds
  481. loop all players:
  482. if {team.%loop-player%} is set:
  483. close loop-player's inventory
  484. command "clear %loop-player%"
  485. command "kill @e[type=Item]"
  486. give grey dye named "&eゲームに参加する" to loop-player
  487. command "/tp %loop-player% %{cmdlobby}%"
  488. set health of loop-player to max health of loop-player
  489. set the loop-player's gamemode to adventure
  490. set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%{prefix.%uuid of loop-player%}%&r%loop-player%&r%{suffix.%uuid of loop-player%}%"
  491. delete {team.%loop-player%}
  492. command "/fill -43 21 -9 -47 21 -5 air"
  493. command "/fill -11 21 37 -7 21 41 air"
  494. else:
  495. send "&a試合が終了しました" to loop-player
  496. loop all players:
  497. if {team.%loop-player%} is set:
  498. set action bar of loop-player to "&f(残り時間: %{count}%秒)"
  499.  
  500.  
  501.  
  502.  
  503.  
  504.  
  505.  
  506.  
  507. command /stats [<offline player>]:
  508. trigger:
  509. if arg 1 is not set:
  510. send "&6-----< &b%player% &6>-----"
  511. set {killdeath.%uuid of player%} to {kill.%uuid of player%} / {death.%uuid of player%}
  512. set {winlose.%uuid of player%} to {win.%uuid of player%} / {lose.%uuid of player%}
  513. send " &alevel: &e%{level.%uuid of player%}%" to player
  514. send " &axp: &e%{xp.%uuid of player%}%&7/%{needxp.%uuid of player%}%" to player
  515. send " "
  516. send " &akill: &e%{kill.%uuid of player%}%" to player
  517. send " &adeath: &e%{death.%uuid of player%}%" to player
  518. send " &aK/D: &e%{killdeath.%uuid of player%}%" to player
  519. send " &awin: &e%{win.%uuid of player%}%" to player
  520. send " &alose: &e%{lose.%uuid of player%}%" to player
  521. send " &aW/L: &e%{winlose.%uuid of player%}%" to player
  522. else:
  523. send "&6-----< &b%arg 1% &6>-----"
  524. set {killdeath.%uuid of arg 1%} to {kill.%uuid of arg 1%} / {death.%uuid of arg 1%}
  525. set {winlose.%uuid of arg 1%} to {win.%uuid of arg 1%} / {lose.%uuid of arg 1%}
  526. send " &alevel: &e%{level.%uuid of arg 1%}%" to player
  527. send " &axp: &e%{xp.%uuid of arg 1%}%&7/%{needxp.%uuid of arg 1%}%" to player
  528. send " "
  529. send " &akill: &e%{kill.%uuid of arg 1%}%" to player
  530. send " &adeath: &e%{death.%uuid of arg 1%}%" to player
  531. send " &aK/D: &e%{killdeath.%uuid of arg 1%}%" to player
  532. send " &awin: &e%{win.%uuid of arg 1%}%" to player
  533. send " &alose: &e%{lose.%uuid of arg 1%}%" to player
  534. send " &aW/L: &e%{winlose.%uuid of arg 1%}%" to player
  535.  
  536. on first join:
  537. set {kill.%uuid of player%} to 0
  538. set {death.%uuid of player%} to 0
  539. set {killdeath.%uuid of player%} to 0
  540. set {win.%uuid of player%} to 0
  541. set {lose.%uuid of player%} to 0
  542. set {winlose.%uuid of player%} to 0
  543. set {level.%uuid of player%} to 1
  544. set {xp.%uuid of player%} to 0
  545. set {needxp.%uuid of player%} to 10
  546. set {prefix.%uuid of player%} to ""
  547. set {suffix.%uuid of player%} to ""
  548.  
  549. on any movement:
  550. if {xp.%uuid of player%} >= {needxp.%uuid of player%}:
  551. set {xp.%uuid of player%} to {xp.%uuid of player%} - {needxp.%uuid of player%}
  552. add 1 to {level.%uuid of player%}
  553. set {needxp.%uuid of player%} to {needxp.%uuid of player%} * 1.5
  554. send "&b&lレベルアップ!! &a現在のレベル&7: &e%{level.%uuid of player%}%"
  555. set the player's tablist name to "&7[Lv%{level.%uuid of player%}%]&r%{prefix.%uuid of player%}%&r%player%&r%{suffix.%uuid of player%}%"
  556. set tab header to "&7-- &d&lTeamBowPvP &7--" and footer to "&a現在のレベル&7: &e%{level.%uuid of player%}%" for player
  557.  
  558. on join:
  559. wait 3 ticks
  560. disable PvP
  561. set the player's tablist name to "&7[Lv%{level.%uuid of player%}%]&r%{prefix.%uuid of player%}%&r%player%&r%{suffix.%uuid of player%}%"
  562. set tab header to "&7-- &d&lTeamGunPvP &7--" and footer to "&a現在のレベル&7: &e%{level.%uuid of player%}%" for player
  563. command "/clear %player%"
  564. give grey dye named "&eゲームに参加する" to player
  565. command "/tp %player% %{cmdlobby}%"
  566. set rf max hp of player to 20
  567. set health of player to max health of player
  568. command "/gamemode 2 %player%"
  569. send "&a▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬" to player
  570. send " &f&lTeamGunPvP" to player
  571. send " " to player
  572. send " &e&l攻撃側と防衛側に分かれ、チームで戦います。" to player
  573. send " &e&l攻撃側は特定の場所に黒曜石を置き、" to player
  574. send " &e&lそれを壊されないよう守る必要があります。" to player
  575. send " &e&l防衛側は黒曜石を置かれないように防衛しましょう。" to player
  576. send " &e&lもし置かれても、破壊が可能です。" to player
  577. send " " to player
  578. send "&a▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬" to player
  579.  
  580. on chat:
  581. cancel event
  582. if {mutelist::*} contains player:
  583. send "&cあなたはミュートされているため、発言することができません。" to player
  584. stop
  585. else if {spam.%player's UUID%} is "%message%":
  586. send "&6-----------------------------" to player
  587. send "&c&l同じメッセージを送信できません" to player
  588. send "&6-----------------------------" to player
  589. stop
  590. else if {team.%player%} is set:
  591. set {spam.%player's UUID%} to "%message%"
  592. broadcast "&7[Lv%{level.%uuid of player%}%]&r%{prefix.%uuid of player%}%&r%{teamchat.%player%}%%player%%{suffix.%uuid of player%}%&e》&r%message%"
  593. else:
  594. set {spam.%player's UUID%} to "%message%"
  595. broadcast "&7[Lv%{level.%uuid of player%}%]&r%{prefix.%uuid of player%}%&r%player%&r%{suffix.%uuid of player%}%&e》&r%message%"
  596.  
  597. command /chat <text> <offline player> <text>:
  598. permission: skript.admin
  599. usage: /chat <prefix|suffix|mute|unmute> <player> <text>
  600. trigger:
  601. if arg 1 is "prefix":
  602. set {prefix.%uuid of arg 2%} to coloured arg 3
  603. send "&b%arg 2%さんのprefixを「&r%{prefix.%uuid of arg 2%}%&b」に変更しました。"
  604. stop
  605. if arg 1 is "suffix":
  606. set {suffix.%uuid of arg 2%} to coloured arg 3
  607. send "&b%arg 2%さんのsuffixを&r「%{suffix.%uuid of arg 2%}%&b」に変更しました。"
  608. stop
  609. if arg 1 is "mute":
  610. if {mutelist::*} contains arg 2:
  611. send "&c%arg 2%さんはすでにミュートされています。"
  612. stop
  613. send "&e%arg 2%さんが%sender%さんにミュートされました。" to ops
  614. send "&e理由:%coloured arg 3%" to ops
  615. add arg 2 to {mutelist::*}
  616. stop
  617. if arg 1 is "unmute":
  618. if {mutelist::*} contains arg 2:
  619. send "&a%arg 2%さんが%sender%さんにミュート解除されました。" to ops
  620. send "&a理由:%coloured arg 3%" to ops
  621. remove arg 2 from {mutelist::*}
  622. stop
  623. send "&c%arg 2%さんはミュートされていません。"
  624. stop
  625.  
  626. command /mutelist [<offline player>]:
  627. permission: skript.admin
  628. trigger:
  629. if arg 1 is not set:
  630. send "&d次のプレイヤーがミュートされています:"
  631. send "%{mutelist::*}%"
  632. stop
  633. if {mutelist::*} contains arg 1:
  634. send "&d対象のプレイヤーはミュートされています。"
  635. stop
  636. send "&b対象のプレイヤーはミュートされていません。"
  637.  
  638. on click:
  639. if player is holding lime dye named "&cゲームを抜ける":
  640. remove lime dye named "&cゲームを抜ける" from player
  641. set {join.%player%} to false
  642. send "&cゲームを抜けました"
  643. wait 5 ticks
  644. give grey dye named "&eゲームに参加する" to player
  645.  
  646. on click:
  647. if player is holding grey dye named "&eゲームに参加する":
  648. remove grey dye named "&eゲームに参加する" from player
  649. set {join.%player%} to true
  650. send "&eゲームに参加しました" to player
  651. wait 5 ticks
  652. give lime dye named "&cゲームを抜ける" to player
  653.  
  654. on hunger bar change:
  655. set the player's food level to 10
  656.  
  657. on inventory click:
  658. if {game} is true:
  659. if {team.%player%} is set:
  660. if clicked slot is 39:
  661. cancel event
  662.  
  663. command /pd delete [<offline player>]:
  664. permission: skript.admin
  665. trigger:
  666. set {kill.%uuid of arg 1%} to 0
  667. set {death.%uuid of arg 1%} to 0
  668. set {killdeath.%uuid of arg 1%} to 0
  669. set {win.%uuid of arg 1%} to 0
  670. set {lose.%uuid of arg 1%} to 0
  671. set {winlose.%uuid of arg 1%} to 0
  672. set {level.%uuid of arg 1%} to 1
  673. set {xp.%uuid of arg 1%} to 0
  674. set {needxp.%uuid of arg 1%} to 10
  675. set {prefix.%uuid of arg 1%} to ""
  676. set {suffix.%uuid of arg 1%} to ""
  677.  
  678. command /dye:
  679. permission: skript.admin
  680. trigger:
  681. give grey dye named "&eゲームに参加する" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement