Advertisement
Balerias

Untitled

Sep 24th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 54.46 KB | None | 0 0
  1. #
  2. #
  3. # ChestGames - by Balerias
  4. #
  5. #
  6. options:
  7. p: &8┃ &6&lChestGames &8▶ &7
  8. world: Wartelobby
  9. on join:
  10. if {state} is "Lobby":
  11. set join message to "{@p}&7%player% hat das Spiel &abetreten"
  12. else:
  13. set join message to ""
  14. on quit:
  15. if {state} is "Lobby":
  16. set leave message to "{@p}&7%player% hat das Spiel &cverlassen"
  17. else:
  18. set leave message to ""
  19. on connect:
  20. if {state} is "End":
  21. kick player due to "{@p}&cDie Runde ist bereits zuende"
  22.  
  23. on load:
  24. make console execute command "/configurate"
  25. command /configurate:
  26. permission: op.op
  27. permission: {@p}&cDazu hast du keine Rechte
  28. trigger:
  29. kick all players due to "{@p}&cDas Spiel startet nun neu .."
  30. loop all dropped items:
  31. delete loop-value
  32. wait 1 tick
  33. loop all entities:
  34. delete loop-entity-1
  35. wait 1 tick
  36. send "{@p}&aDas Spiel wurde configuriert"
  37. clear {chestitems::*}
  38. clear {echestitems::*}
  39. #Rüstung
  40. set {start} to false
  41. set {startcommand} to true
  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. add 1 354 named "&5G&cL&eÜ&6C&bK&2S&aK&9U&dC&eH&cE&4N" to {chestitems::*}
  173. add 1 354 named "&5G&cL&eÜ&6C&bK&2S&aK&9U&dC&eH&cE&4N" to {chestitems::*}
  174. #enderchests
  175. add 1 306 to {echestitems::*}
  176. add 1 307 to {echestitems::*}
  177. add 1 308 to {echestitems::*}
  178. add 1 309 to {echestitems::*}
  179. add 1 310 to {echestitems::*}
  180. add 1 311 to {echestitems::*}
  181. add 1 312 to {echestitems::*}
  182. add 1 313 to {echestitems::*}
  183.  
  184. set {countdown} to true
  185. set {state} to "lobby"
  186. set {CountdownStart} to true
  187. set {addspawn} to 0
  188. set {überlebende} to 0
  189. set {nowalk} to 0
  190. set {blockspawn.nowalk} to 0
  191. set {chests} to 0
  192. set {enderchests} to 0
  193. set {enderkistenlisteneu} to 0
  194. loop 10 times:
  195. add 1 to {enderchests}
  196. set block at {echest.%{enderchests}%} to air
  197. set {enderchests} to 0
  198. chance of 25%:
  199. add 1 to {enderkistenlisteneu}
  200. set block at {echest.1} to ender chest
  201. chance of 25%:
  202. add 1 to {enderkistenlisteneu}
  203. set block at {echest.2} to ender chest
  204. chance of 25%:
  205. add 1 to {enderkistenlisteneu}
  206. set block at {echest.3} to ender chest
  207. chance of 25%:
  208. add 1 to {enderkistenlisteneu}
  209. set block at {echest.4} to ender chest
  210. chance of 25%:
  211. add 1 to {enderkistenlisteneu}
  212. set block at {echest.5} to ender chest
  213. chance of 25%:
  214. add 1 to {enderkistenlisteneu}
  215. set block at {echest.6} to ender chest
  216. chance of 25%:
  217. add 1 to {enderkistenlisteneu}
  218. set block at {echest.7} to ender chest
  219. chance of 25%:
  220. add 1 to {enderkistenlisteneu}
  221. set block at {echest.8} to ender chest
  222. chance of 25%:
  223. add 1 to {enderkistenlisteneu}
  224. set block at {echest.9} to ender chest
  225. chance of 25%:
  226. add 1 to {enderkistenlisteneu}
  227. set block at {echest.10} to ender chest
  228.  
  229.  
  230. loop {achests} times:
  231. add 1 to {chests}
  232. set block at {chest.%{chests}%} to chest
  233. execute console command "stopa"
  234.  
  235. on right click with 341:
  236. kick player due to "{@p}&cDu hast das Spiel verlassen!"
  237. on join:
  238. execute console command "nte player %player% clear"
  239. set max health of player to 10
  240. set {kills.permatch.%player%} to 0
  241. clear player's inventory
  242. heal player
  243. remove Invisibility from the player
  244. set {überlebenderspieler.%player%} to false
  245. set hunger of player to 30
  246. set slot 8 of player to 341 named "&cVerlassen"
  247. teleport player to {bugteleport}
  248. wait 4 ticks
  249. if {state} is "lobby":
  250. teleport player to {wartelobby}
  251. set {players.online} to number of all players
  252. loop all players:
  253. wipe loop-player's sidebar
  254. set name of sidebar of loop-player to "&8» &6&lChestGames &8«"
  255. set score "&d" in sidebar of loop-player to 10
  256. set score "&7Map" in sidebar of loop-player to 9
  257. set score "&8● &9Nuketown" in sidebar of loop-player to 8
  258. set score "&c" in sidebar of loop-player to 7
  259. set score "&7Online" in sidebar of loop-player to 6
  260. set score "&8● &a%{players.online}% Spieler" in sidebar of loop-player to 5
  261. set score "&9" in sidebar of loop-player to 4
  262. set score "&7Teamspeak" in sidebar of loop-player to 3
  263. set score "&8● &eNetplays&8.&ede" in sidebar of loop-player to 2
  264. set score "&7&m--------------" in sidebar of loop-player to 1
  265.  
  266. execute console command "/_startcountdown"
  267. wait 0.5 seconds
  268. if {countdown} is true:
  269. send "{@p}&7Es fehlen noch &c%{start.ab.Spieler}-{BowDuell.SpielerAllgeimein}% &7Spieler bis zum Spielstart&8."
  270. if {state} is "ingame":
  271. teleport player to {deathmatch.spec.ingame}
  272. set max health of player to 10
  273. execute console command "nte player %player% prefix &7"
  274. execute console command "nte player %player% priority 99"
  275. apply potion of Invisibility of tier 2 to player for 1500 seconds
  276. set {überlebenderspieler.%player%} to false
  277. set hunger of player to 30
  278. heal player
  279. hide player from all players
  280. loop all players:
  281. execute loop-player command "fix_**_players"
  282. on place:
  283. cancel event
  284. on break:
  285. cancel event
  286. on inventory click:
  287. if {state} is not "Ingame":
  288. cancel event
  289. if {überlebenderspieler.%player%} is false:
  290. cancel event
  291. on drop:
  292. if {überlebenderspieler.%player%} is false:
  293. cancel event
  294. if {state} is not "Ingame":
  295. cancel event
  296. on pickup:
  297. if {überlebenderspieler.%player%} is false:
  298. cancel event
  299. if {state} is not "Ingame":
  300. cancel event
  301. on hunger meter change:
  302. if {überlebenderspieler.%player%} is false:
  303. cancel event
  304. if {state} is not "Ingame":
  305. cancel event
  306. on damage:
  307. if {state} is not "Ingame":
  308. cancel event
  309. command /chestgames [<text>] [<text>]:
  310. trigger:
  311. if arg-1 is not set:
  312. send "&6Chestgames &e» &7Commands"
  313. send "&a/chestgames setlobby &7- &fSetzt Wartelobby"
  314. send "&a/chestgames bugteleport &7- &fSetzt Bugspawn"
  315. send "&a/chestgames addspawn &7- &fSetzt Gamespawns"
  316. send "&a/chestgames addnowalk &7- &fSetzt NoWalkBlöcke"
  317. send "&a/chestgames setdeathmatch <1-12> &7- &fSpawns für Deathmatch"
  318. send "&a/chestgames setspec <ingame, deathmatch> &7- &fSpecs für Deathmatch"
  319. send "&a/chestgames setenderchest <1-10> &7- &fSetzt Enderkisten"
  320. if arg-1 is "bugteleport":
  321. set {bugteleport} to location of player
  322. send "{@p}&7Du hast &aBugTeleport &7erfolgreich gesetzt"
  323. if arg-1 is "setenderchest":
  324. if arg-2 is "1":
  325. set {echest.1} to location of player
  326. set block at {echest.1} to ender chest
  327. send "{@p}&7Du hast Enderkiste &a%arg-2% &7erfolgreich gesetzt"
  328. if arg-2 is "2":
  329. send "{@p}&7Du hast Enderkiste &a%arg-2% &7erfolgreich gesetzt"
  330. set {echest.2} to location of player
  331. set block at {echest.2} to ender chest
  332. if arg-2 is "3":
  333. send "{@p}&7Du hast Enderkiste &a%arg-2% &7erfolgreich gesetzt"
  334. set {echest.3} to location of player
  335. set block at {echest.3} to ender chest
  336. if arg-2 is "4":
  337. send "{@p}&7Du hast Enderkiste &a%arg-2% &7erfolgreich gesetzt"
  338. set {echest.4} to location of player
  339. set block at {echest.4} to ender chest
  340. if arg-2 is "5":
  341. send "{@p}&7Du hast Enderkiste &a%arg-2% &7erfolgreich gesetzt"
  342. set {echest.5} to location of player
  343. set block at {echest.5} to ender chest
  344. if arg-2 is "6":
  345. send "{@p}&7Du hast Enderkiste &a%arg-2% &7erfolgreich gesetzt"
  346. set {echest.6} to location of player
  347. set block at {echest.6} to ender chest
  348. if arg-2 is "7":
  349. send "{@p}&7Du hast Enderkiste &a%arg-2% &7erfolgreich gesetzt"
  350. set {echest.7} to location of player
  351. set block at {echest.7} to ender chest
  352. if arg-2 is "8":
  353. send "{@p}&7Du hast Enderkiste &a%arg-2% &7erfolgreich gesetzt"
  354. set {echest.8} to location of player
  355. set block at {echest.8} to ender chest
  356. if arg-2 is "9":
  357. send "{@p}&7Du hast Enderkiste &a%arg-2% &7erfolgreich gesetzt"
  358. set {echest.9} to location of player
  359. set block at {echest.9} to ender chest
  360. if arg-2 is "10":
  361. send "{@p}&7Du hast Enderkiste &a%arg-2% &7erfolgreich gesetzt"
  362. set {echest.10} to location of player
  363. set block at {echest.10} to ender chest
  364. if arg-1 is "setspec":
  365. if arg-2 is "ingame":
  366. set {deathmatch.spec.ingame} to location of player
  367. send "{@p}&7Du hast den &aSpec &7erfolgreich gesetzt"
  368. if arg-2 is "deathmatch":
  369. set {deathmatch.spec.deathmatch} to location of player
  370. send "{@p}&7Du hast den &aSpec &7erfolgreich gesetzt"
  371. if arg-1 is "setdeathmatch":
  372. if arg-2 is "1":
  373. set {deathmatch.1} to location of player
  374. send "{@p}&7Du hast &a##1. &7erfolgreich gesetzt"
  375. if arg-2 is "2":
  376. set {deathmatch.2} to location of player
  377. send "{@p}&7Du hast &a##2. &7erfolgreich gesetzt"
  378. if arg-2 is "3":
  379. set {deathmatch.3} to location of player
  380. send "{@p}&7Du hast &a##3. &7erfolgreich gesetzt"
  381. if arg-2 is "4":
  382. set {deathmatch.4} to location of player
  383. send "{@p}&7Du hast &a##4. &7erfolgreich gesetzt"
  384. if arg-2 is "5":
  385. set {deathmatch.5} to location of player
  386. send "{@p}&7Du hast &a##5. &7erfolgreich gesetzt"
  387. if arg-2 is "6":
  388. set {deathmatch.6} to location of player
  389. send "{@p}&7Du hast &a##6. &7erfolgreich gesetzt"
  390. if arg-2 is "7":
  391. set {deathmatch.7} to location of player
  392. send "{@p}&7Du hast &a##7. &7erfolgreich gesetzt"
  393. if arg-2 is "8":
  394. set {deathmatch.8} to location of player
  395. send "{@p}&7Du hast &a##8. &7erfolgreich gesetzt"
  396. if arg-2 is "9":
  397. set {deathmatch.9} to location of player
  398. send "{@p}&7Du hast &a##9. &7erfolgreich gesetzt"
  399. if arg-2 is "10":
  400. set {deathmatch.10} to location of player
  401. send "{@p}&7Du hast &a##10. &7erfolgreich gesetzt"
  402. if arg-2 is "11":
  403. set {deathmatch.11} to location of player
  404. send "{@p}&7Du hast &a##11. &7erfolgreich gesetzt"
  405. if arg-2 is "12":
  406. set {deathmatch.12} to location of player
  407. send "{@p}&7Du hast &a##12. &7erfolgreich gesetzt"
  408. if arg-1 is "addspawn":
  409. if {addspawn} is bigger than 11:
  410. send "{@p}&cEs können nur bis zu ##12 Spawns gesetzt werden"
  411. else:
  412. add 1 to {addspawn}
  413. set {chestgames.spawn.%{addspawn}%} to location of player
  414. send "{@p}&7Du hast &a##%{addspawn}%. &7erfolgreich gesetzt"
  415. if arg-1 is "setlobby":
  416. set {wartelobby} to location of player
  417. send "{@p}&7Du hast die &aWartelobby &7gesetzt"
  418. if arg-1 is "addnowalk":
  419. if {nowalk} is bigger than 11:
  420. send "{@p}&cEs können nur bis zu ##12 NoWalk gesetzt werden"
  421. else:
  422. add 1 to {nowalk}
  423. send "{@p}&aDu hast setzt nun alle Block-Spawns vom &e%{nowalk}%. &aSpawn"
  424. wait 3 seconds
  425. play "click" to player at volume 100
  426. add 1 to {blockspawn.nowalk}
  427. send "{@p}&7Du hast die &a##%{blockspawn.nowalk}%. &7Block-Location gesetzt"
  428. set {chestgames.nowalk.%{blockspawn.nowalk}%} to location of player
  429. wait 3 seconds
  430. play "click" to player at volume 100
  431. add 1 to {blockspawn.nowalk}
  432. send "{@p}&7Du hast die &a##%{blockspawn.nowalk}%. &7Block-Location gesetzt"
  433. set {chestgames.nowalk.%{blockspawn.nowalk}%} to location of player
  434. wait 3 seconds
  435. play "click" to player at volume 100
  436. add 1 to {blockspawn.nowalk}
  437. send "{@p}&7Du hast die &a##%{blockspawn.nowalk}%. &7Block-Location gesetzt"
  438. set {chestgames.nowalk.%{blockspawn.nowalk}%} to location of player
  439. wait 3 seconds
  440. play "click" to player at volume 100
  441. add 1 to {blockspawn.nowalk}
  442. send "{@p}&7Du hast die &a##%{blockspawn.nowalk}%. &7Block-Location gesetzt"
  443. set {chestgames.nowalk.%{blockspawn.nowalk}%} to location of player
  444. wait 3 seconds
  445. play "click" to player at volume 100
  446. add 1 to {blockspawn.nowalk}
  447. send "{@p}&7Du hast die &a##%{blockspawn.nowalk}%. &7Block-Location gesetzt"
  448. set {chestgames.nowalk.%{blockspawn.nowalk}%} to location of player
  449. wait 3 seconds
  450. play "click" to player at volume 100
  451. add 1 to {blockspawn.nowalk}
  452. send "{@p}&7Du hast die &a##%{blockspawn.nowalk}%. &7Block-Location gesetzt"
  453. set {chestgames.nowalk.%{blockspawn.nowalk}%} to location of player
  454. wait 3 seconds
  455. play "click" to player at volume 100
  456. add 1 to {blockspawn.nowalk}
  457. send "{@p}&7Du hast die &a##%{blockspawn.nowalk}%. &7Block-Location gesetzt"
  458. set {chestgames.nowalk.%{blockspawn.nowalk}%} to location of player
  459. wait 3 seconds
  460. play "click" to player at volume 100
  461. add 1 to {blockspawn.nowalk}
  462. send "{@p}&7Du hast die &a##%{blockspawn.nowalk}%. &7Block-Location gesetzt"
  463. set {chestgames.nowalk.%{blockspawn.nowalk}%} to location of player
  464. wait 3 seconds
  465. add 1 to {blockspawn.nowalk}
  466. send "{@p}&7Du hast die &a##%{blockspawn.nowalk}%. &7Block-Location gesetzt"
  467. set {chestgames.nowalk.%{blockspawn.nowalk}%} to location of player
  468. play sound "NOTE_Pling " to player with volume 100.0 and pitch 15
  469. command /start:
  470. permission: nick.use
  471. permission message: {@p}&cDazu hast du keine Rechte
  472. trigger:
  473. set {start.ab.Spieler} to 4
  474. set {BowDuell.SpielerAllgeimein} to number of players in world "{@world}"
  475. if {BowDuell.SpielerAllgeimein} is bigger than 1:
  476. if {Countdown.BW} is bigger than 5:
  477. set {start} to true
  478. if {startcommand} is true:
  479. set {startcommand} to false
  480. set {countdown} to false
  481. wait 0.1 seconds
  482. set {Countdown1.BW} to 6
  483. send "{@p}&7Du hast das &fSpiel &7gestartet&8."
  484. loop 6 times:
  485. if {state} is "lobby":
  486. if {startcommand} is false:
  487. set {BowDuell.SpielerAllgeimein} to number of players in world "{@world}"
  488. if {BowDuell.SpielerAllgeimein} is bigger than 1:
  489. wait 1 seconds
  490. remove 1 from {Countdown1.BW}
  491. if {start} is true:
  492. if {Countdown1.BW} is 5:
  493. loop all players:
  494. play "click" to loop-player with volume 100.0 and pitch 5
  495. broadcast "{@p}&7Die Runde startet in &f%{Countdown1.BW}% &7Sekunden&8." in "{@world}"
  496. if {Countdown1.BW} is 4:
  497. loop all players:
  498. play "click" to loop-player with volume 100.0 and pitch 5
  499. broadcast "{@p}&7Die Runde startet in &f%{Countdown1.BW}% &7Sekunden&8." in "{@world}"
  500. if {Countdown1.BW} is 3:
  501. loop all players:
  502. play "click" to loop-player with volume 100.0 and pitch 5
  503. broadcast "{@p}&7Die Runde startet in &f%{Countdown1.BW}% &7Sekunden&8." in "{@world}"
  504. if {Countdown1.BW} is 2:
  505. loop all players:
  506. play "click" to loop-player with volume 100.0 and pitch 5
  507. broadcast "{@p}&7Die Runde startet in &f%{Countdown1.BW}% &7Sekunden&8." in "{@world}"
  508. if {Countdown1.BW} is 1:
  509. loop all players:
  510. play "click" to loop-player with volume 100.0 and pitch 5
  511. broadcast "{@p}&7Die Runde startet in &f%{Countdown1.BW}% &7Sekunde&8." in "{@world}"
  512. if {Countdown1.BW} is 0:
  513. set {BowDuell.SpielerAllgeimein} to number of players in world "{@world}"
  514. if {BowDuell.SpielerAllgeimein} is bigger than 1:
  515. set {state} to "Ingame"
  516. execute console command "switchstate"
  517. broadcast "{@p}&7Alle Spieler werden in die &fArena &7teleportiert&8." in "{@world}"
  518. set {_addspawn} to 0
  519. set {blockspawn.nowalk} to 0
  520. loop 200 times:
  521. add 1 to {blockspawn.nowalk}
  522. set block at {chestgames.nowalk.%{blockspawn.nowalk}%} to 95:7
  523. loop all players:
  524. add 1 to {_addspawn}
  525. teleport loop-player to {chestgames.spawn.%{_addspawn}%}
  526. play sound "enderman_teleport" to loop-players with volume 100.0 and pitch 15
  527. clear loop-player's inventory
  528. set max health of loop-player to 5
  529. set {health.%loop-player%} to 5
  530. add 1 to {_addspawn}
  531. add 1 to {überlebende}
  532. set {überlebenderspieler.%loop-player%} to true
  533. wait 1 seconds
  534. loop all players:
  535. execute console command "stats addplayedgames %loop-player%"
  536. give loop-player 1 271 named "&6Holzaxt"
  537. give loop-player 5 297 named "&6Brot"
  538. loop all players:
  539. wipe loop-player's sidebar
  540. set name of sidebar of loop-player to "&8» &6&lChestGames &8«"
  541. set score "&9" in sidebar of loop-player to 10
  542. set score "&7Karte" in sidebar of loop-player to 9
  543. set score "&8● &9Nuketown" in sidebar of loop-player to 8
  544. set score "&b" in sidebar of loop-player to 7
  545. set score "&7Spieler" in sidebar of loop-player to 6
  546. set score "&8● &a%{überlebende}%" in sidebar of loop-player to 5
  547. set score "&d" in sidebar of loop-player to 4
  548. set score "&7Kills" in sidebar of loop-player to 3
  549. set score "&8● &e%{kills.permatch.%loop-player%}%" in sidebar of loop-player to 2
  550. set score "&7&m--------------" in sidebar of loop-player to 1
  551. wait 2 seconds
  552. if {state} is "ingame":
  553. set {blockspawn.nowalk} to 0
  554. loop all players:
  555. send loop-player title "&e3" for 1 seconds
  556. play sound "click" to all players with volume 100.0 and pitch 5
  557. loop 200 times:
  558. add 1 to {blockspawn.nowalk}
  559. set block at {chestgames.nowalk.%{blockspawn.nowalk}%} to 95:4
  560. wait 1 seconds
  561. if {state} is "ingame":
  562. set {blockspawn.nowalk} to 0
  563. play sound "click" to all players with volume 100.0 and pitch 5
  564. loop all players:
  565. send loop-player title "&22" for 1 seconds
  566. loop 200 times:
  567. add 1 to {blockspawn.nowalk}
  568. set block at {chestgames.nowalk.%{blockspawn.nowalk}%} to 95:13
  569. wait 1 seconds
  570. if {state} is "ingame":
  571. set {blockspawn.nowalk} to 0
  572. play sound "click" to all players with volume 100.0 and pitch 5
  573. loop all players:
  574. send loop-player title "&a1" for 1 seconds
  575. loop 200 times:
  576. add 1 to {blockspawn.nowalk}
  577. set block at {chestgames.nowalk.%{blockspawn.nowalk}%} to 95:5
  578. wait 1 seconds
  579. if {state} is "ingame":
  580. set {blockspawn.nowalk} to 0
  581. play sound "wood_click" to all players with volume 100.0 and pitch 5
  582. loop all players:
  583. send loop-player title "&aGO!" for 0.5 seconds
  584. if {überlebenderspieler.%loop-player%} is true:
  585. set hunger of loop-player to 30
  586. loop 200 times:
  587. add 1 to {blockspawn.nowalk}
  588. set block at {chestgames.nowalk.%{blockspawn.nowalk}%} to air
  589. if {state} is "ingame":
  590. loop 10 times:
  591. if {state} is "ingame":
  592. wait 2 seconds
  593. else:
  594. stop
  595. broadcast "{@p}&7Das &fDeathmatch &7startet in &f2 &7Minuten&8."
  596. play sound "click" to all players with volume 100.0 and pitch 5
  597. loop 30 times:
  598. if {state} is "ingame":
  599. wait 2 seconds
  600. else:
  601. stop
  602. broadcast "{@p}&7Das &fDeathmatch &7startet in &f1 &7Minute&8."
  603. play sound "click " to all players with volume 100.0 and pitch 5
  604. loop 25 times:
  605. if {state} is "ingame":
  606. wait 2 seconds
  607. else:
  608. stop
  609. broadcast "{@p}&7Das &fDeathmatch &7startet in &f10 &7Sekunden&8."
  610. play sound "click" to all players with volume 100.0 and pitch 5
  611. loop 7 times:
  612. if {state} is "ingame":
  613. wait 1 seconds
  614. else:
  615. stop
  616. if {tasdffds} is not set:
  617. if {state} is "ingame":
  618. broadcast "{@p}&7Das &fDeathmatch &7startet in &f3 &7Sekunden&8."
  619. play sound "click" to all players with volume 100.0 and pitch 5
  620. else:
  621. stop
  622. wait 1 seconds
  623. if {tasdffds} is not set:
  624. if {state} is "ingame":
  625. broadcast "{@p}&7Das &fDeathmatch &7startet in &f2 &7Sekunden&8."
  626. play sound "click" to all players with volume 100.0 and pitch 5
  627. else:
  628. stop
  629. wait 1 seconds
  630. if {tasdffds} is not set:
  631. if {state} is "ingame":
  632. broadcast "{@p}&7Das &fDeathmatch &7startet in &f1 &7Sekunde&8."
  633. play sound "click" to all players with volume 100.0 and pitch 5
  634. else:
  635. stop
  636. wait 1 seconds
  637. if {tasdffds} is not set:
  638. if {state} is "ingame":
  639. broadcast "{@p}&7Alle Spieler werden nun in die &fDeathmatch Arena &7teleportiert&8."
  640. play sound "NOTE_pling" to all players with volume 100.0 and pitch 15
  641. set {TIMEtoDAY} to 0
  642. loop all players:
  643. if {überlebenderspieler.%loop-player%} is true:
  644. add 1 to {TIMEtoDAY}
  645. teleport loop-player to {deathmatch.%{TIMEtoDAY}%}
  646. else:
  647. teleport loop-player to {deathmatch.spec.deathmatch}
  648. loop all players:
  649. send loop-player title "&aDas Deathmatch" with subtitle "&abeginnt" for 2 seconds
  650. else:
  651. stop
  652. wait 2 seconds
  653. if {state} is "ingame":
  654. loop 30 times:
  655. if {state} is "ingame":
  656. wait 2 seconds
  657. else:
  658. stop
  659. loop 30 times:
  660. if {state} is "ingame":
  661. wait 2 seconds
  662. else:
  663. stop
  664. loop 30 times:
  665. if {state} is "ingame":
  666. wait 2 seconds
  667. else:
  668. stop
  669. broadcast "{@p}&7Das Spiel &fendet &7in &f1 &7Minute&8."
  670. play sound "click" to all players with volume 100.0 and pitch 5
  671. loop 25 times:
  672. if {state} is "ingame":
  673. wait 2 seconds
  674. else:
  675. stop
  676. broadcast "{@p}&7Das Spiel &fendet &7in &f10 &7Sekunden&8."
  677. play sound "click" to all players with volume 100.0 and pitch 5
  678. loop 7 times:
  679. if {state} is "ingame":
  680. wait 1 seconds
  681. else:
  682. stop
  683. if {tasdffds} is not set:
  684. if {state} is "ingame":
  685. broadcast "{@p}&7Das Spiel &fendet &7in &f3 &7Sekunden&8."
  686. play sound "click" to all players with volume 100.0 and pitch 5
  687. else:
  688. stop
  689. wait 1 seconds
  690. if {tasdffds} is not set:
  691. if {state} is "ingame":
  692. broadcast "{@p}&7Das Spiel &fendet &7in &f2 &7Sekunden&8."
  693. play sound "click" to all players with volume 100.0 and pitch 5
  694. else:
  695. stop
  696. wait 1 seconds
  697. if {tasdffds} is not set:
  698. if {state} is "ingame":
  699. broadcast "{@p}&7Das Spiel &fendet &7in &f1 &7Sekunde&8."
  700. play sound "click" to all players with volume 100.0 and pitch 5
  701. else:
  702. stop
  703. wait 1 seconds
  704. if {tasdffds} is not set:
  705. if {state} is "ingame":
  706. broadcast "{@p}&eDas Spiel ist vorbei&8. &eUnentschieden&8!"
  707.  
  708. loop all players:
  709. send loop-player title "&eUnentschieden" for 2 seconds
  710. set {state} to "End"
  711. loop all players:
  712. clear loop-players inventory
  713. set loop-player's flight mode to false
  714. reveal the loop-player from all players
  715. execute console command "nte player %loop-player% clear"
  716. remove Invisibility from the loop-player
  717. teleport all players to {wartelobby}
  718. play sound "IRONGOLEM_DEATH" to all players with volume 100.0 and pitch 15
  719. wait 10 seconds
  720. play sound "click" to all players with volume 100.0 and pitch 5
  721. broadcast "{@p}&7Der Server stoppt &7in &f3 &7Sekunden&8."
  722. wait 1 seconds
  723. play sound "click" to all players with volume 100.0 and pitch 5
  724. broadcast "{@p}&7Der Server stoppt &7in &f2 &7Sekunden&8."
  725. wait 1 seconds
  726. play sound "click" to all players with volume 100.0 and pitch 5
  727. broadcast "{@p}&7Der Server stoppt &7in &f1 &7Sekunde&8."
  728. wait 1 seconds
  729. execute console command "configurate"
  730. else:
  731. stop
  732.  
  733. else:
  734. set {countdown} to true
  735. set {start} to false
  736. set {startcommand} to true
  737. else:
  738. set {countdown} to true
  739. set {start} to false
  740. set {startcommand} to true
  741. else:
  742. send "{@p}&cDas Spiel &fstartet &7bereits&8."
  743. else:
  744. send "{@p}&cDu kannst nicht mehr starten&8."
  745. else:
  746. send "{@p}&cDu kannst noch nicht &fstarten&8."
  747. command /_startcountdown:
  748. trigger:
  749. set {start.ab.Spieler} to 4
  750. set {BowDuell.SpielerAllgeimein} to number of players in world "{@world}"
  751. if {BowDuell.SpielerAllgeimein} is bigger than 1:
  752. if {countdown} is true:
  753. set {countdown} to false
  754. wait 0.1 seconds
  755. set {Countdown.BW} to 31
  756. loop 31 times:
  757. if {state} is "lobby":
  758. if {CountdownStart} is true:
  759. set {BowDuell.SpielerAllgeimein} to number of players in world "{@world}"
  760. if {BowDuell.SpielerAllgeimein} is bigger than 1:
  761. remove 1 from {Countdown.BW}
  762. if {start} is false:
  763. wait 1 seconds
  764. if {Countdown.BW} is 30:
  765. loop all players:
  766. play "click" to loop-player with volume 100.0 and pitch 5
  767. broadcast "{@p}&7Die Runde startet in &f%{Countdown.BW}% &7Sekunden&8." in "{@world}"
  768. if {Countdown.BW} is 15:
  769. loop all players:
  770. play "click" to loop-player with volume 100.0 and pitch 5
  771. broadcast "{@p}&7Die Runde startet in &f%{Countdown.BW}% &7Sekunden&8." in "{@world}"
  772. if {Countdown.BW} is 10:
  773. loop all players:
  774. play "click" to loop-player with volume 100.0 and pitch 5
  775. broadcast "{@p}&7Die Runde startet in &f%{Countdown.BW}% &7Sekunden&8." in "{@world}"
  776. if {Countdown.BW} is 5:
  777. loop all players:
  778. play "click" to loop-player with volume 100.0 and pitch 5
  779. broadcast "{@p}&7Die Runde startet in &f%{Countdown.BW}% &7Sekunden&8." in "{@world}"
  780. if {Countdown.BW} is 4:
  781. loop all players:
  782. play "click" to loop-player with volume 100.0 and pitch 5
  783. broadcast "{@p}&7Die Runde startet in &f%{Countdown.BW}% &7Sekunden&8." in "{@world}"
  784. if {Countdown.BW} is 3:
  785. loop all players:
  786. play "click" to loop-player with volume 100.0 and pitch 5
  787. broadcast "{@p}&7Die Runde startet in &f%{Countdown.BW}% &7Sekunden&8." in "{@world}"
  788. if {Countdown.BW} is 2:
  789. loop all players:
  790. play "click" to loop-player with volume 100.0 and pitch 5
  791. broadcast "{@p}&7Die Runde startet in &f%{Countdown.BW}% &7Sekunden&8." in "{@world}"
  792. if {Countdown.BW} is 1:
  793. loop all players:
  794. play "click" to loop-player with volume 100.0 and pitch 5
  795. broadcast "{@p}&7Die Runde startet in &f%{Countdown.BW}% &7Sekunde&8." in "{@world}"
  796. if {Countdown.BW} is 0:
  797. set {BowDuell.SpielerAllgeimein} to number of players in world "{@world}"
  798. if {BowDuell.SpielerAllgeimein} is bigger than 1:
  799. set {state} to "Ingame"
  800. execute console command "switchstate"
  801. broadcast "{@p}&7Alle Spieler werden in die &fArena &7teleportiert&8." in "{@world}"
  802. set {_addspawn} to 0
  803. set {blockspawn.nowalk} to 0
  804. loop 200 times:
  805. add 1 to {blockspawn.nowalk}
  806. set block at {chestgames.nowalk.%{blockspawn.nowalk}%} to 95:7
  807. loop all players:
  808. add 1 to {_addspawn}
  809. teleport loop-player to {chestgames.spawn.%{_addspawn}%}
  810. clear loop-player's inventory
  811. play sound "enderman_teleport" to loop-players with volume 100.0 and pitch 15
  812. set max health of loop-player to 5
  813. set {health.%loop-player%} to 5
  814. add 1 to {_addspawn}
  815. add 1 to {überlebende}
  816. set {überlebenderspieler.%loop-player%} to true
  817. wait 1 seconds
  818. loop all players:
  819. execute console command "stats addplayedgames %loop-player%"
  820. give loop-player 1 271 named "&6Holzaxt"
  821. give loop-player 5 297 named "&6Brot"
  822. loop all players:
  823. wipe loop-player's sidebar
  824. set name of sidebar of loop-player to "&8» &6&lChestGames &8«"
  825. set score "&9" in sidebar of loop-player to 10
  826. set score "&7Karte" in sidebar of loop-player to 9
  827. set score "&8● &9Nuketown" in sidebar of loop-player to 8
  828. set score "&b" in sidebar of loop-player to 7
  829. set score "&7Spieler" in sidebar of loop-player to 6
  830. set score "&8● &a%{überlebende}%" in sidebar of loop-player to 5
  831. set score "&d" in sidebar of loop-player to 4
  832. set score "&7Kills" in sidebar of loop-player to 3
  833. set score "&8● &e%{kills.permatch.%loop-player%}%" in sidebar of loop-player to 2
  834. set score "&7&m--------------" in sidebar of loop-player to 1
  835. wait 2 seconds
  836. if {state} is "ingame":
  837. set {blockspawn.nowalk} to 0
  838. loop all players:
  839. send loop-player title "&e3" for 1 seconds
  840. play sound "click" to all players with volume 100.0 and pitch 5
  841. loop 200 times:
  842. add 1 to {blockspawn.nowalk}
  843. set block at {chestgames.nowalk.%{blockspawn.nowalk}%} to 95:4
  844. wait 1 seconds
  845. if {state} is "ingame":
  846. set {blockspawn.nowalk} to 0
  847. play sound "click" to all players with volume 100.0 and pitch 5
  848. loop all players:
  849. send loop-player title "&22" for 1 seconds
  850. loop 200 times:
  851. add 1 to {blockspawn.nowalk}
  852. set block at {chestgames.nowalk.%{blockspawn.nowalk}%} to 95:13
  853. wait 1 seconds
  854. if {state} is "ingame":
  855. set {blockspawn.nowalk} to 0
  856. play sound "click" to all players with volume 100.0 and pitch 5
  857. loop all players:
  858. send loop-player title "&a1" for 1 seconds
  859. loop 200 times:
  860. add 1 to {blockspawn.nowalk}
  861. set block at {chestgames.nowalk.%{blockspawn.nowalk}%} to 95:5
  862. wait 1 seconds
  863. if {state} is "ingame":
  864. set {blockspawn.nowalk} to 0
  865. play sound "wood_click" to all players with volume 100.0 and pitch 5
  866. loop all players:
  867. send loop-player title "&aGO!" for 0.5 seconds
  868. if {überlebenderspieler.%loop-player%} is true:
  869. set hunger of loop-player to 30
  870. loop 200 times:
  871. add 1 to {blockspawn.nowalk}
  872. set block at {chestgames.nowalk.%{blockspawn.nowalk}%} to air
  873. if {state} is "ingame":
  874. loop 10 times:
  875. if {state} is "ingame":
  876. wait 2 seconds
  877. else:
  878. stop
  879. broadcast "{@p}&7Das &fDeathmatch &7startet in &f2 &7Minuten&8."
  880. play sound "click" to all players with volume 100.0 and pitch 5
  881. loop 30 times:
  882. if {state} is "ingame":
  883. wait 2 seconds
  884. else:
  885. stop
  886. broadcast "{@p}&7Das &fDeathmatch &7startet in &f1 &7Minute&8."
  887. play sound "click " to all players with volume 100.0 and pitch 5
  888. loop 25 times:
  889. if {state} is "ingame":
  890. wait 2 seconds
  891. else:
  892. stop
  893. broadcast "{@p}&7Das &fDeathmatch &7startet in &f10 &7Sekunden&8."
  894. play sound "click" to all players with volume 100.0 and pitch 5
  895. loop 7 times:
  896. if {state} is "ingame":
  897. wait 1 seconds
  898. else:
  899. stop
  900. if {tasdffds} is not set:
  901. if {state} is "ingame":
  902. broadcast "{@p}&7Das &fDeathmatch &7startet in &f3 &7Sekunden&8."
  903. play sound "click" to all players with volume 100.0 and pitch 5
  904. else:
  905. stop
  906. wait 1 seconds
  907. if {tasdffds} is not set:
  908. if {state} is "ingame":
  909. broadcast "{@p}&7Das &fDeathmatch &7startet in &f2 &7Sekunden&8."
  910. play sound "click" to all players with volume 100.0 and pitch 5
  911. else:
  912. stop
  913. wait 1 seconds
  914. if {tasdffds} is not set:
  915. if {state} is "ingame":
  916. broadcast "{@p}&7Das &fDeathmatch &7startet in &f1 &7Sekunde&8."
  917. play sound "click" to all players with volume 100.0 and pitch 5
  918. else:
  919. stop
  920. wait 1 seconds
  921. if {tasdffds} is not set:
  922. if {state} is "ingame":
  923. broadcast "{@p}&7Alle Spieler werden nun in die &fDeathmatch Arena &7teleportiert&8."
  924. play sound "NOTE_pling" to all players with volume 100.0 and pitch 15
  925. set {TIMEtoDAY} to 0
  926. loop all players:
  927. if {überlebenderspieler.%loop-player%} is true:
  928. add 1 to {TIMEtoDAY}
  929. teleport loop-player to {deathmatch.%{TIMEtoDAY}%}
  930. else:
  931. teleport loop-player to {deathmatch.spec.deathmatch}
  932. loop all players:
  933. send loop-player title "&aDas Deathmatch" with subtitle "&abeginnt" for 2 seconds
  934. else:
  935. stop
  936. wait 2 seconds
  937. if {state} is "ingame":
  938. loop 30 times:
  939. if {state} is "ingame":
  940. wait 2 seconds
  941. else:
  942. stop
  943. loop 30 times:
  944. if {state} is "ingame":
  945. wait 2 seconds
  946. else:
  947. stop
  948. loop 30 times:
  949. if {state} is "ingame":
  950. wait 2 seconds
  951. else:
  952. stop
  953. broadcast "{@p}&7Das Spiel &fendet &7in &f1 &7Minute&8."
  954. play sound "click" to all players with volume 100.0 and pitch 5
  955. loop 25 times:
  956. if {state} is "ingame":
  957. wait 2 seconds
  958. else:
  959. stop
  960. broadcast "{@p}&7Das Spiel &fendet &7in &f10 &7Sekunden&8."
  961. play sound "click" to all players with volume 100.0 and pitch 5
  962. loop 7 times:
  963. if {state} is "ingame":
  964. wait 1 seconds
  965. else:
  966. stop
  967. if {tasdffds} is not set:
  968. if {state} is "ingame":
  969. broadcast "{@p}&7Das Spiel &fendet &7in &f3 &7Sekunden&8."
  970. play sound "click" to all players with volume 100.0 and pitch 5
  971. else:
  972. stop
  973. wait 1 seconds
  974. if {tasdffds} is not set:
  975. if {state} is "ingame":
  976. broadcast "{@p}&7Das Spiel &fendet &7in &f2 &7Sekunden&8."
  977. play sound "click" to all players with volume 100.0 and pitch 5
  978. else:
  979. stop
  980. wait 1 seconds
  981. if {tasdffds} is not set:
  982. if {state} is "ingame":
  983. broadcast "{@p}&7Das Spiel &fendet &7in &f1 &7Sekunde&8."
  984. play sound "click" to all players with volume 100.0 and pitch 5
  985. else:
  986. stop
  987. wait 1 seconds
  988. if {tasdffds} is not set:
  989. if {state} is "ingame":
  990. broadcast "{@p}&eDas Spiel ist vorbei&8. &eUnentschieden&8!"
  991.  
  992. loop all players:
  993. send loop-player title "&eUnentschieden" for 2 seconds
  994. set {state} to "End"
  995. loop all players:
  996. set loop-player's flight mode to false
  997. reveal the loop-player from all players
  998. execute console command "nte player %loop-player% clear"
  999. remove Invisibility from the loop-player
  1000. clear loop-players inventory
  1001. teleport all players to {wartelobby}
  1002. play sound "IRONGOLEM_DEATH" to all players with volume 100.0 and pitch 15
  1003. wait 10 seconds
  1004. play sound "click" to all players with volume 100.0 and pitch 5
  1005. broadcast "{@p}&7Der Server stoppt &7in &f3 &7Sekunden&8."
  1006. wait 1 seconds
  1007. play sound "click" to all players with volume 100.0 and pitch 5
  1008. broadcast "{@p}&7Der Server stoppt &7in &f2 &7Sekunden&8."
  1009. wait 1 seconds
  1010. play sound "click" to all players with volume 100.0 and pitch 5
  1011. broadcast "{@p}&7Der Server stoppt &7in &f1 &7Sekunde&8."
  1012. wait 1 seconds
  1013. execute console command "configurate"
  1014. else:
  1015. stop
  1016.  
  1017. else:
  1018. set {countdown} to true
  1019. stop
  1020. else:
  1021. set {countdown} to true
  1022. stop
  1023.  
  1024.  
  1025. every 20 seconds:
  1026. if {state} is "Lobby":
  1027. if {countdown} is true:
  1028. broadcast "{@p}&7Es fehlen noch &c%{start.ab.Spieler}-{BowDuell.SpielerAllgeimein}% &7Spieler bis zum Spielstart&8."
  1029. on damage:
  1030. if {überlebenderspieler.%attacker%} is false:
  1031. cancel event
  1032. if {überlebenderspieler.%victim%} is false:
  1033. cancel event
  1034. on death:
  1035. if victim is a player:
  1036. if {state} is "Ingame":
  1037. set death message to ""
  1038. if {Angriff.%attacker%.%victim%} is not set:
  1039. broadcast "{@p}&c%victim% ist gestorben"
  1040. if {Angriff.%attacker%.%victim%} is false:
  1041. broadcast "{@p}&c%victim% ist gestorben"
  1042. if {Angriff.%attacker%.%victim%} is true:
  1043. play "level_up" to attacker at volume 1000
  1044. broadcast "{@p}&c%victim% &7wurde von &a%attacker% &7getötet"
  1045. if {überlebenderspieler.%victim%} is true:
  1046. execute console command "stats adddeaths %victim%"
  1047. add 1 to {kills.permatch.%attacker%}
  1048. execute console command "stats addkills %attacker%"
  1049. set max health of victim to 10
  1050. execute console command "nte player %player% prefix &4✖ &8┃ &7"
  1051. execute console command "nte player %player% priority 99"
  1052. apply potion of Invisibility of tier 1 to victim for 1500 seconds
  1053. set {überlebenderspieler.%victim%} to false
  1054. set hunger of victim to 30
  1055. show mobspawner flames at victim
  1056. heal victim
  1057. remove 1 from {überlebende}
  1058. hide victim from all players
  1059. delete {playerlist::%victim%}
  1060. loop all players:
  1061. wipe loop-player's sidebar
  1062. set name of sidebar of loop-player to "&8» &6&lChestGames &8«"
  1063. set score "&9" in sidebar of loop-player to 10
  1064. set score "&7Karte" in sidebar of loop-player to 9
  1065. set score "&8● &9Nuketown" in sidebar of loop-player to 8
  1066. set score "&b" in sidebar of loop-player to 7
  1067. set score "&7Spieler" in sidebar of loop-player to 6
  1068. set score "&8● &a%{überlebende}%" in sidebar of loop-player to 5
  1069. set score "&d" in sidebar of loop-player to 4
  1070. set score "&7Kills" in sidebar of loop-player to 3
  1071. set score "&8● &e%{kills.permatch.%loop-player%}%" in sidebar of loop-player to 2
  1072. set score "&7&m--------------" in sidebar of loop-player to 1
  1073. loop all players:
  1074. execute loop-player command "fix_**_players"
  1075. if {überlebende} is 1:
  1076. loop all players:
  1077. wipe loop-player's sidebar
  1078. set name of sidebar of loop-player to "&8» &6&lChestGames &8«"
  1079. set score "&9" in sidebar of loop-player to 7
  1080. set score "&7Karte" in sidebar of loop-player to 6
  1081. set score "&8● &9Nuketown" in sidebar of loop-player to 5
  1082. set score "&d" in sidebar of loop-player to 4
  1083. set score "&7Kills" in sidebar of loop-player to 3
  1084. set score "&8● &e%{kills.permatch.%loop-player%}%" in sidebar of loop-player to 2
  1085. set score "&7&m--------------" in sidebar of loop-player to 1
  1086. loop all players:
  1087. set loop-player's flight mode to false
  1088. reveal the loop-player from all players
  1089. execute console command "nte player %loop-player% clear"
  1090. remove Invisibility from the loop-player
  1091. clear loop-player's inventory
  1092. loop all players:
  1093. if {überlebenderspieler.%loop-player%} is true:
  1094. set {überlebenderspieler.%loop-player%} to false
  1095. loop all players:
  1096. execute console command "stats addwins %loop-player%"
  1097. teleport all players to {wartelobby}
  1098. play "level_up" to all players at volume 1000
  1099. broadcast "&8&m---------------------------------------------"
  1100. broadcast "&f"
  1101. broadcast "{@p}&a%loop-player% &7hat das Spiel &fgewonnen&8."
  1102. broadcast "&d"
  1103. broadcast "&f&8&m---------------------------------------------"
  1104. send all players title "&a%loop-player%" with subtitle "&fhat das Spiel gewonnen" for 3 seconds
  1105. set {state} to "End"
  1106. launch flickering ball firework colored white and red at loop-player's location timed 1.5
  1107. launch flickering ball firework colored blue and green at loop-player's location timed 1.8
  1108. launch flickering ball firework colored yellow and red at loop-player's location timed 2.0
  1109. wait 10 seconds
  1110. play sound "click" to all players with volume 100.0 and pitch 5
  1111. broadcast "{@p}&7Der Server stoppt &7in &f3 &7Sekunden&8."
  1112. wait 1 seconds
  1113. play sound "click" to all players with volume 100.0 and pitch 5
  1114. broadcast "{@p}&7Der Server stoppt &7in &f2 &7Sekunden&8."
  1115. wait 1 seconds
  1116. play sound "click" to all players with volume 100.0 and pitch 5
  1117. broadcast "{@p}&7Der Server stoppt &7in &f1 &7Sekunde&8."
  1118. wait 1 seconds
  1119. execute console command "configurate"
  1120. command /asdffddfsadfaf:
  1121. trigger:
  1122. set player's flight mode to true
  1123. reveal the player from all players
  1124.  
  1125. command /fix_**_players:
  1126. trigger:
  1127. if {überlebenderspieler.%player%} is false:
  1128. loop all players:
  1129. if {überlebenderspieler.%loop-player%} is false:
  1130. set player's flight mode to true
  1131. reveal loop-player from player
  1132. on right click on chest:
  1133. if {überlebenderspieler.%player%} is false:
  1134. cancel event
  1135. stop
  1136. if {state} is not "Ingame":
  1137. cancel event
  1138. stop
  1139. play sound "CHEST_OPEN" to player with volume 100.0 and pitch 15
  1140. cancel event
  1141. set event-block to air
  1142. add 1 to {achests}
  1143. add 1 to {chests}
  1144. set {chest.%{chests}%} to location of event-block
  1145. chance of 100%:
  1146. set {random_item_aus_chest} to random element of {chestitems::*}
  1147. drop {random_item_aus_chest} above {chest.%{chests}%}
  1148. chance of 50%:
  1149. set {random_item_aus_chest} to random element of {chestitems::*}
  1150. drop {random_item_aus_chest} above {chest.%{chests}%}
  1151. chance of 50%:
  1152. set {random_item_aus_chest} to random element of {chestitems::*}
  1153. drop {random_item_aus_chest} above {chest.%{chests}%}
  1154. chance of 50%:
  1155. set {random_item_aus_chest} to random element of {chestitems::*}
  1156. drop {random_item_aus_chest} above {chest.%{chests}%}
  1157. chance of 50%:
  1158. set {random_item_aus_chest} to random element of {chestitems::*}
  1159. drop {random_item_aus_chest} above {chest.%{chests}%}
  1160. on right click on 130:
  1161. if {überlebenderspieler.%player%} is false:
  1162. cancel event
  1163. stop
  1164. if {state} is not "Ingame":
  1165. cancel event
  1166. stop
  1167. play sound "FIREWORK_BLAST " to player with volume 100.0 and pitch 15
  1168. cancel event
  1169. set event-block to air
  1170. set {random_item_aus_echest} to random element of {echestitems::*}
  1171. drop {random_item_aus_echest} at event-block
  1172.  
  1173. on right click with 399:
  1174. if name of player's held item is "&c+ 1 Herz":
  1175. apply Regeneration 4 to player for 0.7 seconds
  1176. add 1 to {health.%player%}
  1177. set max health of player to {health.%player%}
  1178. remove 399 named "&c+ 1 Herz" from player's inventory
  1179. play sound "LEVEL_UP" to player with volume 100.0 and pitch 15
  1180. if name of player's held item is "&c+ 2 Herzen":
  1181. apply Regeneration 4 to player for 1.4 seconds
  1182. add 2 to {health.%player%}
  1183. set max health of player to {health.%player%}
  1184. remove 399 named "&c+ 2 Herzen" from player's inventory
  1185. play sound "LEVEL_UP" to player with volume 100.0 and pitch 15
  1186. on right click with cake:
  1187. remove cake from player's inventory
  1188. play sound "click" to player with volume 100.0 and pitch 15
  1189. chance of 25%:
  1190. apply Regeneration 2 to player for 7 seconds
  1191. send player title "&aRegeneration" for 1 seconds
  1192. stop
  1193. chance of 25%:
  1194. send player title "&aSpeed" for 1 seconds
  1195. apply speed 2 to player for 7 seconds
  1196. stop
  1197. chance of 25%:
  1198. apply Strength 1 to player for 5 seconds
  1199. send player title "&aStärke" for 1 seconds
  1200. stop
  1201. chance of 25%:
  1202. send player title "&cLangsamkeit" for 1 seconds
  1203. apply slowness 2 to player for 7 seconds
  1204. stop
  1205. chance of 25%:
  1206. send player title "&aSprungkraft" for 1 seconds
  1207. apply jump 2 to player for 7 seconds
  1208. stop
  1209. chance of 25%:
  1210. send player title "&cÜbelkeit" for 1 seconds
  1211. apply nausea 14 to player for 7 seconds
  1212. stop
  1213. send player title "&cBlindheit" for 1 seconds
  1214. apply blindness 5 to player for 5 seconds
  1215.  
  1216. on damage:
  1217. if attacker is a player:
  1218. if attacker is not "%victim%":
  1219. loop 53 times:
  1220. set {Angreifer.%victim%} to attacker
  1221. wait 0.0625 second
  1222. set {Angriff.%attacker%.%victim%} to true
  1223. set {Angriff.%attacker%.%victim%} to false
  1224. clear {Angreifer.%victim%}
  1225. stop
  1226.  
  1227.  
  1228.  
  1229.  
  1230. # QUIT EVENT
  1231. on quit:
  1232. if {state} is "Ingame":
  1233. if {überlebenderspieler.%player%} is true:
  1234. broadcast "{@p}&7%player% hat das Spiel &cverlassen"
  1235. execute console command "stats adddeaths %player%"
  1236. set {überlebenderspieler.%player} to false
  1237. remove 1 from {überlebende}
  1238. loop all players:
  1239. wipe loop-player's sidebar
  1240. set name of sidebar of loop-player to "&8» &6&lChestGames &8«"
  1241. set score "&9" in sidebar of loop-player to 10
  1242. set score "&7Karte" in sidebar of loop-player to 9
  1243. set score "&8● &9Nuketown" in sidebar of loop-player to 8
  1244. set score "&b" in sidebar of loop-player to 7
  1245. set score "&7Spieler" in sidebar of loop-player to 6
  1246. set score "&8● &a%{überlebende}%" in sidebar of loop-player to 5
  1247. set score "&d" in sidebar of loop-player to 4
  1248. set score "&7Kills" in sidebar of loop-player to 3
  1249. set score "&8● &e%{kills.permatch.%loop-player%}%" in sidebar of loop-player to 2
  1250. set score "&7&m--------------" in sidebar of loop-player to 1
  1251. if {überlebende} is 1:
  1252. wait 0.3 seconds
  1253. loop all players:
  1254. wipe loop-player's sidebar
  1255. set name of sidebar of loop-player to "&8» &6&lChestGames &8«"
  1256. set score "&9" in sidebar of loop-player to 7
  1257. set score "&7Karte" in sidebar of loop-player to 6
  1258. set score "&8● &9Nuketown" in sidebar of loop-player to 5
  1259. set score "&d" in sidebar of loop-player to 4
  1260. set score "&7Kills" in sidebar of loop-player to 3
  1261. set score "&8● &e%{kills.permatch.%loop-player%}%" in sidebar of loop-player to 2
  1262. set score "&7&m--------------" in sidebar of loop-player to 1
  1263. loop all players:
  1264. set loop-player's flight mode to false
  1265. reveal the loop-player from all players
  1266. execute console command "nte player %loop-player% clear"
  1267. remove Invisibility from the loop-player
  1268. clear loop-player's inventory
  1269. loop all players:
  1270. if {überlebenderspieler.%loop-player%} is true:
  1271. set {überlebenderspieler.%loop-player%} to false
  1272. loop all players:
  1273. execute console command "stats addwins %loop-player%"
  1274. teleport all players to {wartelobby}
  1275. play "level_up" to all players at volume 1000
  1276. broadcast "&8&m---------------------------------------------"
  1277. broadcast "&f"
  1278. broadcast "{@p}&a%loop-player% &7hat das Spiel &fgewonnen&8."
  1279. broadcast "&d"
  1280. broadcast "&f&8&m---------------------------------------------"
  1281. send all players title "&a%loop-player%" with subtitle "&fhat das Spiel gewonnen" for 3 seconds
  1282. set {state} to "End"
  1283. launch flickering ball firework colored white and red at loop-player's location timed 1.5
  1284. launch flickering ball firework colored blue and green at loop-player's location timed 1.8
  1285. launch flickering ball firework colored yellow and red at loop-player's location timed 2.0
  1286. wait 10 seconds
  1287. play sound "click" to all players with volume 100.0 and pitch 5
  1288. broadcast "{@p}&7Der Server stoppt &7in &f3 &7Sekunden&8."
  1289. wait 1 seconds
  1290. play sound "click" to all players with volume 100.0 and pitch 5
  1291. broadcast "{@p}&7Der Server stoppt &7in &f2 &7Sekunden&8."
  1292. wait 1 seconds
  1293. play sound "click" to all players with volume 100.0 and pitch 5
  1294. broadcast "{@p}&7Der Server stoppt &7in &f1 &7Sekunde&8."
  1295. wait 1 seconds
  1296. execute console command "configurate"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement