Advertisement
taktie0304

Untitled

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