Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.15 KB | None | 0 0
  1. options:
  2. mcPrefix: &6MinePeak: &r
  3.  
  4. # permission message: {@mcPrefix} &cYou have to be &6Super &cto use this command sorry :/
  5.  
  6. command /host [<text>]:
  7. trigger:
  8. if arg-1 is not set:
  9. send "{@mcPrefix} &dcurrent events avaliable:"
  10. send "&dSurvive, Parkour"
  11. else if arg-1 is "survive":
  12. if player doesn't have the permission "host.survive":
  13. send "{@mcPrefix} &cYour permission is denied!"
  14. else:
  15. if {host} is true:
  16. send "&cYou can't host an event over another event!"
  17. else if {host} is false:
  18. execute console command "/worldborder set 130 in world ""events"""
  19. set {survivalgame} to true
  20. set {parkourgame} to false
  21. set {westart} to false
  22. set {host} to true
  23. set {eventplayercount} to 0
  24. send "&c&lDO NOT LEAVE, you could be tempbanned or your permission taken off!"
  25. send " " to all players
  26. send "{@mcPrefix} &d&l%player% is hosting survive! Do /join to join the event!" to all players
  27. set {survivalgame} to true
  28. wait 30 seconds
  29. send "{@mcPrefix} &d&l30 seconds left survive is being hosted! Do /join to join the event!" to all players
  30. wait 15 seconds
  31. send "{@mcPrefix} &d&l15 seconds left survive is being hosted! Do /join to join the event!" to all players
  32. wait 10 seconds
  33. send "{@mcPrefix} &d&l5 seconds left survive is being hosted! Do /join to join the event!" to all players
  34. wait 5 seconds
  35. send "{@mcPrefix} &d&lThe event has started!" to all players
  36. set {estart} to true
  37. set {westart} to true
  38. set {eip} to true
  39. else if arg-1 is "parkour":
  40. if player doesn't have the permission "host.parkour":
  41. send "&c&lYou don't have permissions!"
  42. else:
  43. if {host} is true:
  44. send "&cYou can't host an event over another event!"
  45. else if {host} is false:
  46. set {parkourgame} to true
  47. set {survivalgame} to false
  48. set {westart} to false
  49. set {host} to true
  50. set {eventplayercount} to 0
  51. send "&c&lDO NOT LEAVE, you could be tempbanned or your permission taken off!"
  52. send " " to all players
  53. send "{@mcPrefix} &d&l%player% is hosting parkour! Do /join to join the event!" to all players
  54. wait 30 seconds
  55. send "{@mcPrefix} &d&l30 seconds left parkour is being hosted! Do /join to join the event!" to all players
  56. wait 15 seconds
  57. send "{@mcPrefix} &d&l15 seconds left parkour is being hosted! Do /join to join the event!" to all players
  58. wait 10 seconds
  59. send "{@mcPrefix} &d&l5 seconds left parkour is being hosted! Do /join to join the event!" to all players
  60. wait 5 seconds
  61. send "{@mcPrefix} &d&lThe event has started!" to all players
  62. set {westart} to true
  63. set {eip} to true
  64. set {pest} to true
  65. else if arg-1 is "parkour2":
  66. if player doesn't have the permission "host.parkour":
  67. send "&c&lYou don't have permissions!"
  68. else:
  69. if {host} is true:
  70. send "&cYou can't host an event over another event!"
  71. else if {host} is false:
  72. set {parkourgame} to true
  73. set {survivalgame} to false
  74. set {westart} to false
  75. set {host} to true
  76. set {eventplayercount} to 0
  77. send "&c&lDO NOT LEAVE, you could be tempbanned or your permission taken off!"
  78. send " " to all players
  79. send "{@mcPrefix} &a&l%player% is hosting parkour! Do /join to join the event!" to all players
  80. wait 30 seconds
  81. send "{@mcPrefix} &a&l30 seconds left parkour is being hosted! Do /join to join the event!" to all players
  82. wait 15 seconds
  83. send "{@mcPrefix} &a&l15 seconds left parkour is being hosted! Do /join to join the event!" to all players
  84. wait 10 seconds
  85. send "{@mcPrefix} &a&l5 seconds left parkour is being hosted! Do /join to join the event!" to all players
  86. wait 5 seconds
  87. send "{@mcPrefix} &a&lThe event has started!" to all players
  88. set {westart} to true
  89. set {eip} to true
  90. set {pest} to true
  91. else if arg-1 is "skywars":
  92. if player doesn't have the permission "host.skywars":
  93. send "&c&lYou don't have permissions!"
  94. else:
  95. if {host} is true:
  96. send "&cYou can't host an event over another event!"
  97. else if {host} is false:
  98. set {swgame} to true
  99. set {parkourgame} to false
  100. set {survivalgame} to false
  101. set {westart} to false
  102. set {host} to true
  103. set {eventplayercount} to 0
  104. send "&c&lDO NOT LEAVE, you could be tempbanned or your permission taken off!"
  105. send " " to all players
  106. send "{@mcPrefix} &a&l%player% is hosting skywars 4 people only! Do /join to join the event!" to all players
  107. wait 30 seconds
  108. send "{@mcPrefix} &a&l30 seconds left skywars is being hosted 4 people only! Do /join to join the event!" to all players
  109. wait 15 seconds
  110. send "{@mcPrefix} &a&l15 seconds left skywars is being hosted 4 people only! Do /join to join the event!" to all players
  111. wait 10 seconds
  112. send "{@mcPrefix} &a&l5 seconds left skywars is being hosted 4 people only! Do /join to join the event!" to all players
  113. wait 5 seconds
  114. send "{@mcPrefix} &a&lThe event has started!" to all players
  115. set {westart} to true
  116. set {eip} to true
  117. set block at location at -23, 68, -6 in world "sw" to air
  118. set block at location at -45, 68, -8 in world "sw" to air
  119. set block at location at -43, 68, -28 in world "sw" to air
  120. set block at location at -65, 68, -8 in world "sw" to air
  121. loop all players:
  122. if {eplayer::%loop-player%} is true:
  123. make console execute command "/cc take v swop 10000 %loop-player%"
  124. make console execute command "/cc give v skywars 3 %loop-player%"
  125. make console execute command "/cc give v swop 4 %loop-player%"
  126. make console execute command "/ekit swwool %loop-player%"
  127. else if arg-1 is "boss":
  128. if player doesn't have the permission "host.boss":
  129. send "&c&lYou don't have permissions!"
  130. else:
  131. if {host} is true:
  132. send "&cYou can't host an event over another event!"
  133. else if {host} is false:
  134. set {bossbattlegame} to true
  135. set {survivalgame} to false
  136. set {westart} to false
  137. set {host} to true
  138. set {eventplayercount} to 0
  139. send "&c&lDO NOT LEAVE, you could be tempbanned or your permission taken off!"
  140. send " " to all players
  141. send "{@mcPrefix} &a&l%player% is hosting parkour! Do /join to join the event!" to all players
  142. wait 30 seconds
  143. send "{@mcPrefix} &a&l30 seconds left boss battles is being hosted! Do /join to join the event!" to all players
  144. wait 15 seconds
  145. send "{@mcPrefix} &a&l15 seconds left parkour is being hosted! Do /join to join the event!" to all players
  146. wait 10 seconds
  147. send "{@mcPrefix} &a&l5 seconds left parkour is being hosted! Do /join to join the event!" to all players
  148. wait 5 seconds
  149. send "{@mcPrefix} &a&lThe event has started!" to all players
  150. set {westart} to true
  151. set {eip} to true
  152. set {pest} to true
  153. else if arg-1 is "end":
  154. if player doesn't have the permission "host.end":
  155. send "&cNo perms!"
  156. else:
  157. set {eventplayercount} to 1
  158. broadcast "&cThe event was ended :("
  159. set {host} to false
  160. set {eip} to true
  161. else if arg-1 is "fix":
  162. if player doesn't have the permission "host.fix":
  163. send "&cNo perms!"
  164. else:
  165. loop all players:
  166. set {eplayer::%loop-player%} to true
  167. set {eip} to true
  168.  
  169. command /join:
  170. trigger:
  171. if {host} is false:
  172. send "{@mcPrefix} &aThere is no event on :("
  173. else if {host} is true:
  174. if {eip} is true:
  175. send "&cYou can't join now!"
  176. else:
  177. if {survivalgame} is true:
  178. teleport player to location at 205, 4, -222 in world "cave2"
  179. broadcast "{@mcPrefix} &a&l%player% has joined the event!"
  180. add 1 to {eventplayercount}
  181. make console execute command "/tab player %player% tabprefix &c"
  182. make console execute command "/tab player %player% tagprefix &c"
  183. wait 2 tick
  184. make console execute command "/clear %player% **"
  185. remove saturation from the player
  186. make console execute command "/heal %player%"
  187. set {eplayer::%player%} to true
  188. apply potion of swiftness of tier 1 to player for 99999 seconds
  189. make console execute command "/give %player% steak"
  190. else if {parkourgame} is true:
  191. teleport player to location at 605, 19, -222 in world "cave2"
  192. broadcast "{@mcPrefix} &a&l%player% has joined the event!"
  193. wait 2 tick
  194. make console execute command "/clear %player% **"
  195. make console execute command "/tab player %player% tabprefix &c"
  196. make console execute command "/tab player %player% tagprefix &c"
  197. remove saturation from the player
  198. make console execute command "/heal %player%"
  199. set {eplayer::%player%} to true
  200. apply potion of saturation of tier 10 to player for 99999 seconds
  201. else if {swgame} is true:
  202. if {eventplayercount} = 4:
  203. send "&cThe event is full!"
  204. else if {eventplayercount} = 0:
  205. broadcast "{@mcPrefix} &a&l%player% has joined the event!"
  206. add 1 to {eventplayercount}
  207. wait 2 tick
  208. make console execute command "/clear %player% **"
  209. remove saturation from the player
  210. make console execute command "/heal %player%"
  211. make console execute command "/tab player %player% tabprefix &c"
  212. make console execute command "/tab player %player% tagprefix &c"
  213. set {eplayer::%player%} to true
  214. apply potion of saturation of tier 10 to player for 99999 seconds
  215. teleport player to location at -23, 69, -6 in world "sw"
  216. else if {eventplayercount} = 1:
  217. broadcast "{@mcPrefix} &a&l%player% has joined the event!"
  218. add 1 to {eventplayercount}
  219. wait 2 tick
  220. make console execute command "/clear %player% **"
  221. make console execute command "/tab player %player% tabprefix &c"
  222. make console execute command "/tab player %player% tagprefix &c"
  223. remove saturation from the player
  224. make console execute command "/heal %player%"
  225. set {eplayer::%player%} to true
  226. apply potion of saturation of tier 10 to player for 99999 seconds
  227. teleport player to location at -45, 69, 11 in world "sw"
  228. else if {eventplayercount} = 2:
  229. broadcast "{@mcPrefix} &a&l%player% has joined the event!"
  230. add 1 to {eventplayercount}
  231. wait 2 tick
  232. make console execute command "/clear %player% **"
  233. remove saturation from the player
  234. make console execute command "/heal %player%"
  235. make console execute command "/tab player %player% tabprefix &c"
  236. make console execute command "/tab player %player% tagprefix &c"
  237. set {eplayer::%player%} to true
  238. apply potion of saturation of tier 10 to player for 99999 seconds
  239. teleport player to location at -43, 69, -28 in world "sw"
  240. else if {eventplayercount} = 3:
  241. broadcast "{@mcPrefix} &a&l%player% has joined the event!"
  242. add 1 to {eventplayercount}
  243. wait 2 tick
  244. make console execute command "/clear %player% **"
  245. make console execute command "/tab player %player% tabprefix &c"
  246. make console execute command "/tab player %player% tagprefix &c"
  247. remove saturation from the player
  248. make console execute command "/heal %player%"
  249. set {eplayer::%player%} to true
  250. apply potion of saturation of tier 10 to player for 99999 seconds
  251. teleport player to location at -65, 69, -8 in world "sw"
  252.  
  253.  
  254. every tick:
  255. if {pest} is true:
  256. set {pest} to false
  257. loop all players:
  258. if {eplayer::%loop-player%} is true:
  259. teleport loop-player to location at 605, 14, -231 in world "cave2"
  260.  
  261.  
  262. every tick:
  263. if {estart} is true:
  264. set {estart} to false
  265. set {ebspawn} to location at (205, 4, -222) in world "cave2"
  266. spawn a zombie at {ebspawn}
  267. make console execute command "/time set 12am cave2"
  268. apply health boost 20 to the spawned entity for 9999 minutes
  269. apply fire resistance 20 to the spawned entity for 9999 minutes
  270. apply regeneration 100 to the spawned entity for 3 seconds
  271. heal the last spawned zombie by 100
  272. apply strength 2 to the spawned entity for 99999 minutes
  273. set {ezb} to true
  274. set {bossfight} to true
  275. strike lightning at {ebspawn}
  276. strike lightning at {ebspawn}
  277. strike lightning at {ebspawn}
  278. strike lightning at {ebspawn}
  279. strike lightning at {ebspawn}
  280. strike lightning at {ebspawn}
  281. strike lightning at {ebspawn}
  282. strike lightning at {ebspawn}
  283. set helmet of last spawned entity to tnt
  284. set chestplate of last spawned entity to iron chestplate
  285. wait 3 seconds
  286. apply regeneration 1 to the spawned entity for 99999 minutes
  287. apply speed 6 to the spawned entity for 99999 minutes
  288.  
  289. every second:
  290. if {westart} is true:
  291. if {survivalgame} is true:
  292. spawn a zombie at {ebspawn}
  293. apply regeneration 1 to the spawned entity for 99999 minutes
  294. apply speed 6 to the spawned entity for 99999 minutes
  295.  
  296. every 5 seconds:
  297. if {westart} is true:
  298. if {survivalgame} is true:
  299. spawn a skeleton at {ebspawn}
  300. apply regeneration 1 to the spawned entity for 99999 minutes
  301. apply speed 6 to the spawned entity for 99999 minutes
  302.  
  303. every 10 seconds:
  304. if {westart} is true:
  305. spawn a slime at {ebspawn}
  306. apply regeneration 1 to the spawned entity for 99999 minutes
  307. apply speed 6 to the spawned entity for 99999 minutes
  308.  
  309. every 30 seconds:
  310. if {westart} is true:
  311. spawn a blaze at {ebspawn}
  312. apply regeneration 1 to the spawned entity for 99999 minutes
  313. apply speed 6 to the spawned entity for 99999 minutes
  314.  
  315. every 60 seconds:
  316. if {westart} is true:
  317. spawn a wither at {ebspawn}
  318. make execute console command "/worldborder set 20 60 in world "cave2""
  319.  
  320. every tick:
  321. if {host} is true:
  322. if {survivalgame} is true:
  323. if {westart} is true:
  324. if {eventplayercount} = 1:
  325. loop all players:
  326. if {eplayer::%loop-player%} is true:
  327. broadcast "&c%loop-player% won the event!"
  328. make console execute command "/cc give v op 1 %loop-player%"
  329. set {host} to false
  330. set {survivalgame} to false
  331. set {westart} to false
  332. set {eplayer::%loop-player%} to false
  333. make console execute command "/spawn %loop-player%"
  334. make console execute command "/killall mobs cave2"
  335. execute console command "/worldborder set 100000 in world ""cave2"""
  336. set {eip} to false
  337.  
  338.  
  339. on command:
  340. if {eplayer::%player%} is true:
  341. if player doesn't have the permission "host.bypass":
  342. cancel event
  343. send "&cYour in an event you cannot do any commands at this time >:("
  344.  
  345. on death:
  346. if {eplayer::%player%} is true:
  347. set {eplayer::%player%} to false
  348. remove 1 from {eventplayercount}
  349. make console execute command "/tab player %player% remove"
  350.  
  351. command /unglitchevent:
  352. permission: "unglitchevent"
  353. trigger:
  354. loop all players:
  355. set {eplayer::%loop-player%} to false
  356. set {eventplayercount} to 1
  357. set {host} to false
  358. set {westart} to false
  359. set {eip} to false
  360. teleport player to location at 605, 19, -222 in world "cave2"
  361.  
  362. on quit:
  363. if {eplayer::%player%} is true:
  364. set {eplayer::%player%} to false
  365. make console execute command "/kill %player%"
  366.  
  367. on walking on water:
  368. if {eplayer::%player%} is true:
  369. if {parkourgame} is true:
  370. teleport player to location at {checkpoint::%player%}
  371. send "&c&lBad"
  372.  
  373. on walking on diamond block:
  374. if {eplayer::%player%} is true:
  375. if {parkourgame} is true:
  376. set {checkpoint::%player%} to location at player
  377. send "&aCheckpoint!"
  378.  
  379. on walking on gold block:
  380. if {eplayer::%player%} is true:
  381. if {parkourgame} is true:
  382. if {westart} is true:
  383. set {parkourgm} to player
  384. set {epgame} to true
  385.  
  386. every tick:
  387. if {epgame} is true:
  388. if {parkourgame} is true:
  389. if {westart} is true:
  390. if {host} is true:
  391. set {epgame} to false
  392. make console execute command "/cc give v op 1 %{parkourgm}%"
  393. broadcast "&c%{parkourgm}% won the event!"
  394. set {westart} to false
  395. set {parkourgame} to false
  396. set {host} to false
  397. set {eip} to false
  398. loop all players:
  399. if {eplayer::%loop-player%} is true:
  400. make console execute command "/spawn %loop-player%"
  401. set {eplayer::%loop-player%} to false
  402. make console execute command "/tab player %loop-player% remove"
  403.  
  404. every tick:
  405. if {host} is true:
  406. if {swgame} is true:
  407. if {westart} is true:
  408. if {eventplayercount} = 1:
  409. loop all players:
  410. if {eplayer::%loop-player%} is true:
  411. broadcast "&c%loop-player% won the event!"
  412. make console execute command "/cc give v op 1 %loop-player%"
  413. set {host} to false
  414. set {survivalgame} to false
  415. set {westart} to false
  416. set {eplayer::%loop-player%} to false
  417. make console execute command "/spawn %loop-player%"
  418. paste schematic "swevent" at {swskem} with angle 90 and without air true
  419. make console execute command "/killall mobs cave2"
  420. make console execute command "/tab player %loop-player% remove"
  421.  
  422. on death:
  423. if {swgame} is true:
  424. if {eplayer::%player%} is true:
  425. remove 1 from {eventplayercount}
  426. set {eplayer::%player%} to false
  427. make console execute command "/spawn %player%"
  428. loop all players:
  429. send "&3%player% &4has died!" to loop-player
  430. make console execute command "/tab player %player% remove"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement