Advertisement
taktie0304

Untitled

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