Advertisement
taktie0304

Untitled

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