UDON_JP

BuildBattle

Aug 13th, 2019
314
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.33 KB | None | 0 0
  1. command /buildjoin <player>:
  2. aliases: /bj
  3. permission: admin
  4. trigger:
  5. if {player::*} contains arg-1:
  6. send "&c既にゲームに参加しています。"
  7. stop
  8. if size of {player::*} < 12:
  9. add arg-1 to {player::*}
  10. remove all items from arg-1's inventory
  11. execute console command "/menu grab %arg-1% taiki"
  12. teleport arg-1 to location (111, 69, 50) in world "world"
  13. send "&7%arg-1% &eがゲームに参加しました! (&b%amount of {player::*}%&e/&b12&e)!" to {player::*}
  14. if amount of {player::*} is 2:
  15. execute console command "/playsound minecraft:block.dispenser.fail master %{player::*}% ~ ~ ~ 10 2"
  16. send "&e&l[&6&lBuild&e&l] &bあと&a60秒&bでゲームが開始します!" to {player::*}
  17. loop 30 times:
  18. wait 1 seconds
  19. if {player::*} is less than or equal to 1:
  20. send "&cゲームに必要な人数が集まっていないため強制終了しました." to {player::*}
  21. stop
  22. execute console command "/playsound minecraft:block.dispenser.fail master %{player::*}% ~ ~ ~ 10 2"
  23. send "&e&l[&6&lBuild&e&l] &bあと&e30秒&bでゲームが開始します!" to {player::*}
  24. loop 25 times:
  25. wait 1 seconds
  26. if {player::*} is less than or equal to 1:
  27. send "&cゲームに必要な人数が集まっていないため強制終了しました." to {player::*}
  28. stop
  29. execute console command "/playsound minecraft:block.dispenser.fail master %{player::*}% ~ ~ ~ 10 2"
  30. send "&e&l[&6&lBuild&e&l] &bあと&e5秒&bでゲームが開始します!" to {player::*}
  31. wait 1 seconds
  32. if {player::*} is less than or equal to 1:
  33. send "&cゲームに必要な人数が集まっていないため強制終了しました." to {player::*}
  34. stop
  35. execute console command "/playsound minecraft:block.dispenser.fail master %{player::*}% ~ ~ ~ 10 2"
  36. send "&e&l[&6&lBuild&e&l] &bあと&e4秒&bでゲームが開始します!" to {player::*}
  37. wait 1 seconds
  38. if {player::*} is less than or equal to 1:
  39. send "&cゲームに必要な人数が集まっていないため強制終了しました." to {player::*}
  40. stop
  41. execute console command "/playsound minecraft:block.dispenser.fail master %{player::*}% ~ ~ ~ 10 2"
  42. send "&e&l[&6&lBuild&e&l] &bあと&c3秒&bでゲームが開始します!" to {player::*}
  43. wait 1 seconds
  44. if {player::*} is less than or equal to 1:
  45. send "&cゲームに必要な人数が集まっていないため強制終了しました." to {player::*}
  46. stop
  47. execute console command "/playsound minecraft:block.dispenser.fail master %{player::*}% ~ ~ ~ 10 2"
  48. send "&e&l[&6&lBuild&e&l] &bあと&c2秒&bでゲームが開始します!" to {player::*}
  49. wait 1 seconds
  50. if {player::*} is less than or equal to 1:
  51. send "&cゲームに必要な人数が集まっていないため強制終了しました." to {player::*}
  52. stop
  53. execute console command "/playsound minecraft:block.dispenser.fail master %{player::*}% ~ ~ ~ 10 2"
  54. send "&e&l[&6&lBuild&e&l] &bあと&c1秒&bでゲームが開始します!" to {player::*}
  55. wait 1 seconds
  56. if {player::*} is less than or equal to 1:
  57. send "&cゲームに必要な人数が集まっていないため強制終了しました." to {player::*}
  58. stop
  59. loop {player::*}:
  60. teleport loop-value to {buildspawn::%loop-index%}
  61. execute console command "/playsound minecraft:entity.enderdragon.ambient master %{player::*}% ~ ~ ~ 10 1"
  62. send title "&aゲームスタート!" to {player::*}
  63. remove all items from {player::*}'s inventory
  64. set {player::*}'s gamemode to creative
  65. wait 1 seconds
  66. send "&e&l[&6&lBuild&e&l] &bお題を決めています..." to {player::*}
  67. loop 60 times:
  68. wait 1 tick
  69. execute console command "/playsound minecraft:entity.experience_orb.pickup master %{player::*}% ~ ~ ~ 10 2"
  70. set {_odai} to random string out of {odai::*}
  71. wait 1 tick
  72. send "&e&l--*--*--*--*--*--*--*--" to {player::*}
  73. wait 1 tick
  74. send "&a" to {player::*}
  75. send "&b今回のお題:&c&l%{_odai}%" to {player::*}
  76. send "&a" to {player::*}
  77. wait 1 tick
  78. send "&e&l--*--*--*--*--*--*--*--" to {player::*}
  79. execute console command "/playsound minecraft:block.anvil.place master %{playe::*}% ~ ~ ~ 10 1"
  80. set {timer} to 300
  81. loop 60 times:
  82. remove 1 from {timer}
  83. wait 1 seconds
  84. send action bar "&b&l残り時間:&a%{timer}%" to {player::*}
  85. if {player::*} is less than or equal to 1:
  86. send "&cゲームに必要な人数が集まっていないため強制終了しました." to {player::*}
  87. wait 1 tick
  88. loop {player::*}:
  89. remove all items from loop-value's inventory
  90. execute console command "/menu grab %loop-value% lobby"
  91. teleport loop-value to {joinspawn}
  92. delete {player::*}
  93. stop
  94. execute console command "/playsound minecraft:block.chest.close master %{playe::*}% ~ ~ ~ 10 1"
  95. loop 60 times:
  96. remove 1 from {timer}
  97. wait 1 seconds
  98. send action bar "&b&l残り時間:&e%{timer}%" to {player::*}
  99. if {player::*} is less than or equal to 1:
  100. send "&cゲームに必要な人数が集まっていないため強制終了しました." to {player::*}
  101. wait 1 tick
  102. loop {player::*}:
  103. remove all items from loop-value's inventory
  104. execute console command "/menu grab %loop-value% lobby"
  105. teleport loop-value to {joinspawn}
  106. delete {player::*}
  107. stop
  108. execute console command "/playsound minecraft:block.enderchest.close master %{playe::*}% ~ ~ ~ 10 1"
  109. loop 60 times:
  110. remove 1 from {timer}
  111. wait 1 seconds
  112. send action bar "&b&l残り時間:&6%{timer}%" to {player::*}
  113. if {player::*} is less than or equal to 1:
  114. send "&cゲームに必要な人数が集まっていないため強制終了しました." to {player::*}
  115. wait 1 tick
  116. loop {player::*}:
  117. remove all items from loop-value's inventory
  118. execute console command "/menu grab %loop-value% lobby"
  119. teleport loop-value to {joinspawn}
  120. delete {player::*}
  121. stop
  122. execute console command "/playsound minecraft:block.anvil.place master %{playe::*}% ~ ~ ~ 10 2"
  123. loop 60 times:
  124. remove 1 from {timer}
  125. wait 1 seconds
  126. send action bar "&b&l残り時間:&c%{timer}%" to {player::*}
  127. if {player::*} is less than or equal to 1:
  128. send "&cゲームに必要な人数が集まっていないため強制終了しました." to {player::*}
  129. wait 1 tick
  130. loop {player::*}:
  131. remove all items from loop-value's inventory
  132. execute console command "/menu grab %loop-value% lobby"
  133. teleport loop-value to {joinspawn}
  134. delete {player::*}
  135. stop
  136. execute console command "/playsound minecraft:block.anvil.place master %{playe::*}% ~ ~ ~ 10 2"
  137. loop 60 times:
  138. remove 1 from {timer}
  139. wait 1 seconds
  140. send action bar "&b&l残り時間:&4%{timer}%" to {player::*}
  141. if {player::*} is less than or equal to 1:
  142. send "&cゲームに必要な人数が集まっていないため強制終了しました." to {player::*}
  143. wait 1 tick
  144. loop {player::*}:
  145. remove all items from loop-value's inventory
  146. execute console command "/menu grab %loop-value% lobby"
  147. teleport loop-value to {joinspawn}
  148. delete {player::*}
  149. stop
  150. execute console command "/playsound minecraft:item.shield.block master %{player::*}% ~ ~ ~ 10 1"
  151. send title "&a評価" to {player::*}
  152. wait 2 seconds
  153. loop {player::*}:
  154. add loop-value to {_player::*}
  155. loop amount of {player::*} times:
  156. remove {_player} from {_player::*}
  157. set {_player} to random player out of {_player::*}
  158. loop {player::*}
  159. execute console command "/tp %loop-value% %{_player}%"
  160. send title "作成者:%{_player}%" with subtitle "&bお題:&c&l%{_odai}%" to {player::*}
  161. wait 5 seconds
  162. send "&e&l[&6&lBuild&e&l] &bあと&e5秒&bで&6作品6b視聴時間が終わります..." to {player::*}
  163. wait 5 seconds
  164. send "&e&l[&6&lBuild&e&l] &bこの&6作品&bをメニューから評価してください" to {player::*}
  165. wait 1 seconds
  166. loop {player::*}:
  167. execute console command "/pex user %loop-player% add gameplayer"
  168. set {builder} to {_player}
  169. set {_value} to"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZGNiN2ExNWVkYTFjYmU0N2E4ZDVkN2Y3ODBlODliYmMzNWUwYzE3N2ZjYjljNjQ4MGExMWIwMmNjODE2NWMxYyJ9fX0="
  170. set {_skull} to skull from skin with value {_value} signature ""
  171. set data value of {_skull} to 3
  172. give 1 paper named "&b&lVote" to {player::*}
  173. open chest with 3 rows named "&a&l評価&6&lメニュー" to player
  174. format slot 10 of player with {_skull} named "&6&l製作者:&c&l%player%" to be unstealable
  175. format slot 11 of player with red stained hardened clay named "&4&lひどすぎる" to run [make player execute command "/vote 0"]
  176. format slot 12 of player with pink stained hardened clay named "&c&lひどい" to run [make player execute command "/vote 1"]
  177. format slot 13 of player with lime stained hardened clay named "&a&lふつう" to run [make player execute command "/vote 2"]
  178. format slot 14 of player with green stained hardened clay named "&2&lいいね" to run [make player execute command "/vote 3"]
  179. format slot 15 of player with blue stained hardened clay named "&5&lすごくいい" to run [make player execute command "/vote 4"]
  180. format slot 16 of player with yellow stained hardened clay named "&e&lすばらしい" to run [make player execute command "/vote 5"]
  181. wait 5 seconds
  182. send "&a&l評価の&e&l時間が&c&l終了しました。" to {player::*}
  183. wait 1 seconds
  184. send "⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝a⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝" to {player::*}
  185. wait 1 tick
  186. send " &6&lWinner:" to {player::*}" to {player::*}
  187. wait 1 tick
  188. send "⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝a⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝⊝" to {player::*}
  189. wait 1 seconds
  190. delete {player::*}
  191. loop {player::*}:
  192. remove all items from loop-value's inventory
  193. set loop-value's gamemode to survival
  194. execute console command "/menu grab %loop-value% lobby"
  195. teleport loop-value to {joinspawn}
  196. execute consol command "/fill 10 60 -1 -18 83 -29 air"
  197. wait 1 tick
  198. execute consol command "/fill -25 60 -1 -53 83 -29 air"
  199. wait 1 tick
  200. execute consol command "/fill -88 60 -29 -60 83 -1 air"
  201. wait 1 tick
  202. execute consol command "/fill -88 60 -36 -60 83 -64 air"
  203. wait 1 tick
  204. execute consol command "/fill -53 60 -64 -25 83 -36 air"
  205. wait 1 tick
  206. execute consol command "/fill 10 60 -64 -18 83 -36 air"
  207. wait 1 tick
  208. execute consol command "/fill -18 60 -71 10 83 -99 air"
  209. wait 1 tick
  210. execute consol command "/fill -53 83 -99 -25 60 -71 air"
  211. wait 1 tick
  212. execute consol command "/fill -88 60 -99 -60 83 -71 air"
  213. wait 1 tick
  214. execute consol command "/fill -88 60 -134 -60 83 -106 air"
  215. wait 1 tick
  216. execute consol command "/fill -53 60 -106 -25 83 -134 air"
  217. wait 1 tick
  218. execute consol command "/fill 10 60 -134 -18 83 -106 air"
  219. wait 1 tick
  220. command /odaiset <text>:
  221. permission: admin
  222. trigger:
  223. add arg-1 to {odai::*}
  224. command /odailist:
  225. trigger:
  226. send "&a現在設定されているお題: &7%{odai::*}%" to player
  227. command /odaidelete:
  228. permission: adomin
  229. trigger:
  230. delete {odai::*}
  231. send "&c変数「{odai::*}」を削除しました!" to player
  232. command /vote <number>:
  233. permission: gameplayer
  234. trigger:
  235. if sender does not have permission "gameplayer":
  236. send "&cあなたはすでに投票しているか、ゲーム参加者ではありません。" to player
  237. stop
  238. loop all players:
  239. if loop-player is not {builder}:
  240. if arg-1 is 0:
  241. add 0 to {score.%{builder}%}
  242. execute console command "/pex user %player% remove gameplayer"
  243. send "&4&lひどすぎる" to player
  244. if arg-1 is 1:
  245. add 1 to {score.%{builder}%}
  246. execute console command "/pex user %player% remove gameplayer"
  247. send "&c&lひどい" to player
  248. if arg-1 is 2:
  249. add 2 to {score.%{builder}%}
  250. execute console command "/pex user %player% remove gameplayer"
  251. send "&a&lふつう" to player
  252. if arg-1 is 3:
  253. add 3 to {score.%{builder}%}
  254. execute console command "/pex user %player% remove gameplayer"
  255. send "&2&lいいね" to player
  256. if arg-1 is 4:
  257. add 4 to {score.%{builder}%}
  258. execute console command "/pex user %player% remove gameplayer"
  259. send "&5&lすごくいい" to player
  260. if arg-1 is 5:
  261. add 5 to {score.%{builder}%}
  262. execute console command "/pex user %player% remove gameplayer"
  263. send "&e&lすばらしい" to player
  264. else:
  265. send "&cあなたは製作者のため、評価できません。" to player
  266. on right click with paper:
  267. if name of player's tool is "&b&lVote":
  268. set {_value} to"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZGNiN2ExNWVkYTFjYmU0N2E4ZDVkN2Y3ODBlODliYmMzNWUwYzE3N2ZjYjljNjQ4MGExMWIwMmNjODE2NWMxYyJ9fX0="
  269. set {_skull} to skull from skin with value {_value} signature ""
  270. set data value of {_skull} to 3
  271. wait 1 tick
  272. open chest with 3 rows named "&a&l評価&6&lメニュー" to player
  273. format slot 10 of player with {_skull} named "&6&l製作者:&c&l%player%" to be unstealable
  274. format slot 11 of player with red stained hardened clay named "&4&lひどすぎる" to run [make player execute command "/vote 0"]
  275. format slot 12 of player with pink stained hardened clay named "&c&lひどい" to run [make player execute command "/vote 1"]
  276. format slot 13 of player with lime stained hardened clay named "&a&lふつう" to run [make player execute command "/vote 2"]
  277. format slot 14 of player with green stained hardened clay named "&2&lいいね" to run [make player execute command "/vote 3"]
  278. format slot 15 of player with blue stained hardened clay named "&5&lすごくいい" to run [make player execute command "/vote 4"]
  279. format slot 16 of player with yellow stained hardened clay named "&e&lすばらしい" to run [make player execute command "/vote 5"]
Advertisement
Add Comment
Please, Sign In to add comment