Advertisement
taktie0304

Untitled

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