Advertisement
taktie0304

Untitled

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