Advertisement
taktie0304

Untitled

Jul 18th, 2019
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.04 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.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18. command /start:
  19. trigger:
  20. if {game} is false:
  21. set {gameplayer} to 0
  22. loop all players:
  23. if {join.%loop-player%} is true:
  24. add 1 to {gameplayer}
  25. if {gameplayer} <= 1:
  26. send "&c参加人数が足りませんでした" to player
  27. else:
  28. set {red} to 0
  29. set {blue} to 0
  30. set {count} to 180
  31. set {lobby} to location (0, 10, 0)
  32. set {cmdlobby} to "0 10 0"
  33. set {redspawn} to location (1, 4, 0)
  34. set {bluespawn} to location (-1, 4, 0)
  35. set {obsidian} to true
  36. set {diamondpickaxe} to true
  37. command "/scoreboard teams empty red"
  38. command "/scoreboard teams empty blue"
  39. loop all players:
  40. if {join.%loop-player%} is true:
  41. if {a} == 0:
  42. command "clear %loop-player%"
  43. if {obsidian} is true:
  44. command "/give %loop-player% minecraft:obsidian 1 0 {CanPlaceOn:[""minecraft:gold_block""]}"
  45. set {obsidian} to false
  46. set {team.%loop-player%} to "red"
  47. add 1 to {red}
  48. command "/scoreboard teams join red %loop-player%"
  49. wait 2 ticks
  50. teleport the loop-player to {redspawn}
  51. give bow to loop-player
  52. give 32 arrow to loop-player
  53. equip loop-player with leather helmet
  54. dye loop-player's helmet (255, 51, 0)
  55. delete {join.%loop-player%}
  56. set {a} to 1
  57. else:
  58. command "clear %loop-player%"
  59. if {diamondpickaxe} is true:
  60. command "/give %loop-player% minecraft:diamond_pickaxe 1 0 {ench:[{id:32s,lvl:1s}],CanDestroy:[""minecraft:obsidian""]}"
  61. set {diamondpickaxe} to false
  62. set {team.%loop-player%} to "blue"
  63. add 1 to {blue}
  64. command "/scoreboard teams join blue %loop-player%"
  65. wait 2 ticks
  66. teleport the loop-player to {bluespawn}
  67. give bow to loop-player
  68. give 32 arrow to loop-player
  69. equip loop-player with leather helmet
  70. dye loop-player's helmet (0, 51, 255)
  71. delete {join.%loop-player%}
  72. set {a} to 0
  73. set {game} to true
  74. else:
  75. send "&c現在試合中です" to player
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83. on death of player:
  84. if {game} is true:
  85. set {DeathPoint.%player%} to location of player
  86. force the player to respawn
  87. teleport player to {DeathPoint.%player%}
  88. set the player's gamemode to spectator
  89. remove 1 from {%{team.%victim%}%}
  90. add 1 to {kill.%uuid of attacker%}
  91. add 1 to {death.%uuid of victim%}
  92. add 3 to {xp.%uuid of attacker%}
  93. broadcast "<%{team.%attacker%}%>%attacker% &7--&8|&6)&7--> <%{team.%victim%}%>%victim%"
  94. if {red} is 0:
  95. set {game} to false
  96. loop all players:
  97. if {team.%loop-player%} is "red":
  98. send loop-player title "&9&l敗北" with subtitle "&c味方が全員倒された" for 5 seconds
  99. add 1 to {lose.%uuid of loop-player%}
  100. add 10 to {xp.%uuid of attacker%}
  101. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  102. if {team.%loop-player%} is "blue":
  103. send loop-player title "&6&l勝利" with subtitle "&f敵を全員倒した" for 5 seconds
  104. add 1 to {win.%uuid of loop-player%}
  105. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  106. wait 6 seconds
  107. loop all players:
  108. if {team.%loop-player%} is set:
  109. command "clear %loop-player%"
  110. give grey dye named "&eゲームに参加する" to loop-player
  111. teleport the loop-player to {lobby}
  112. set the loop-player's gamemode to survival
  113. delete {team.%loop-player%}
  114. else if {blue} is 0:
  115. set {game} to false
  116. loop all players:
  117. if {team.%loop-player%} is "red":
  118. send loop-player title "&6&l勝利" with subtitle "&f敵を全員倒した" for 5 seconds
  119. add 1 to {win.%uuid of loop-player%}
  120. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  121. if {team.%loop-player%} is "blue":
  122. send loop-player title "&9&l敗北" with subtitle "&f味方が全員倒された" for 5 seconds
  123. add 1 to {lose.%uuid of loop-player%}
  124. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  125. wait 6 seconds
  126. loop all players:
  127. if {team.%loop-player%} is set:
  128. command "clear %loop-player%"
  129. give grey dye named "&eゲームに参加する" to loop-player
  130. teleport the loop-player to {lobby}
  131. set the loop-player's gamemode to survival
  132. delete {team.%loop-player%}
  133. else:
  134. loop all players:
  135. if {team.%loop-player%} is "red":
  136. send loop-player title " " with subtitle "%{red}% VS %{blue}%" 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 "%{blue}% VS %{red}%" for 3 seconds
  140. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149. on quit:
  150. if {team.%player%} is set:
  151. remove 1 from {%{team.%player%}%}
  152. delete {team.%player%}
  153. command "/scoreboard teams leave %{team.%player%}% %player%"
  154. if {red} is 0:
  155. set {game} to false
  156. loop all players:
  157. if {team.%loop-player%} is "red":
  158. send loop-player title "&9&l敗北" with subtitle "&c味方が全員倒された" for 5 seconds
  159. add 1 to {lose.%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 "&6&l勝利" with subtitle "&f敵を全員倒した" for 5 seconds
  163. add 1 to {win.%uuid of loop-player%}
  164. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  165. wait 6 seconds
  166. loop all players:
  167. if {team.%loop-player%} is set:
  168. command "clear %loop-player%"
  169. give grey dye named "&eゲームに参加する" to loop-player
  170. teleport the loop-player to {lobby}
  171. set the loop-player's gamemode to survival
  172. delete {team.%loop-player%}
  173. else if {blue} is 0:
  174. set {game} to false
  175. loop all players:
  176. if {team.%loop-player%} is "red":
  177. send loop-player title "&6&l勝利" with subtitle "&f敵を全員倒した" for 5 seconds
  178. add 1 to {win.%uuid of loop-player%}
  179. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  180. if {team.%loop-player%} is "blue":
  181. send loop-player title "&9&l敗北" with subtitle "&f味方が全員倒された" for 5 seconds
  182. add 1 to {lose.%uuid of loop-player%}
  183. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  184. wait 6 seconds
  185. loop all players:
  186. if {team.%loop-player%} is set:
  187. command "clear %loop-player%"
  188. give grey dye named "&eゲームに参加する" to loop-player
  189. teleport the loop-player to {lobby}
  190. set the loop-player's gamemode to survival
  191. delete {team.%loop-player%}
  192. else:
  193. loop all players:
  194. if {team.%loop-player%} is "red":
  195. send loop-player title " " with subtitle "%{red}% VS %{blue}%" for 3 seconds
  196. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
  197. if {team.%loop-player%} is "blue":
  198. send loop-player title " " with subtitle "%{blue}% VS %{red}%" for 3 seconds
  199. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.  
  207.  
  208. on place of obsidian:
  209. if {game} is true:
  210. set {count} to 40
  211. loop all players:
  212. if {team.%loop-player%} is "red":
  213. send "&a&l黒曜石が設置された!" to loop-player
  214. send loop-player title " " with subtitle "&a&l黒曜石が設置された!" for 3 seconds
  215. if {team.%loop-player%} is "blue":
  216. send "&c&l黒曜石が設置された!" to loop-player
  217. send loop-player title " " with subtitle "&c&l黒曜石が設置された!" for 3 seconds
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226. on break of obsidian:
  227. if {game} is true:
  228. set {game} to false
  229. loop all players:
  230. if {team.%loop-player%} is "red":
  231. send loop-player title "&9&l敗北" with subtitle "&f黒曜石が破壊された" for 5 seconds
  232. add 1 to {lose.%uuid of loop-player%}
  233. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  234. if {team.%loop-player%} is "blue":
  235. send loop-player title "&6&l勝利" with subtitle "&f黒曜石を破壊した" for 5 seconds
  236. add 1 to {victory.%uuid of loop-player%}
  237. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  238. wait 6 seconds
  239. loop all players:
  240. if {team.%loop-player%} is set:
  241. command "clear %loop-player%"
  242. give grey dye named "&eゲームに参加する" to loop-player
  243. teleport the loop-player to {lobby}
  244. set the loop-player's gamemode to survival
  245. delete {team.%loop-player%}
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254. every a second in "world":
  255. if {game} is true:
  256. remove 1 from {count}
  257. if {count} < 0:
  258. set {game} to false
  259. loop all players:
  260. if {team.%loop-player%} is "red":
  261. send loop-player title "&9&l敗北" with subtitle "&f時間切れ" for 5 seconds
  262. add 1 to {lose.%uuid of loop-player%}
  263. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  264. if {team.%loop-player%} is "blue":
  265. send loop-player title "&6&l勝利" with subtitle "&f時間切れ" for 5 seconds
  266. add 1 to {win.%uuid of loop-player%}
  267. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  268. wait 6 seconds
  269. loop all players:
  270. if {team.%loop-player%} is set:
  271. command "clear %loop-player%"
  272. give grey dye named "&eゲームに参加する" to loop-player
  273. command "/tp %loop-player% %{cmdlobby}%"
  274. set the loop-player's gamemode to survival
  275. delete {team.%loop-player%}
  276. loop all players:
  277. if {team.%loop-player%} is set:
  278. set action bar of loop-player to "&e(残り時間: %{count}%秒)"
  279.  
  280.  
  281.  
  282.  
  283.  
  284.  
  285.  
  286.  
  287.  
  288. command /stats [<offline player>]:
  289. trigger:
  290. if arg 1 is not set:
  291. set {killdeath.%uuid of player%} to {kill.%uuid of player%} / {death.%uuid of player%}
  292. set {winlose.%uuid of player%} to {win.%uuid of player%} / {lose.%uuid of player%}
  293. send "&akill: &e%{kill.%uuid of player%}%" to player
  294. send "&adeath: &e%{death.%uuid of player%}%" to player
  295. send "&aK/D: &e%{killdeath.%uuid of player%}%" to player
  296. send "&awin: &e%{win.%uuid of player%}%" to player
  297. send "&alose: &e%{lose.%uuid of player%}%" to player
  298. send "&aW/L: &e%{winlose.%uuid of player%}%" to player
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307. on click:
  308. if player is holding lime dye named "&cゲームを抜ける":
  309. remove lime dye named "&cゲームを抜ける" from player
  310. set {join.%player%} to false
  311. send "&cゲームを抜けました"
  312. wait 5 ticks
  313. give grey dye named "&eゲームに参加する" to player
  314.  
  315. on click:
  316. if player is holding grey dye named "&eゲームに参加する":
  317. remove grey dye named "&eゲームに参加する" from player
  318. set {join.%player%} to true
  319. send "&eゲームに参加しました" to player
  320. wait 5 ticks
  321. give lime dye named "&cゲームを抜ける" to player
  322.  
  323. command /dye:
  324. trigger:
  325. give grey dye named "&eゲームに参加する" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement