Advertisement
taktie0304

Untitled

Jul 22nd, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 37.53 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. if {game} is true:
  440. remove 1 from {count}
  441. if {count} < 0:
  442. set {game} to false
  443. disable PvP
  444. if {putobsidian} is true:
  445. loop all players:
  446. if {team.%loop-player%} is "red":
  447. send loop-player title "&6&l勝利" with subtitle "&f時間切れ" for 5 seconds
  448. send "&6&l勝利!" to loop-player
  449. send "&a+10xp" to loop-player
  450. add 10 to {xp.%uuid of loop-player%}
  451. add 1 to {win.%uuid of loop-player%}
  452. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  453. if {team.%loop-player%} is "blue":
  454. send loop-player title "&9&l敗北" with subtitle "&f時間切れ" for 5 seconds
  455. send "&9&l敗北..." to loop-player
  456. send "&a+2xp" to loop-player
  457. add 2 to {xp.%uuid of loop-player%}
  458. add 1 to {lose.%uuid of loop-player%}
  459. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  460. wait 6 seconds
  461. loop all players:
  462. if {team.%loop-player%} is set:
  463. close loop-player's inventory
  464. command "clear %loop-player%"
  465. command "kill @e[type=Item]"
  466. give grey dye named "&eゲームに参加する" to loop-player
  467. command "/tp %loop-player% %{cmdlobby}%"
  468. set rf max hp of loop-player to 20
  469. set health of loop-player to max health of loop-player
  470. set the loop-player's gamemode to adventure
  471. 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%}%"
  472. delete {team.%loop-player%}
  473. command "/fill -43 21 -9 -47 21 -5 air"
  474. command "/fill -11 21 37 -7 21 41 air"
  475. else:
  476. send "&a試合が終了しました" to loop-player
  477. else:
  478. loop all players:
  479. if {team.%loop-player%} is "red":
  480. send loop-player title "&9&l敗北" with subtitle "&f時間切れ" for 5 seconds
  481. send "&9&l敗北..." to loop-player
  482. send "&a+2xp" to loop-player
  483. add 2 to {xp.%uuid of loop-player%}
  484. add 1 to {lose.%uuid of loop-player%}
  485. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  486. if {team.%loop-player%} is "blue":
  487. send loop-player title "&6&l勝利" with subtitle "&f時間切れ" for 5 seconds
  488. send "&6&l勝利!" to loop-player
  489. send "&a+10xp" to loop-player
  490. add 10 to {xp.%uuid of loop-player%}
  491. add 1 to {win.%uuid of loop-player%}
  492. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  493. wait 6 seconds
  494. loop all players:
  495. if {team.%loop-player%} is set:
  496. close loop-player's inventory
  497. command "clear %loop-player%"
  498. command "kill @e[type=Item]"
  499. give grey dye named "&eゲームに参加する" to loop-player
  500. command "/tp %loop-player% %{cmdlobby}%"
  501. set rf max hp of loop-player to 20
  502. set health of loop-player to max health of loop-player
  503. set the loop-player's gamemode to adventure
  504. 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%}%"
  505. delete {team.%loop-player%}
  506. command "/fill -43 21 -9 -47 21 -5 air"
  507. command "/fill -11 21 37 -7 21 41 air"
  508. else:
  509. send "&a試合が終了しました" to loop-player
  510. loop all players:
  511. if {team.%loop-player%} is set:
  512. set action bar of loop-player to "&f(残り時間: %{count}%秒)"
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521. command /stats [<offline player>]:
  522. trigger:
  523. if arg 1 is not set:
  524. send "&6-----< &b%player% &6>-----"
  525. set {killdeath.%uuid of player%} to {kill.%uuid of player%} / {death.%uuid of player%}
  526. set {winlose.%uuid of player%} to {win.%uuid of player%} / {lose.%uuid of player%}
  527. send " &alevel: &e%{level.%uuid of player%}%" to player
  528. send " &axp: &e%{xp.%uuid of player%}%&7/%{needxp.%uuid of player%}%" to player
  529. send " "
  530. send " &akill: &e%{kill.%uuid of player%}%" to player
  531. send " &adeath: &e%{death.%uuid of player%}%" to player
  532. send " &aK/D: &e%{killdeath.%uuid of player%}%" to player
  533. send " &awin: &e%{win.%uuid of player%}%" to player
  534. send " &alose: &e%{lose.%uuid of player%}%" to player
  535. send " &aW/L: &e%{winlose.%uuid of player%}%" to player
  536. else:
  537. send "&6-----< &b%arg 1% &6>-----"
  538. set {killdeath.%uuid of arg 1%} to {kill.%uuid of arg 1%} / {death.%uuid of arg 1%}
  539. set {winlose.%uuid of arg 1%} to {win.%uuid of arg 1%} / {lose.%uuid of arg 1%}
  540. send " &alevel: &e%{level.%uuid of arg 1%}%" to player
  541. send " &axp: &e%{xp.%uuid of arg 1%}%&7/%{needxp.%uuid of arg 1%}%" to player
  542. send " "
  543. send " &akill: &e%{kill.%uuid of arg 1%}%" to player
  544. send " &adeath: &e%{death.%uuid of arg 1%}%" to player
  545. send " &aK/D: &e%{killdeath.%uuid of arg 1%}%" to player
  546. send " &awin: &e%{win.%uuid of arg 1%}%" to player
  547. send " &alose: &e%{lose.%uuid of arg 1%}%" to player
  548. send " &aW/L: &e%{winlose.%uuid of arg 1%}%" to player
  549.  
  550. on first join:
  551. set {kill.%uuid of player%} to 0
  552. set {death.%uuid of player%} to 0
  553. set {killdeath.%uuid of player%} to 0
  554. set {win.%uuid of player%} to 0
  555. set {lose.%uuid of player%} to 0
  556. set {winlose.%uuid of player%} to 0
  557. set {level.%uuid of player%} to 1
  558. set {xp.%uuid of player%} to 0
  559. set {needxp.%uuid of player%} to 10
  560. set {prefix.%uuid of player%} to ""
  561. set {suffix.%uuid of player%} to ""
  562.  
  563. on any movement:
  564. if {xp.%uuid of player%} >= {needxp.%uuid of player%}:
  565. set {xp.%uuid of player%} to {xp.%uuid of player%} - {needxp.%uuid of player%}
  566. add 1 to {level.%uuid of player%}
  567. set {needxp.%uuid of player%} to {needxp.%uuid of player%} * 1.5
  568. send "&b&lレベルアップ!! &a現在のレベル&7: &e%{level.%uuid of player%}%"
  569. 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%}%"
  570. set tab header to "&7-- &d&lTeamBowPvP &7--" and footer to "&a現在のレベル&7: &e%{level.%uuid of player%}%" for player
  571.  
  572. on join:
  573. wait 3 ticks
  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. command "/clear %player%"
  577. give grey dye named "&eゲームに参加する" to player
  578. command "/tp %player% %{cmdlobby}%"
  579. set rf max hp of player to 20
  580. set health of player to max health of player
  581. command "/gamemode 2 %player%"
  582. send "&a▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬" to player
  583. send " &f&lTeamBowPvP" to player
  584. send " " to player
  585. send " &e&l攻撃側と防衛側に分かれ、チームで戦います。" to player
  586. send " &e&l攻撃側は特定の場所に黒曜石を置き、" to player
  587. send " &e&lそれを壊されないよう守る必要があります。" to player
  588. send " &e&l防衛側は黒曜石を置かれないように防衛しましょう。" to player
  589. send " &e&lもし置かれても、破壊が可能です。" to player
  590. send " " to player
  591. send "&a▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬" to player
  592.  
  593. on chat:
  594. cancel event
  595. if {mutelist::*} contains player:
  596. send "&cあなたはミュートされているため、発言することができません。" to player
  597. stop
  598. else if {spam.%player's UUID%} is "%message%":
  599. send "&6-----------------------------" to player
  600. send "&c&l同じメッセージを送信できません" to player
  601. send "&6-----------------------------" to player
  602. stop
  603. else if {team.%player%} is set:
  604. set {spam.%player's UUID%} to "%message%"
  605. broadcast "&7[Lv%{level.%uuid of player%}%]&r%{prefix.%uuid of player%}%&r%{teamchat.%player%}%%player%%{suffix.%uuid of player%}%&e》&r%message%"
  606. else:
  607. set {spam.%player's UUID%} to "%message%"
  608. broadcast "&7[Lv%{level.%uuid of player%}%]&r%{prefix.%uuid of player%}%&r%player%&r%{suffix.%uuid of player%}%&e》&r%message%"
  609.  
  610. command /chat <text> <offline player> <text>:
  611. permission: skript.admin
  612. usage: /chat <prefix|suffix|mute|unmute> <player> <text>
  613. trigger:
  614. if arg 1 is "prefix":
  615. set {prefix.%uuid of arg 2%} to coloured arg 3
  616. send "&b%arg 2%さんのprefixを「&r%{prefix.%uuid of arg 2%}%&b」に変更しました。"
  617. stop
  618. if arg 1 is "suffix":
  619. set {suffix.%uuid of arg 2%} to coloured arg 3
  620. send "&b%arg 2%さんのsuffixを&r「%{suffix.%uuid of arg 2%}%&b」に変更しました。"
  621. stop
  622. if arg 1 is "mute":
  623. if {mutelist::*} contains arg 2:
  624. send "&c%arg 2%さんはすでにミュートされています。"
  625. stop
  626. send "&e%arg 2%さんが%sender%さんにミュートされました。" to ops
  627. send "&e理由:%coloured arg 3%" to ops
  628. add arg 2 to {mutelist::*}
  629. stop
  630. if arg 1 is "unmute":
  631. if {mutelist::*} contains arg 2:
  632. send "&a%arg 2%さんが%sender%さんにミュート解除されました。" to ops
  633. send "&a理由:%coloured arg 3%" to ops
  634. remove arg 2 from {mutelist::*}
  635. stop
  636. send "&c%arg 2%さんはミュートされていません。"
  637. stop
  638.  
  639. command /mutelist [<offline player>]:
  640. permission: skript.admin
  641. trigger:
  642. if arg 1 is not set:
  643. send "&d次のプレイヤーがミュートされています:"
  644. send "%{mutelist::*}%"
  645. stop
  646. if {mutelist::*} contains arg 1:
  647. send "&d対象のプレイヤーはミュートされています。"
  648. stop
  649. send "&b対象のプレイヤーはミュートされていません。"
  650.  
  651. on click:
  652. if player is holding lime dye named "&cゲームを抜ける":
  653. remove lime dye named "&cゲームを抜ける" from player
  654. set {join.%player%} to false
  655. send "&cゲームを抜けました"
  656. wait 5 ticks
  657. give grey dye named "&eゲームに参加する" to player
  658.  
  659. on click:
  660. if player is holding grey dye named "&eゲームに参加する":
  661. remove grey dye named "&eゲームに参加する" from player
  662. set {join.%player%} to true
  663. send "&eゲームに参加しました" to player
  664. wait 5 ticks
  665. give lime dye named "&cゲームを抜ける" to player
  666.  
  667. on hunger bar change:
  668. set the player's food level to 10
  669.  
  670. on inventory click:
  671. if {game} is true:
  672. if {team.%player%} is set:
  673. if clicked slot is 39:
  674. cancel event
  675.  
  676. command /pd delete [<offline player>]:
  677. permission: skript.admin
  678. trigger:
  679. set {kill.%uuid of arg 1%} to 0
  680. set {death.%uuid of arg 1%} to 0
  681. set {killdeath.%uuid of arg 1%} to 0
  682. set {win.%uuid of arg 1%} to 0
  683. set {lose.%uuid of arg 1%} to 0
  684. set {winlose.%uuid of arg 1%} to 0
  685. set {level.%uuid of arg 1%} to 1
  686. set {xp.%uuid of arg 1%} to 0
  687. set {needxp.%uuid of arg 1%} to 10
  688. set {prefix.%uuid of arg 1%} to ""
  689. set {suffix.%uuid of arg 1%} to ""
  690.  
  691. command /dye:
  692. permission: skript.admin
  693. trigger:
  694. give grey dye named "&eゲームに参加する" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement