Advertisement
Balerias

Untitled

Aug 18th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 31.60 KB | None | 0 0
  1. #
  2. #
  3. # ChestGames - by Balerias
  4. #
  5. #
  6. options:
  7. p: &6&lChestGames &8▶ &7
  8. world: world
  9. on join:
  10. if {state} is "Lobby":
  11. set join message to "&a» &e%player% &7ist der Runde beigetreten"
  12. else:
  13. set join message to ""
  14. on quit:
  15. if {state} is "Lobby":
  16. set leave message to "&c« &e%player% &7hat die Runde verlassen"
  17. else:
  18. set leave message to ""
  19. on connect:
  20. if {state} is "End":
  21. kick player due to "&cDie Runde ist bereits zuende"
  22. command /state:
  23. trigger:
  24. send "%{state}%"
  25. on load:
  26. make console execute command "/configurate"
  27. command /configurate:
  28. permission: op.op
  29. permission: {@p}&cDazu hast du keine Rechte
  30. trigger:
  31. kick all players due to "{@p}&cDas Spiel startet nun neu .."
  32. loop all dropped items:
  33. delete loop-value
  34. wait 1 tick
  35. loop all entities:
  36. delete loop-entity-1
  37. wait 1 tick
  38. send "{@p}&aDas Spiel wurde configuriert"
  39. clear {chestitems::*}
  40. clear {echestitems::*}
  41. #Rüstung
  42. add 1 298 to {chestitems::*}
  43. add 1 299 to {chestitems::*}
  44. add 1 300 to {chestitems::*}
  45. add 1 301 to {chestitems::*}
  46. add 1 302 to {chestitems::*}
  47. add 1 303 to {chestitems::*}
  48. add 1 304 to {chestitems::*}
  49. add 1 305 to {chestitems::*}
  50. add 1 306 to {chestitems::*}
  51. add 1 307 to {chestitems::*}
  52. add 1 308 to {chestitems::*}
  53. add 1 309 to {chestitems::*}
  54.  
  55. add 1 314 to {chestitems::*}
  56. add 1 315 to {chestitems::*}
  57. add 1 316 to {chestitems::*}
  58. add 1 317 to {chestitems::*}
  59. add 1 267 to {chestitems::*}
  60. add 1 268 to {chestitems::*}
  61. add 1 272 to {chestitems::*}
  62. add 1 283 to {chestitems::*}
  63. add 1 261 to {chestitems::*}
  64. add 1 346 to {chestitems::*}
  65. add 3 262 to {chestitems::*}
  66. add 2 297 to {chestitems::*}
  67. add 3 297 to {chestitems::*}
  68. add 1 424 to {chestitems::*}
  69. add 1 298 to {chestitems::*}
  70. add 1 299 to {chestitems::*}
  71. add 1 300 to {chestitems::*}
  72. add 1 301 to {chestitems::*}
  73. add 1 302 to {chestitems::*}
  74. add 1 303 to {chestitems::*}
  75. add 1 304 to {chestitems::*}
  76. add 1 305 to {chestitems::*}
  77. add 1 306 to {chestitems::*}
  78. add 1 307 to {chestitems::*}
  79. add 1 308 to {chestitems::*}
  80. add 1 309 to {chestitems::*}
  81.  
  82. add 1 314 to {chestitems::*}
  83. add 1 315 to {chestitems::*}
  84. add 1 316 to {chestitems::*}
  85. add 1 317 to {chestitems::*}
  86. add 1 267 to {chestitems::*}
  87. add 1 268 to {chestitems::*}
  88. add 1 272 to {chestitems::*}
  89. add 1 283 to {chestitems::*}
  90. add 1 261 to {chestitems::*}
  91. add 1 346 to {chestitems::*}
  92. add 3 262 to {chestitems::*}
  93. add 2 297 to {chestitems::*}
  94. add 3 297 to {chestitems::*}
  95. add 1 424 to {chestitems::*}
  96. add 1 298 to {chestitems::*}
  97. add 1 299 to {chestitems::*}
  98. add 1 300 to {chestitems::*}
  99. add 1 301 to {chestitems::*}
  100. add 1 302 to {chestitems::*}
  101. add 1 303 to {chestitems::*}
  102. add 1 304 to {chestitems::*}
  103. add 1 305 to {chestitems::*}
  104. add 1 306 to {chestitems::*}
  105. add 1 307 to {chestitems::*}
  106. add 1 308 to {chestitems::*}
  107. add 1 309 to {chestitems::*}
  108.  
  109. add 1 314 to {chestitems::*}
  110. add 1 315 to {chestitems::*}
  111. add 1 316 to {chestitems::*}
  112. add 1 317 to {chestitems::*}
  113. add 1 267 to {chestitems::*}
  114. add 1 268 to {chestitems::*}
  115. add 1 272 to {chestitems::*}
  116. add 1 283 to {chestitems::*}
  117. add 1 261 to {chestitems::*}
  118. add 1 346 to {chestitems::*}
  119. add 3 262 to {chestitems::*}
  120. add 2 297 to {chestitems::*}
  121. add 3 297 to {chestitems::*}
  122. add 1 424 to {chestitems::*}
  123. add 2 424 to {chestitems::*}
  124. add 3 424 to {chestitems::*}
  125. add 1 424 to {chestitems::*}
  126. add 2 424 to {chestitems::*}
  127. add 3 424 to {chestitems::*}
  128. add 1 276 to {chestitems::*}
  129. add 1 310 to {chestitems::*}
  130. add 1 311 to {chestitems::*}
  131. add 1 322 to {chestitems::*}
  132. add 6 357 to {chestitems::*}
  133. add 3 357 to {chestitems::*}
  134. add 1 275 to {chestitems::*}
  135. add 1 275 to {chestitems::*}
  136. add 1 258 to {chestitems::*}
  137. add 1 258 to {chestitems::*}
  138. add 3 320 to {chestitems::*}
  139. add 1 366 to {chestitems::*}
  140. add 1 366 to {chestitems::*}
  141. add 1 366 to {chestitems::*}
  142. add 2 360 to {chestitems::*}
  143. add 2 360 to {chestitems::*}
  144. add 2 360 to {chestitems::*}
  145. add 3 366 to {chestitems::*}
  146. add 1 312 to {chestitems::*}
  147. add 1 313 to {chestitems::*}
  148. add 1 399 named "&c+ 1 Herz" to {chestitems::*}
  149. add 1 399 named "&c+ 2 Herzen" to {chestitems::*}
  150. add 1 399 named "&c+ 1 Herz" to {chestitems::*}
  151. add 1 399 named "&c+ 2 Herzen" to {chestitems::*}
  152. add 1 399 named "&c+ 1 Herz" to {chestitems::*}
  153. add 1 399 named "&c+ 2 Herzen" to {chestitems::*}
  154. add 1 399 named "&c+ 1 Herz" to {chestitems::*}
  155. add 1 399 named "&c+ 2 Herzen" to {chestitems::*}
  156. add 1 399 named "&c+ 1 Herz" to {chestitems::*}
  157. add 1 399 named "&c+ 2 Herzen" to {chestitems::*}
  158. add 1 399 named "&c+ 1 Herz" to {chestitems::*}
  159. add 1 399 named "&c+ 2 Herzen" to {chestitems::*}
  160. add 1 399 named "&c+ 1 Herz" to {chestitems::*}
  161. add 1 399 named "&c+ 2 Herzen" to {chestitems::*}
  162. add 1 399 named "&c+ 1 Herz" to {chestitems::*}
  163. add 1 399 named "&c+ 2 Herzen" to {chestitems::*}
  164. add 1 399 named "&c+ 1 Herz" to {chestitems::*}
  165. add 1 399 named "&c+ 2 Herzen" to {chestitems::*}
  166. add 1 399 named "&c+ 1 Herz" to {chestitems::*}
  167. add 1 399 named "&c+ 2 Herzen" to {chestitems::*}
  168. add 1 399 named "&c+ 1 Herz" to {chestitems::*}
  169. add 1 399 named "&c+ 2 Herzen" to {chestitems::*}
  170. add 1 399 named "&c+ 1 Herz" to {chestitems::*}
  171. add 1 399 named "&c+ 2 Herzen" to {chestitems::*}
  172. #enderchests
  173. add 2 399 named "&c+ 1 Herz" to {echestitems::*}
  174. add 3 399 named "&c+ 1 Herz" to {echestitems::*}
  175. add 4 399 named "&c+ 1 Herz" to {echestitems::*}
  176. add 2 322 to {echestitems::*}
  177. add 1 354 named "&5G&cL&eÜ&6C&bK&2S&aK&9U&dC&eH&cE&4N" to {echestitems::*}
  178. set {countdown} to true
  179. set {state} to "lobby"
  180. set {CountdownStart} to true
  181. set {addspawn} to 0
  182. set {überlebende} to 0
  183. set {nowalk} to 0
  184. set {blockspawn.nowalk} to 0
  185. set {chests} to 0
  186. set {enderchests} to 0
  187. loop {enderachests} times:
  188. add 1 to {enderchests}
  189. set block at {echest.%{enderchests}%} to ender chest
  190. loop {achests} times:
  191. add 1 to {chests}
  192. set block at {chest.%{chests}%} to chest
  193.  
  194. on join:
  195. execute console command "nte player %player% clear"
  196. set max health of player to 10
  197. clear player's inventory
  198. heal player
  199. remove Invisibility from the player
  200. set {überlebenderspieler.%player%} to false
  201. set hunger of player to 30
  202. if {state} is "lobby":
  203. teleport player to {wartelobby}
  204. execute console command "/_startcountdown"
  205. if {state} is "ingame":
  206. set max health of player to 10
  207. execute console command "nte player %player% prefix &8"
  208. execute console command "nte player %player% priority 99"
  209. apply potion of Invisibility of tier 2 to player for 1500 seconds
  210. set {überlebenderspieler.%player%} to false
  211. set hunger of player to 30
  212. heal player
  213. hide player from all players
  214. loop all players:
  215. execute loop-player command "fix_**_players"
  216. on place:
  217. cancel event
  218. on break:
  219. cancel event
  220. on inventory click:
  221. if {state} is not "Ingame":
  222. cancel event
  223. if {überlebenderspieler.%player%} is false:
  224. cancel event
  225. on drop:
  226. if {überlebenderspieler.%player%} is false:
  227. cancel event
  228. if {state} is not "Ingame":
  229. cancel event
  230. on pickup:
  231. if {überlebenderspieler.%player%} is false:
  232. cancel event
  233. if {state} is not "Ingame":
  234. cancel event
  235. on hunger meter change:
  236. if {überlebenderspieler.%player%} is false:
  237. cancel event
  238. if {state} is not "Ingame":
  239. cancel event
  240. on damage:
  241. if {state} is not "Ingame":
  242. cancel event
  243. command /chestgames [<text>] [<text>]:
  244. trigger:
  245. if arg-1 is not set:
  246. send "&6Chestgames &e» &7Commands"
  247. send "&a/chestgames setlobby &7- &fSetzt Wartelobby"
  248. send "&a/chestgames addspawn &7- &fSetzt Gamespawns"
  249. send "&a/chestgames addnowalk &7- &fSetzt NoWalkBlöcke"
  250. send "&a/chestgames setdeathmatch <1-12> &7- &fSpawns für Deathmatch"
  251. if arg-1 is "setdeathmatch":
  252. if arg-2 is "1":
  253. set {deathmatch.1} to location of player
  254. send "{@p}&7Du hast &a##1. &7erfolgreich gesetzt"
  255. if arg-2 is "2":
  256. set {deathmatch.2} to location of player
  257. send "{@p}&7Du hast &a##2. &7erfolgreich gesetzt"
  258. if arg-2 is "3":
  259. set {deathmatch.3} to location of player
  260. send "{@p}&7Du hast &a##3. &7erfolgreich gesetzt"
  261. if arg-2 is "4":
  262. set {deathmatch.4} to location of player
  263. send "{@p}&7Du hast &a##4. &7erfolgreich gesetzt"
  264. if arg-2 is "5":
  265. set {deathmatch.5} to location of player
  266. send "{@p}&7Du hast &a##5. &7erfolgreich gesetzt"
  267. if arg-2 is "6":
  268. set {deathmatch.6} to location of player
  269. send "{@p}&7Du hast &a##6. &7erfolgreich gesetzt"
  270. if arg-2 is "7":
  271. set {deathmatch.7} to location of player
  272. send "{@p}&7Du hast &a##7. &7erfolgreich gesetzt"
  273. if arg-2 is "8":
  274. set {deathmatch.8} to location of player
  275. send "{@p}&7Du hast &a##8. &7erfolgreich gesetzt"
  276. if arg-2 is "9":
  277. set {deathmatch.9} to location of player
  278. send "{@p}&7Du hast &a##9. &7erfolgreich gesetzt"
  279. if arg-2 is "10":
  280. set {deathmatch.10} to location of player
  281. send "{@p}&7Du hast &a##10. &7erfolgreich gesetzt"
  282. if arg-2 is "11":
  283. set {deathmatch.11} to location of player
  284. send "{@p}&7Du hast &a##11. &7erfolgreich gesetzt"
  285. if arg-2 is "12":
  286. set {deathmatch.12} to location of player
  287. send "{@p}&7Du hast &a##12. &7erfolgreich gesetzt"
  288. if arg-1 is "addspawn":
  289. if {addspawn} is bigger than 11:
  290. send "{@p}&cEs können nur bis zu ##12 Spawns gesetzt werden"
  291. else:
  292. add 1 to {addspawn}
  293. set {chestgames.spawn.%{addspawn}%} to location of player
  294. send "{@p}&7Du hast &a##%{addspawn}%. &7erfolgreich gesetzt"
  295. if arg-1 is "setlobby":
  296. set {wartelobby} to location of player
  297. send "{@p}&7Du hast die &aWartelobby &7gesetzt"
  298. if arg-1 is "addnowalk":
  299. if {nowalk} is bigger than 11:
  300. send "{@p}&cEs können nur bis zu ##12 NoWalk gesetzt werden"
  301. else:
  302. add 1 to {nowalk}
  303. send "{@p}&aDu hast setzt nun alle Block-Spawns vom &e%{nowalk}%. &aSpawn"
  304. wait 3 seconds
  305. play "click" to player at volume 100
  306. add 1 to {blockspawn.nowalk}
  307. send "{@p}&7Du hast die &a##%{blockspawn.nowalk}%. &7Block-Location gesetzt"
  308. set {chestgames.nowalk.%{blockspawn.nowalk}%} to location of player
  309. wait 3 seconds
  310. play "click" to player at volume 100
  311. add 1 to {blockspawn.nowalk}
  312. send "{@p}&7Du hast die &a##%{blockspawn.nowalk}%. &7Block-Location gesetzt"
  313. set {chestgames.nowalk.%{blockspawn.nowalk}%} to location of player
  314. wait 3 seconds
  315. play "click" to player at volume 100
  316. add 1 to {blockspawn.nowalk}
  317. send "{@p}&7Du hast die &a##%{blockspawn.nowalk}%. &7Block-Location gesetzt"
  318. set {chestgames.nowalk.%{blockspawn.nowalk}%} to location of player
  319. wait 3 seconds
  320. play "click" to player at volume 100
  321. add 1 to {blockspawn.nowalk}
  322. send "{@p}&7Du hast die &a##%{blockspawn.nowalk}%. &7Block-Location gesetzt"
  323. set {chestgames.nowalk.%{blockspawn.nowalk}%} to location of player
  324. wait 3 seconds
  325. play "click" to player at volume 100
  326. add 1 to {blockspawn.nowalk}
  327. send "{@p}&7Du hast die &a##%{blockspawn.nowalk}%. &7Block-Location gesetzt"
  328. set {chestgames.nowalk.%{blockspawn.nowalk}%} to location of player
  329. wait 3 seconds
  330. play "click" to player at volume 100
  331. add 1 to {blockspawn.nowalk}
  332. send "{@p}&7Du hast die &a##%{blockspawn.nowalk}%. &7Block-Location gesetzt"
  333. set {chestgames.nowalk.%{blockspawn.nowalk}%} to location of player
  334. wait 3 seconds
  335. play "click" to player at volume 100
  336. add 1 to {blockspawn.nowalk}
  337. send "{@p}&7Du hast die &a##%{blockspawn.nowalk}%. &7Block-Location gesetzt"
  338. set {chestgames.nowalk.%{blockspawn.nowalk}%} to location of player
  339. wait 3 seconds
  340. play "click" to player at volume 100
  341. add 1 to {blockspawn.nowalk}
  342. send "{@p}&7Du hast die &a##%{blockspawn.nowalk}%. &7Block-Location gesetzt"
  343. set {chestgames.nowalk.%{blockspawn.nowalk}%} to location of player
  344. wait 3 seconds
  345. add 1 to {blockspawn.nowalk}
  346. send "{@p}&7Du hast die &a##%{blockspawn.nowalk}%. &7Block-Location gesetzt"
  347. set {chestgames.nowalk.%{blockspawn.nowalk}%} to location of player
  348. play sound "NOTE_Pling " to player with volume 100.0 and pitch 15
  349. command /_startcountdown:
  350. trigger:
  351. set {BowDuell.SpielerAllgeimein} to number of players in world "{@world}"
  352. if {BowDuell.SpielerAllgeimein} is bigger than 1:
  353. if {countdown} is true:
  354. set {countdown} to false
  355. wait 0.1 seconds
  356. set {Countdown.BW} to 61
  357. loop 61 times:
  358. if {state} is "lobby":
  359. if {CountdownStart} is true:
  360. set {BowDuell.SpielerAllgeimein} to number of players in world "{@world}"
  361. if {BowDuell.SpielerAllgeimein} is bigger than 1:
  362. wait 1 seconds
  363. remove 1 from {Countdown.BW}
  364. set action bar of all players in world "{@world}" to "&6&lCG &8┃ &eSpielstart in %{Countdown.BW}% Sekunden"
  365. if {Countdown.BW} is 60:
  366. loop all players:
  367. play sound "NOTE_BASS " to loop-player with volume 100.0 and pitch 15
  368. broadcast "{@p}&7&oDie &oRunde &ostartet &oin &e&oeiner &7&oMinute" in "{@world}"
  369. if {Countdown.BW} is 30:
  370. loop all players:
  371. play sound "NOTE_BASS " to loop-player with volume 100.0 and pitch 15
  372. broadcast "{@p}&7&oDie &oRunde &ostartet &oin &e&o%{Countdown.BW}% &7&oSekunden" in "{@world}"
  373. if {Countdown.BW} is 15:
  374. loop all players:
  375. play sound "NOTE_BASS " to loop-player with volume 100.0 and pitch 15
  376. broadcast "{@p}&7&oDie &oRunde &ostartet &oin &e&o%{Countdown.BW}% &7&oSekunden" in "{@world}"
  377. if {Countdown.BW} is 10:
  378. loop all players:
  379. play sound "NOTE_BASS " to loop-player with volume 100.0 and pitch 15
  380. broadcast "{@p}&7&oDie &oRunde &ostartet &oin &e&o%{Countdown.BW}% &7&oSekunden" in "{@world}"
  381. if {Countdown.BW} is 5:
  382. loop all players:
  383. play sound "NOTE_BASS " to loop-player with volume 100.0 and pitch 15
  384. broadcast "{@p}&7&oDie &oRunde &ostartet &oin &e&o%{Countdown.BW}% &7&oSekunden" in "{@world}"
  385. if {Countdown.BW} is 4:
  386. loop all players:
  387. play sound "NOTE_BASS " to loop-player with volume 100.0 and pitch 15
  388. broadcast "{@p}&7&oDie &oRunde &ostartet &oin &e&o%{Countdown.BW}% &7&oSekunden" in "{@world}"
  389. if {Countdown.BW} is 3:
  390. loop all players:
  391. play sound "NOTE_BASS " to loop-player with volume 100.0 and pitch 15
  392. broadcast "{@p}&7&oDie &oRunde &ostartet &oin &e&o%{Countdown.BW}% &7&oSekunden" in "{@world}"
  393. if {Countdown.BW} is 2:
  394. loop all players:
  395. play sound "NOTE_BASS " to loop-player with volume 100.0 and pitch 15
  396. broadcast "{@p}&7&oDie &oRunde &ostartet &oin &e&o%{Countdown.BW}% &7&oSekunden" in "{@world}"
  397. if {Countdown.BW} is 1:
  398. loop all players:
  399. play sound "NOTE_BASS " to loop-player with volume 100.0 and pitch 15
  400. broadcast "{@p}&7&oDie &oRunde &ostartet &oin &e&oeiner &7&oSekunde" in "{@world}"
  401. if {Countdown.BW} is 0:
  402. set {BowDuell.SpielerAllgeimein} to number of players in world "{@world}"
  403. if {BowDuell.SpielerAllgeimein} is bigger than 1:
  404. set {state} to "Ingame"
  405. broadcast "{@p}&e&oAlle &oSpieler &owerden &oTeleportiert .." in "{@world}"
  406. set {_addspawn} to 0
  407. set {blockspawn.nowalk} to 0
  408. loop 200 times:
  409. add 1 to {blockspawn.nowalk}
  410. set block at {chestgames.nowalk.%{blockspawn.nowalk}%} to 95:7
  411. loop all players:
  412. set max health of loop-player to 5
  413. set {health.%loop-player%} to 5
  414. add 1 to {_addspawn}
  415. add 1 to {überlebende}
  416. set {überlebenderspieler.%loop-player%} to true
  417. teleport loop-player to {chestgames.spawn.%{_addspawn}%}
  418. play sound "NOTE_Pling " to all players with volume 100.0 and pitch 15
  419. wait 2 seconds
  420. set {blockspawn.nowalk} to 0
  421. loop all players:
  422. send loop-player title "&45" for 1 seconds
  423. play sound "NOTE_BASS " to all players with volume 100.0 and pitch 15
  424. broadcast "{@p}&7&oDas &oSpiel &ostartet &oin &e&o5 &7&oSekunden"
  425. loop 200 times:
  426. add 1 to {blockspawn.nowalk}
  427. set block at {chestgames.nowalk.%{blockspawn.nowalk}%} to 95:14
  428. wait 1 seconds
  429. set {blockspawn.nowalk} to 0
  430. loop all players:
  431. send loop-player title "&64" for 1 seconds
  432. play sound "NOTE_BASS " to all players with volume 100.0 and pitch 15
  433. broadcast "{@p}&7&oDas &oSpiel &ostartet &oin &e&o4 &7&oSekunden"
  434. loop 200 times:
  435. add 1 to {blockspawn.nowalk}
  436. set block at {chestgames.nowalk.%{blockspawn.nowalk}%} to 95:1
  437. wait 1 seconds
  438. set {blockspawn.nowalk} to 0
  439. loop all players:
  440. send loop-player title "&e3" for 1 seconds
  441. play sound "NOTE_BASS " to all players with volume 100.0 and pitch 15
  442. broadcast "{@p}&7&oDas &oSpiel &ostartet &oin &e&o3 &7&oSekunden"
  443. loop 200 times:
  444. add 1 to {blockspawn.nowalk}
  445. set block at {chestgames.nowalk.%{blockspawn.nowalk}%} to 95:4
  446. wait 1 seconds
  447. set {blockspawn.nowalk} to 0
  448. play sound "NOTE_BASS " to all players with volume 100.0 and pitch 15
  449. loop all players:
  450. send loop-player title "&22" for 1 seconds
  451. broadcast "{@p}&7&oDas &oSpiel &ostartet &oin &e&o2 &7&oSekunden"
  452. loop 200 times:
  453. add 1 to {blockspawn.nowalk}
  454. set block at {chestgames.nowalk.%{blockspawn.nowalk}%} to 95:13
  455. wait 1 seconds
  456. set {blockspawn.nowalk} to 0
  457. play sound "NOTE_BASS " to all players with volume 100.0 and pitch 15
  458. loop all players:
  459. send loop-player title "&a1" for 1 seconds
  460. broadcast "{@p}&7&oDas &oSpiel &ostartet &oin &e&oeiner &7&oSekunde"
  461. loop 200 times:
  462. add 1 to {blockspawn.nowalk}
  463. set block at {chestgames.nowalk.%{blockspawn.nowalk}%} to 95:5
  464. wait 1 seconds
  465. set {blockspawn.nowalk} to 0
  466. play sound "NOTE_Pling " to all players with volume 100.0 and pitch 15
  467. broadcast "{@p}&e&oDas &oSpiel &oist &ogestartet!"
  468. loop all players:
  469. send loop-player title "&aGO!" for 1 seconds
  470. if {überlebenderspieler.%loop-player%} is true:
  471. set hunger of loop-player to 27
  472. loop 200 times:
  473. add 1 to {blockspawn.nowalk}
  474. set block at {chestgames.nowalk.%{blockspawn.nowalk}%} to air
  475. wait 1 seconds
  476. loop all players:
  477. set hunger of loop-player to 27
  478. wait 2 seconds
  479. loop all players:
  480. set hunger of loop-player to 27
  481. wait 2 seconds
  482. loop all players:
  483. set hunger of loop-player to 27
  484. wait 2 seconds
  485. loop all players:
  486. set hunger of loop-player to 27
  487. if {state} is "ingame":
  488. broadcast "{@p}&a&oDas &oDeathmatch &obeginnt &oin &o5 &oMinuten"
  489. play sound "click " to all players with volume 100.0 and pitch 15
  490. loop 30 times:
  491. if {state} is "ingame":
  492. wait 2 seconds
  493. else:
  494. stop
  495. broadcast "{@p}&a&oDas &oDeathmatch &obeginnt &oin &o4 &oMinuten"
  496. play sound "click " to all players with volume 100.0 and pitch 15
  497. loop 30 times:
  498. if {state} is "ingame":
  499. wait 2 seconds
  500. else:
  501. stop
  502. broadcast "{@p}&a&oDas &oDeathmatch &obeginnt &oin &o3 &oMinuten"
  503. play sound "click " to all players with volume 100.0 and pitch 15
  504. loop 30 times:
  505. if {state} is "ingame":
  506. wait 2 seconds
  507. else:
  508. stop
  509. broadcast "{@p}&a&oDas &oDeathmatch &obeginnt &oin &o2 &oMinuten"
  510. play sound "click " to all players with volume 100.0 and pitch 15
  511. loop 30 times:
  512. if {state} is "ingame":
  513. wait 2 seconds
  514. else:
  515. stop
  516. broadcast "{@p}&a&oDas &oDeathmatch &obeginnt &oin &oeiner &oMinute"
  517. play sound "click " to all players with volume 100.0 and pitch 15
  518. loop 25 times:
  519. if {state} is "ingame":
  520. wait 2 seconds
  521. else:
  522. stop
  523. broadcast "{@p}&a&oDas &oDeathmatch &obeginnt &oin &o10 &oSekunden"
  524. play sound "NOTE_BASS " to all players with volume 100.0 and pitch 15
  525. loop 7 times:
  526. if {state} is "ingame":
  527. wait 1 seconds
  528. else:
  529. stop
  530. if {tasdffds} is not set:
  531. if {state} is "ingame":
  532. broadcast "{@p}&a&oDas &oDeathmatch &obeginnt &oin &o3 &oSekunden"
  533. play sound "NOTE_BASS " to all players with volume 100.0 and pitch 15
  534. else:
  535. stop
  536. wait 1 seconds
  537. if {tasdffds} is not set:
  538. if {state} is "ingame":
  539. broadcast "{@p}&a&oDas &oDeathmatch &obeginnt &oin &o2 &oSekunden"
  540. play sound "NOTE_BASS " to all players with volume 100.0 and pitch 15
  541. else:
  542. stop
  543. wait 1 seconds
  544. if {tasdffds} is not set:
  545. if {state} is "ingame":
  546. broadcast "{@p}&a&oDas &oDeathmatch &obeginnt &oin &oeiner &oSekunde"
  547. play sound "NOTE_pling " to all players with volume 100.0 and pitch 15
  548. else:
  549. stop
  550. else:
  551. set {countdown} to true
  552. else:
  553. set {countdown} to true
  554.  
  555. every 1 seconds:
  556. if {state} is "Lobby":
  557. if {countdown} is true:
  558. set action bar of all players to "&cWarten auf weitere Spieler ..."
  559. command /stats [<offline player>]:
  560. trigger:
  561. if arg-1 is not set:
  562. execute player command "stats %player%"
  563. if arg-1 is set:
  564. if arg-1 is online:
  565. loop all players:
  566. set {_KToplistD.%loop-player's uuid%::*} to sorted {killer::*} from highest to lowest with output "@index||@value"
  567. set {nkill::%loop-player%} to {kill::%loop-player's uuid%}
  568. loop {_KToplistD.%loop-player's uuid%::*}:
  569. set {_Cache.KToplist::%loop-player's uuid%::*} to loop-value split at "||"
  570. If "%{_Cache.KToplist::%loop-player's uuid%::1}%" is "%loop-player's uuid%":
  571. set {RKitPvP.Platz::%loop-player's uuid%} to "%loop-index%"
  572. send "&6ChestGames &e» &7Stats von %arg-1%"
  573. send " "
  574. send "{@p}&ePlatz: &e##%{RKitPvP.Platz::%arg-1's uuid%}%"
  575. send "{@p}&eKills: &f%{killer::%arg-1's uuid%}%"
  576. send "{@p}&eTode: &f%{death::%arg-1's uuid%}%"
  577. send "{@p}&eK/D: &f%{killer::%arg-1's uuid%}/{death::%arg-1's uuid%}%"
  578. else:
  579. send "{@p}Dieser Spieler ist nicht online."
  580. on join:
  581. if {death::%player's uuid%} is not set:
  582. set {death::%player's uuid%} to 0
  583. if {killer::%player's uuid%} is not set:
  584. set {killer::%player's uuid%} to 0
  585. on damage:
  586. if {überlebenderspieler.%attacker%} is false:
  587. cancel event
  588. if {überlebenderspieler.%victim%} is false:
  589. cancel event
  590. on death:
  591. if victim is a player:
  592. if {state} is "Ingame":
  593. set death message to ""
  594. if {Angriff.%attacker%.%victim%} is not set:
  595. broadcast "{@p}&c%victim% ist gestorben"
  596. if {Angriff.%attacker%.%victim%} is false:
  597. broadcast "{@p}&c%victim% ist gestorben"
  598. if {Angriff.%attacker%.%victim%} is true:
  599. play "level_up" to attacker at volume 1000
  600. broadcast "{@p}&c%victim% &7wurde von &a%attacker% &7getötet"
  601. if {überlebenderspieler.%victim%} is true:
  602. add 1 to {death::%victim's uuid%}
  603. add 1 to {killer::%attacker's uuid%}
  604. set max health of victim to 10
  605. execute console command "nte player %player% prefix &8"
  606. execute console command "nte player %player% priority 99"
  607. apply potion of Invisibility of tier 2 to victim for 1500 seconds
  608. set {überlebenderspieler.%victim%} to false
  609. set hunger of victim to 30
  610. show mobspawner flames at victim
  611. heal victim
  612. push victim upwards at speed 0.5
  613. push victim behind at speed 2
  614. remove 1 from {überlebende}
  615. hide victim from all players
  616. loop all players:
  617. execute loop-player command "fix_**_players"
  618. if {überlebende} is 1:
  619. loop all players:
  620. if {überlebenderspieler.%loop-player%} is true:
  621. play "level_up" to all players at volume 1000
  622. launch flickering ball firework colored white and red at loop-player's location timed 0
  623. send all players title "&a&a%loop-player% &ehat das" with subtitle "&eSpiel gewonnen" for 3 seconds
  624. set {state} to "End"
  625. broadcast "{@p}&e%loop-player% &ahat das Spiel gewonnen"
  626. wait 2 seconds
  627. play sound "NOTE_BASS " to all players with volume 100.0 and pitch 15
  628. broadcast "{@p}&7&oDer &oServer &ostartet &oin &e&o15 &7&oSekunden &oneu"
  629. wait 12 seconds
  630. play sound "NOTE_BASS " to all players with volume 100.0 and pitch 15
  631. broadcast "{@p}&7&oDer &oServer &ostartet &oin &e&o3 &7&oSekunden &oneu"
  632. wait 1 seconds
  633. play sound "NOTE_BASS " to all players with volume 100.0 and pitch 15
  634. broadcast "{@p}&7&oDer &oServer &ostartet &oin &e&o2 &7&oSekunden &oneu"
  635. wait 1 seconds
  636. play sound "NOTE_BASS " to all players with volume 100.0 and pitch 15
  637. broadcast "{@p}&7&oDer &oServer &ostartet &oin &e&oeiner &7&oSekunde &oneu"
  638. wait 1 seconds
  639. play sound "NOTE_Pling " to all players with volume 100.0 and pitch 15
  640. wait 0.1 seconds
  641. execute console command "configurate"
  642.  
  643. command /fix_**_players:
  644. trigger:
  645. if {überlebenderspieler.%player%} is false:
  646. loop all players:
  647. if {überlebenderspieler.%loop-player%} is false:
  648. set player's flight mode to true
  649. reveal loop-player from player
  650. on right click on chest:
  651. if {überlebenderspieler.%player%} is false:
  652. cancel event
  653. stop
  654. if {state} is not "Ingame":
  655. cancel event
  656. stop
  657. play sound "CHEST_OPEN" to player with volume 100.0 and pitch 15
  658. cancel event
  659. set event-block to air
  660. add 1 to {achests}
  661. add 1 to {chests}
  662. set {chest.%{chests}%} to location of event-block
  663. chance of 100%:
  664. set {random_item_aus_chest} to random element of {chestitems::*}
  665. drop {random_item_aus_chest} at {chest.%{chests}%}
  666. chance of 50%:
  667. set {random_item_aus_chest} to random element of {chestitems::*}
  668. drop {random_item_aus_chest} at {chest.%{chests}%}
  669. chance of 50%:
  670. set {random_item_aus_chest} to random element of {chestitems::*}
  671. drop {random_item_aus_chest} at {chest.%{chests}%}
  672. chance of 50%:
  673. set {random_item_aus_chest} to random element of {chestitems::*}
  674. drop {random_item_aus_chest} at {chest.%{chests}%}
  675. chance of 50%:
  676. set {random_item_aus_chest} to random element of {chestitems::*}
  677. drop {random_item_aus_chest} at {chest.%{chests}%}
  678. on right click on 130:
  679. if {überlebenderspieler.%player%} is false:
  680. cancel event
  681. stop
  682. if {state} is not "Ingame":
  683. cancel event
  684. stop
  685. play sound "FIREWORK_BLAST " to player with volume 100.0 and pitch 15
  686. cancel event
  687. set event-block to air
  688. add 1 to {enderachests}
  689. add 1 to {enderchests}
  690. set {echest.%{enderchests}%} to location of event-block
  691. chance of 100%:
  692. set {random_item_aus_echest} to random element of {echestitems::*}
  693. drop {random_item_aus_echest} at {echest.%{enderchests}%}
  694. chance of 50%:
  695. set {random_item_aus_echest} to random element of {echestitems::*}
  696. drop {random_item_aus_echest} at {echest.%{enderchests}%}
  697. chance of 20%:
  698. set {random_item_aus_echest} to random element of {echestitems::*}
  699. drop {random_item_aus_echest} at {echest.%{enderchests}%}
  700. chance of 20%:
  701. set {random_item_aus_echest} to random element of {echestitems::*}
  702. drop {random_item_aus_echest} at {echest.%{enderchests}%}
  703. chance of 20%:
  704. set {random_item_aus_echest} to random element of {echestitems::*}
  705. drop {random_item_aus_echest} at {echest.%{enderchests}%}
  706. on right click with 399:
  707. if name of player's held item is "&c+ 1 Herz":
  708. apply Regeneration 4 to player for 0.7 seconds
  709. add 1 to {health.%player%}
  710. set max health of player to {health.%player%}
  711. remove 399 named "&c+ 1 Herz" from player's inventory
  712. play sound "LEVEL_UP" to player with volume 100.0 and pitch 15
  713. if name of player's held item is "&c+ 2 Herzen":
  714. apply Regeneration 4 to player for 1.4 seconds
  715. add 2 to {health.%player%}
  716. set max health of player to {health.%player%}
  717. remove 399 named "&c+ 2 Herzen" from player's inventory
  718. play sound "LEVEL_UP" to player with volume 100.0 and pitch 15
  719. on right click with cake:
  720. remove cake from player's inventory
  721. play sound "click" to player with volume 100.0 and pitch 15
  722. chance of 25%:
  723. apply Regeneration 2 to player for 7 seconds
  724. send player title "&aRegeneration" for 1 seconds
  725. stop
  726. chance of 25%:
  727. send player title "&aSpeed" for 1 seconds
  728. apply speed 2 to player for 7 seconds
  729. stop
  730. chance of 25%:
  731. apply Strength 2 to player for 5 seconds
  732. send player title "&aStärke" for 1 seconds
  733. stop
  734. chance of 25%:
  735. send player title "&cLangsamkeit" for 1 seconds
  736. apply slowness 2 to player for 7 seconds
  737. stop
  738. chance of 25%:
  739. send player title "&aSprungkraft" for 1 seconds
  740. apply jump 2 to player for 7 seconds
  741. stop
  742. chance of 25%:
  743. send player title "&cÜbelkeit" for 1 seconds
  744. apply nausea 14 to player for 7 seconds
  745. stop
  746. send player title "&cBlindheit" for 1 seconds
  747. apply blindness 5 to player for 5 seconds
  748.  
  749. on damage:
  750. if attacker is a player:
  751. if attacker is not "%victim%":
  752. loop 53 times:
  753. set {Angreifer.%victim%} to attacker
  754. wait 0.0625 second
  755. set {Angriff.%attacker%.%victim%} to true
  756. set {Angriff.%attacker%.%victim%} to false
  757. clear {Angreifer.%victim%}
  758. stop
  759.  
  760.  
  761.  
  762.  
  763. # QUIT EVENT
  764. on quit:
  765. if {state} is "Ingame":
  766. if {überlebenderspieler.%player%} is true:
  767. broadcast "&c« &e%player% &7hat die Runde verlassen"
  768. add 1 to {death::%player's uuid%}
  769. set {überlebenderspieler.%player} to false
  770. remove 1 from {überlebende}
  771. wait 1 seconds
  772. if {überlebende} is 1:
  773. loop all players:
  774. if {überlebenderspieler.%loop-player%} is true:
  775. play "level_up" to all players at volume 1000
  776. send all players title "&a&a%loop-player% &ehat das" with subtitle "&eSpiel gewonnen" for 3 seconds
  777. launch flickering ball firework colored white and red at loop-player's location timed 0
  778. set {state} to "End"
  779. broadcast "{@p}&e%loop-player% &ahat das Spiel gewonnen"
  780. wait 2 seconds
  781. play sound "NOTE_BASS " to all players with volume 100.0 and pitch 15
  782. broadcast "{@p}&7&oDer &oServer &ostartet &oin &e&o15 &7&oSekunden &oneu"
  783. wait 12 seconds
  784. play sound "NOTE_BASS " to all players with volume 100.0 and pitch 15
  785. broadcast "{@p}&7&oDer &oServer &ostartet &oin &e&o3 &7&oSekunden &oneu"
  786. wait 1 seconds
  787. play sound "NOTE_BASS " to all players with volume 100.0 and pitch 15
  788. broadcast "{@p}&7&oDer &oServer &ostartet &oin &e&o2 &7&oSekunden &oneu"
  789. wait 1 seconds
  790. play sound "NOTE_BASS " to all players with volume 100.0 and pitch 15
  791. broadcast "{@p}&7&oDer &oServer &ostartet &oin &e&oeiner &7&oSekunde &oneu"
  792. wait 1 seconds
  793. play sound "NOTE_Pling " to all players with volume 100.0 and pitch 15
  794. wait 0.1 seconds
  795. execute console command "configurate"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement