Advertisement
taktie0304

Untitled

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