Advertisement
taktie0304

Untitled

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