motan1205

DEATHRUN

May 11th, 2019
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.17 KB | None | 0 0
  1. Options:
  2. prefix: &8[&c&lDeathRun&8] &7»
  3.  
  4. command /b:
  5. permission: true
  6. trigger:
  7. if {cb} < 1:
  8. execute command "/setblock 3 4 766 minecraft:stained_hardened_clay 14"
  9. execute command "/fill 4 3 757 14 3 775 air"
  10. wait 2 seconds
  11. execute command "/fill 4 3 757 14 3 775 minecraft:stained_glass 5"
  12. set {cb} to 2
  13. wait 20 seconds
  14. set {cb} to 0
  15. execute command "/setblock 3 4 766 minecraft:stained_hardened_clay 5"
  16.  
  17. command /bcreset:
  18. permission: true
  19. trigger:
  20. set {cb} to 0
  21. set {cb1} to 0
  22. set {cb2} to 0
  23. set {cb3} to 0
  24. set {cb4} to 0
  25. set {cb5} to 0
  26. set {cb6} to 0
  27. set {cb7} to 0
  28. set {cb8} to 0
  29. message "&a&l再起動が完了しました"
  30.  
  31. command /b1:
  32. permission: true
  33. trigger:
  34. if {cb1} < 1:
  35. execute command "/setblock 3 4 796 minecraft:stained_hardened_clay 14"
  36. execute command "/setblock 12 3 790 minecraft:air"
  37. wait 1 tick
  38. execute command "/setblock 9 3 792 minecraft:air"
  39. wait 1 tick
  40. execute command "/setblock 11 3 795 minecraft:air"
  41. wait 1 tick
  42. execute command "/setblock 5 3 799 minecraft:air"
  43. wait 1 tick
  44. execute command "/setblock 11 3 800 minecraft:air"
  45. wait 1 tick
  46. execute command "/setblock 5 3 803 minecraft:air"
  47. wait 4 seconds
  48. execute command "/setblock 12 3 790 minecraft:stained_hardened_clay 5"
  49. wait 1 tick
  50. execute command "/setblock 9 3 792 minecraft:stained_hardened_clay 5"
  51. wait 1 tick
  52. execute command "/setblock 11 3 795 minecraft:stained_hardened_clay 5"
  53. wait 1 tick
  54. execute command "/setblock 5 3 799 minecraft:stained_hardened_clay 5"
  55. wait 1 tick
  56. execute command "/setblock 11 3 800 minecraft:stained_hardened_clay 5"
  57. wait 1 tick
  58. execute command "/setblock 5 3 803 minecraft:stained_hardened_clay 5"
  59. set {cb1} to 2
  60. wait 30 seconds #COOLDOWN
  61. set {cb1} to 0
  62. execute command "/setblock 3 4 796 minecraft:stained_hardened_clay 5"
  63.  
  64. #DEATH
  65. on death:
  66. wait 1 tick
  67. broadcast "{@prefix} &a%player% &7は死にました。"
  68. force respawn player
  69.  
  70. on walking on diamond block:
  71. execute command "/spawnpoint %player%"
  72.  
  73. command /b2:
  74. permission: true
  75. trigger:
  76. if {cb2} < 1:
  77. execute command "/setblock 3 4 880 minecraft:stained_hardened_clay 14"
  78. execute command "/fill 4 3 888 14 3 870 air"
  79. wait 2 seconds
  80. execute command "/fill 4 3 888 14 3 870 minecraft:stained_glass 5"
  81. set {cb2} to 2
  82. wait 20 seconds
  83. set {cb2} to 0
  84. execute command "/setblock 3 4 880 minecraft:stained_hardened_clay 5"
  85.  
  86. command /b3:
  87. permission: true
  88. trigger:
  89. if {cb3} < 1:
  90. execute command "/setblock 21 10 880 minecraft:stained_hardened_clay 14"
  91. execute command "/fill 22 5 880 28 14 880 minecraft:stained_hardened_clay 14"
  92. wait 2 seconds
  93. execute command "/fill 22 5 880 28 14 880 minecraft:air"
  94. set {cb3} to 2
  95. wait 20 seconds
  96. set {cb3} to 0
  97. execute command "/setblock 21 10 880 minecraft:stained_hardened_clay 5"
  98.  
  99. command /b4:
  100. permission: true
  101. trigger:
  102. if {cb4} < 1:
  103. execute command "/setblock 21 10 748 minecraft:stained_hardened_clay 14"
  104. execute command "/fill 22 9 757 28 9 733 minecraft:air"
  105. wait 3 seconds
  106. execute command "/fill 22 9 757 28 9 733 minecraft:stained_glass 5"
  107. set {cb4} to 2
  108. wait 40 seconds
  109. set {cb4} to 0
  110. execute command "/setblock 21 10 748 minecraft:stained_hardened_clay 5"
  111.  
  112. command /b5:
  113. permission: true
  114. trigger:
  115. if {cb5} < 1:
  116. execute command "/setblock 21 10 826 minecraft:stained_hardened_clay 14"
  117. execute command "/fill 24 8 841 25 8 840 minecraft:redstone_block"
  118. wait 1 tick
  119. execute command "/fill 26 9 832 25 9 832 minecraft:redstone_block"
  120. wait 1 tick
  121. execute command "/fill 24 9 827 25 9 826 minecraft:redstone_block"
  122. wait 1 tick
  123. execute command "/fill 26 9 818 27 9 817 minecraft:redstone_block"
  124. wait 1 tick
  125. execute command "/fill 27 9 810 23 9 810 minecraft:redstone_block"
  126. wait 3 seconds
  127. execute command "/fill 24 8 841 25 8 840 minecraft:stained_hardened_clay 5"
  128. wait 1 tick
  129. execute command "/fill 26 9 832 25 9 832 minecraft:stained_hardened_clay 5"
  130. wait 1 tick
  131. execute command "/fill 24 9 827 25 9 826 minecraft:stained_hardened_clay 5"
  132. wait 1 tick
  133. execute command "/fill 26 9 818 27 9 817 minecraft:stained_hardened_clay 5"
  134. wait 1 tick
  135. execute command "/fill 27 9 810 23 9 810 minecraft:stained_hardened_clay 5"
  136. set {cb5} to 2
  137. wait 20 seconds
  138. set {cb5} to 0
  139. execute command "/setblock 21 10 826 minecraft:stained_hardened_clay 5"
  140.  
  141. on walking on packed ice:
  142. execute command "/effect %player% minecraft:speed 1 13 true"
  143.  
  144. on walking on gold block:
  145. if player's gamemode is adventure:
  146. execute command "/fill 28 9 644 22 9 646 coal_block"
  147. set {1i} to "%player%"
  148. set {goal} to 1
  149. broadcast "{@prefix}&b%player%さんが一位でゴール!"
  150. set {addexp.%player%} to 30
  151. add 30 to {EXP.%player%}
  152. add 1 to {WINS.%player%}
  153. execute command "/gamemode 3 %player%"
  154.  
  155. on walking on coal block:
  156. if player's gamemode is adventure:
  157. execute command "/fill 28 9 644 22 9 646 lapis_block"
  158. set {2i} to "%player%"
  159. set {goal} to 2
  160. broadcast "{@prefix}&b%player%さんが二位でゴール!"
  161. set {addexp.%player%} to 20
  162. add 20 to {EXP.%player%}
  163. add 1 to {WINS.%player%}
  164. execute command "/gamemode 3 %player%"
  165.  
  166. on walking on lapis block:
  167. if player's gamemode is adventure:
  168. execute command "/fill 28 9 644 22 9 646 iron_block"
  169. set {3i} to "%player%"
  170. broadcast "{@prefix}&b%player%さんが三位でゴール!"
  171. set {addexp.%player%} to 10
  172. add 10 to {EXP.%player%}
  173. add 1 to {WINS.%player%}
  174. set {endgame} to 40
  175. execute command "/endgame"
  176. execute command "/gamemode 3 %player%"
  177.  
  178. on walking on iron block:
  179. if player's gamemode is adventure:
  180. execute command "/gamemode 3 %player%"
  181. broadcast "{@prefix}&b%player%さんが四位以下でゴール!"
  182. set {addexp.%player%} to 5
  183. add 5 to {EXP.%player%}
  184.  
  185. command /endgame:
  186. permission: true
  187. trigger:
  188. wait 1 seconds
  189. if {endgame} is not set:
  190. set {endgame} to 0
  191. if {endgame} > 0:
  192. add -1 to {endgame}
  193. loop all players:
  194. send action bar from "&a&lゲーム終了まで...&c&l%{endgame}%" to loop-player
  195. execute command "/endgame"
  196. if {endgame} = 0:
  197. broadcast "{@prefix} &aゲームを終了します。次もご参加ください。"
  198. execute command "/playsound minecraft:entity.player.levelup master @a ~ ~ ~ 99 0.5"
  199. execute command "/tp @a -46 5 692"
  200. execute command "/effect @a clear"
  201. set {player} to 0
  202. set {endgame} to -1
  203. execute command "/scoreboard teams empty player"
  204. execute command "/scoreboard teams empty tra"
  205. set {1i} to "&7---"
  206. set {2i} to "&7---"
  207. set {3i} to "&7---"
  208. execute command "/gamemode 2 @a"
  209. execute command "/setblock -10 4 763 minecraft:redstone_block"
  210. loop all players:
  211. set {join.%loop-player%} to 0
  212. set {game} to "WAIT"
  213. wait 1 seconds
  214. execute command "/fill 28 9 644 22 9 646 gold_block"
  215. execute command "/setblock -10 4 763 minecraft:air"
  216.  
  217. command /levelup:
  218. trigger:
  219. if {EXP.%player%} is greater than or equal to {NeedEXP.%player%}:
  220. add 1 to {LEVEL::%player%}
  221. set {NeedEXP.%player%} to {LEVEL::%player%}*50
  222. send "{@prefix} &bレベルが上がりました!"
  223. set {EXP.%player%} to 0
  224. execute console command "/playsound minecraft:entity.player.levelup master %player% ~ ~ ~ 999 0.3"
  225. execute console command "/nte player %player% suffix &8[&6&l%{LEVEL::%player%}%&8]"
  226.  
  227. every 10 seconds:
  228. loop all players:
  229. if {LEVEL::%loop-player%} is not set:
  230. execute console command "/resetlv %loop-player%"
  231. execute console command "/nte player %loop-player% suffix &8[&6&l%{LEVEL::%loop-player%}%&8]"
  232. stop
  233.  
  234. command /resetlv <player>:
  235. permission : true
  236. trigger:
  237. set {LEVEL::%arg-1%} to 1
  238. set {NeedEXP.%arg-1%} to 30
  239. set {EXP.%arg-1%} to 0
  240. stop
  241.  
  242. command /setlv <player> <number>:
  243. permission: admin.setlv
  244. trigger:
  245. set {LEVEL::%arg-1%} to arg-2
  246.  
  247. Every 0.5 seconds:
  248. loop all players:
  249. wipe loop-player's sidebar
  250. set name of sidebar of loop-player to "&e&lDEATHRUN EX"
  251. set score "&7%now%" in sidebar of loop-player to 10
  252. set score "&eゲーム終了まで&8: &6&l%{endgame}%" in sidebar of loop-player to 9
  253. set score "&6" in sidebar of loop-player to 8
  254. set score "&e更新・お知らせ" in sidebar of loop-player to 7
  255. set score "&6&l%{news}%" in sidebar of loop-player to 6
  256. set score "&7" in sidebar of loop-player to 5
  257. set score "&e&l一位&8: &a&l%{1i}%" in sidebar of loop-player to 4
  258. set score "&e&l二位&8: &a&l%{2i}%" in sidebar of loop-player to 3
  259. set score "&e&l三位&8: &a&l%{3i}%" in sidebar of loop-player to 2
  260. set score "PlayerIslands" in sidebar of loop-player to 1
  261.  
  262. command /stats:
  263. trigger:
  264. send "&e&l&m*___*___*___*___*___*___*___*___*___*"
  265. send "&6LEVEL&8: &b&l%{LEVEL::%player%}%"
  266. send "&6EXP&8: &a&l%{EXP.%player%}%&8/&7%{NeedEXP.%player%}%"
  267. send "&6WINS&8: &d&l%{WINS.%player%}%"
  268. send "&e&l&m*___*___*___*___*___*___*___*___*___*"
  269.  
  270. command /news <text>:
  271. permission: news.admin
  272. trigger:
  273. set {news} to arg-1
  274. send "%{news}%"
  275.  
  276. command /startgame:
  277. permission: true
  278. trigger:
  279. wait 1 seconds
  280. if {startgame} is not set:
  281. set {startgame} to 10
  282. if {startgame} > 0:
  283. add -1 to {startgame}
  284. loop all players:
  285. send action bar from "&a&lゲーム開始まで...&e&l%{startgame}%" to loop-player
  286. execute command "/startgame"
  287. if {startgame} = 0:
  288. broadcast "{@prefix} &aゲームを開始します!ご参加ください!"
  289. execute command "/fill 12 8 745 6 4 745 minecraft:stained_glass 1"
  290. set {player} to 0
  291. set {startgame} to -1
  292. wait 4 seconds
  293. execute command "/setblock 2 4 725 minecraft:redstone_block"
  294. set {game} to "GAME"
  295. execute command "/setblock 2 4 725 minecraft:air"
  296. wait 5 seconds
  297. set {start} to 11
  298. execute command "/start"
  299.  
  300. command /setendgame <number>:
  301. permission: true
  302. trigger:
  303. set {endgame} to arg-1
  304.  
  305. command /setstartgame <number>:
  306. permission: true
  307. trigger:
  308. set {startgame} to arg-1
  309. set {start} to arg-1
  310.  
  311. command /start:
  312. permission: true
  313. trigger:
  314. wait 1 seconds
  315. if {start} is not set:
  316. set {start} to 11
  317. if {start} > 0:
  318. add -1 to {start}
  319. loop all players:
  320. send loop-player title "&6&lGame Start in...%{start}%" with subtitle "" for 1 seconds
  321. execute command "/playsound minecraft:ui.button.click master @a ~ ~ ~ 99 0.5"
  322. execute command "/start"
  323. if {start} = 0:
  324. broadcast "{@prefix} &aゲームスタート!"
  325. execute command "/fill 12 8 745 6 4 745 minecraft:air"
  326. set {start} to -1
  327. loop {member::*}:
  328. set slot 0 of loop-value-1's inventory to feather named "&e&lPush"
  329.  
  330. on npc right click:
  331. citizen is named "&a&lゲームに参加します"
  332. if {game} is "WAIT":
  333. if {join.%player%} = 0:
  334. execute command "/playsound minecraft:ui.button.click master %player% ~ ~ ~ 99 1.3"
  335. message "{@prefix} &aゲームに参加しました。"
  336. set {member::%player%} to player
  337. add 1 to {player}
  338. loop all players:
  339. send action bar from "&e&l開始必要人数 &6&l%{player}%&7&l/4" to loop-player
  340. execute command "/scoreboard teams join player %player%"
  341. set {join.%player%} to -1
  342. if {player} > 3:
  343. set {startgame} to 60
  344. execute command "/startgame"
  345. else:
  346. message "{@prefix} &c&lすでに参加しています。"
  347. else:
  348. message "{@prefix} &c&lすでにゲームが開始されています。"
  349.  
  350. every 1 seconds:
  351. loop all players:
  352. if {join.%loop-player%} is not set:
  353. set {join.%loop-player%} to 1
  354. stop
  355.  
  356. on join:
  357. execute command "/gamemode 2 %player%"
  358. teleport player to world's spawn point
  359.  
  360. on walking on redstone block:
  361. if player's gamemode is adventure:
  362. execute command "/kill %player%"
  363.  
  364. command /b6:
  365. permission: true
  366. trigger:
  367. if {cb6} < 1:
  368. execute command "/setblock 21 10 652 minecraft:stained_hardened_clay 14"
  369. execute command "/fill 22 8 651 28 14 651 minecraft:stained_hardened_clay 14"
  370. wait 2 seconds
  371. execute command "/fill 22 8 651 28 14 651 minecraft:air"
  372. set {cb6} to 2
  373. wait 20 seconds
  374. set {cb6} to 0
  375. execute command "/setblock 21 10 652 minecraft:stained_hardened_clay 5"
  376.  
  377. on rightclick holding a feather:
  378. name of held item contains "&e&lPush"
  379. set {_cooldown} to difference between {push.%player%.lastused} and now
  380. wait 1 tick
  381. if {_cooldown} is less than 20 seconds:
  382. play "entity_ghast_shoot" to player at volume 10
  383. message "<pink>%difference between 20 seconds and {_cooldown}% <white>後に使用可能"
  384. wait 20 tick
  385. stop
  386. push the player forwards at speed 6
Add Comment
Please, Sign In to add comment