Advertisement
taktie0304

Untitled

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