Advertisement
taktie0304

Untitled

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