Advertisement
taktie0304

Untitled

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