Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- #
- # ChestGames - by Balerias
- #
- #
- options:
- p: &8┃ &6&lChestGames &8▶ &7
- world: Wartelobby
- on join:
- if {state} is "Lobby":
- set join message to "{@p}&7%player% hat das Spiel &abetreten"
- else:
- set join message to ""
- on quit:
- if {state} is "Lobby":
- set leave message to "{@p}&7%player% hat das Spiel &cverlassen"
- else:
- set leave message to ""
- on connect:
- if {state} is "End":
- kick player due to "{@p}&cDie Runde ist bereits zuende"
- on load:
- make console execute command "/configurate"
- command /configurate:
- permission: op.op
- permission: {@p}&cDazu hast du keine Rechte
- trigger:
- kick all players due to "{@p}&cDas Spiel startet nun neu .."
- loop all dropped items:
- delete loop-value
- wait 1 tick
- loop all entities:
- delete loop-entity-1
- wait 1 tick
- send "{@p}&aDas Spiel wurde configuriert"
- clear {chestitems::*}
- clear {echestitems::*}
- #Rüstung
- set {start} to false
- set {startcommand} to true
- add 1 298 to {chestitems::*}
- add 1 299 to {chestitems::*}
- add 1 300 to {chestitems::*}
- add 1 301 to {chestitems::*}
- add 1 302 to {chestitems::*}
- add 1 303 to {chestitems::*}
- add 1 304 to {chestitems::*}
- add 1 305 to {chestitems::*}
- add 1 306 to {chestitems::*}
- add 1 307 to {chestitems::*}
- add 1 308 to {chestitems::*}
- add 1 309 to {chestitems::*}
- add 1 314 to {chestitems::*}
- add 1 315 to {chestitems::*}
- add 1 316 to {chestitems::*}
- add 1 317 to {chestitems::*}
- add 1 267 to {chestitems::*}
- add 1 268 to {chestitems::*}
- add 1 272 to {chestitems::*}
- add 1 283 to {chestitems::*}
- add 1 261 to {chestitems::*}
- add 1 346 to {chestitems::*}
- add 3 262 to {chestitems::*}
- add 2 297 to {chestitems::*}
- add 3 297 to {chestitems::*}
- add 1 424 to {chestitems::*}
- add 1 298 to {chestitems::*}
- add 1 299 to {chestitems::*}
- add 1 300 to {chestitems::*}
- add 1 301 to {chestitems::*}
- add 1 302 to {chestitems::*}
- add 1 303 to {chestitems::*}
- add 1 304 to {chestitems::*}
- add 1 305 to {chestitems::*}
- add 1 306 to {chestitems::*}
- add 1 307 to {chestitems::*}
- add 1 308 to {chestitems::*}
- add 1 309 to {chestitems::*}
- add 1 314 to {chestitems::*}
- add 1 315 to {chestitems::*}
- add 1 316 to {chestitems::*}
- add 1 317 to {chestitems::*}
- add 1 267 to {chestitems::*}
- add 1 268 to {chestitems::*}
- add 1 272 to {chestitems::*}
- add 1 283 to {chestitems::*}
- add 1 261 to {chestitems::*}
- add 1 346 to {chestitems::*}
- add 3 262 to {chestitems::*}
- add 2 297 to {chestitems::*}
- add 3 297 to {chestitems::*}
- add 1 424 to {chestitems::*}
- add 1 298 to {chestitems::*}
- add 1 299 to {chestitems::*}
- add 1 300 to {chestitems::*}
- add 1 301 to {chestitems::*}
- add 1 302 to {chestitems::*}
- add 1 303 to {chestitems::*}
- add 1 304 to {chestitems::*}
- add 1 305 to {chestitems::*}
- add 1 306 to {chestitems::*}
- add 1 307 to {chestitems::*}
- add 1 308 to {chestitems::*}
- add 1 309 to {chestitems::*}
- add 1 314 to {chestitems::*}
- add 1 315 to {chestitems::*}
- add 1 316 to {chestitems::*}
- add 1 317 to {chestitems::*}
- add 1 267 to {chestitems::*}
- add 1 268 to {chestitems::*}
- add 1 272 to {chestitems::*}
- add 1 283 to {chestitems::*}
- add 1 261 to {chestitems::*}
- add 1 346 to {chestitems::*}
- add 3 262 to {chestitems::*}
- add 2 297 to {chestitems::*}
- add 3 297 to {chestitems::*}
- add 1 424 to {chestitems::*}
- add 2 424 to {chestitems::*}
- add 3 424 to {chestitems::*}
- add 1 424 to {chestitems::*}
- add 2 424 to {chestitems::*}
- add 3 424 to {chestitems::*}
- add 1 276 to {chestitems::*}
- add 1 310 to {chestitems::*}
- add 1 311 to {chestitems::*}
- add 1 322 to {chestitems::*}
- add 6 357 to {chestitems::*}
- add 3 357 to {chestitems::*}
- add 1 275 to {chestitems::*}
- add 1 275 to {chestitems::*}
- add 1 258 to {chestitems::*}
- add 1 258 to {chestitems::*}
- add 3 320 to {chestitems::*}
- add 1 366 to {chestitems::*}
- add 1 366 to {chestitems::*}
- add 1 366 to {chestitems::*}
- add 2 360 to {chestitems::*}
- add 2 360 to {chestitems::*}
- add 2 360 to {chestitems::*}
- add 3 366 to {chestitems::*}
- add 1 312 to {chestitems::*}
- add 1 313 to {chestitems::*}
- add 1 399 named "&c+ 1 Herz" to {chestitems::*}
- add 1 399 named "&c+ 2 Herzen" to {chestitems::*}
- add 1 399 named "&c+ 1 Herz" to {chestitems::*}
- add 1 399 named "&c+ 2 Herzen" to {chestitems::*}
- add 1 399 named "&c+ 1 Herz" to {chestitems::*}
- add 1 399 named "&c+ 2 Herzen" to {chestitems::*}
- add 1 399 named "&c+ 1 Herz" to {chestitems::*}
- add 1 399 named "&c+ 2 Herzen" to {chestitems::*}
- add 1 399 named "&c+ 1 Herz" to {chestitems::*}
- add 1 399 named "&c+ 2 Herzen" to {chestitems::*}
- add 1 399 named "&c+ 1 Herz" to {chestitems::*}
- add 1 399 named "&c+ 2 Herzen" to {chestitems::*}
- add 1 399 named "&c+ 1 Herz" to {chestitems::*}
- add 1 399 named "&c+ 2 Herzen" to {chestitems::*}
- add 1 399 named "&c+ 1 Herz" to {chestitems::*}
- add 1 399 named "&c+ 2 Herzen" to {chestitems::*}
- add 1 399 named "&c+ 1 Herz" to {chestitems::*}
- add 1 399 named "&c+ 2 Herzen" to {chestitems::*}
- add 1 399 named "&c+ 1 Herz" to {chestitems::*}
- add 1 399 named "&c+ 2 Herzen" to {chestitems::*}
- add 1 399 named "&c+ 1 Herz" to {chestitems::*}
- add 1 399 named "&c+ 2 Herzen" to {chestitems::*}
- add 1 399 named "&c+ 1 Herz" to {chestitems::*}
- add 1 399 named "&c+ 2 Herzen" to {chestitems::*}
- add 1 354 named "&5G&cL&eÜ&6C&bK&2S&aK&9U&dC&eH&cE&4N" to {chestitems::*}
- add 1 354 named "&5G&cL&eÜ&6C&bK&2S&aK&9U&dC&eH&cE&4N" to {chestitems::*}
- #enderchests
- add 1 306 to {echestitems::*}
- add 1 307 to {echestitems::*}
- add 1 308 to {echestitems::*}
- add 1 309 to {echestitems::*}
- add 1 310 to {echestitems::*}
- add 1 311 to {echestitems::*}
- add 1 312 to {echestitems::*}
- add 1 313 to {echestitems::*}
- set {countdown} to true
- set {state} to "lobby"
- set {CountdownStart} to true
- set {addspawn} to 0
- set {überlebende} to 0
- set {nowalk} to 0
- set {blockspawn.nowalk} to 0
- set {chests} to 0
- set {enderchests} to 0
- set {enderkistenlisteneu} to 0
- loop 10 times:
- add 1 to {enderchests}
- set block at {echest.%{enderchests}%} to air
- set {enderchests} to 0
- chance of 25%:
- add 1 to {enderkistenlisteneu}
- set block at {echest.1} to ender chest
- chance of 25%:
- add 1 to {enderkistenlisteneu}
- set block at {echest.2} to ender chest
- chance of 25%:
- add 1 to {enderkistenlisteneu}
- set block at {echest.3} to ender chest
- chance of 25%:
- add 1 to {enderkistenlisteneu}
- set block at {echest.4} to ender chest
- chance of 25%:
- add 1 to {enderkistenlisteneu}
- set block at {echest.5} to ender chest
- chance of 25%:
- add 1 to {enderkistenlisteneu}
- set block at {echest.6} to ender chest
- chance of 25%:
- add 1 to {enderkistenlisteneu}
- set block at {echest.7} to ender chest
- chance of 25%:
- add 1 to {enderkistenlisteneu}
- set block at {echest.8} to ender chest
- chance of 25%:
- add 1 to {enderkistenlisteneu}
- set block at {echest.9} to ender chest
- chance of 25%:
- add 1 to {enderkistenlisteneu}
- set block at {echest.10} to ender chest
- loop {achests} times:
- add 1 to {chests}
- set block at {chest.%{chests}%} to chest
- execute console command "stopa"
- on right click with 341:
- kick player due to "{@p}&cDu hast das Spiel verlassen!"
- on join:
- execute console command "nte player %player% clear"
- set max health of player to 10
- set {kills.permatch.%player%} to 0
- clear player's inventory
- heal player
- remove Invisibility from the player
- set {überlebenderspieler.%player%} to false
- set hunger of player to 30
- set slot 8 of player to 341 named "&cVerlassen"
- teleport player to {bugteleport}
- wait 4 ticks
- if {state} is "lobby":
- teleport player to {wartelobby}
- set {players.online} to number of all players
- loop all players:
- wipe loop-player's sidebar
- set name of sidebar of loop-player to "&8» &6&lChestGames &8«"
- set score "&d" in sidebar of loop-player to 10
- set score "&7Map" in sidebar of loop-player to 9
- set score "&8● &9Nuketown" in sidebar of loop-player to 8
- set score "&c" in sidebar of loop-player to 7
- set score "&7Online" in sidebar of loop-player to 6
- set score "&8● &a%{players.online}% Spieler" in sidebar of loop-player to 5
- set score "&9" in sidebar of loop-player to 4
- set score "&7Teamspeak" in sidebar of loop-player to 3
- set score "&8● &eNetplays&8.&ede" in sidebar of loop-player to 2
- set score "&7&m--------------" in sidebar of loop-player to 1
- execute console command "/_startcountdown"
- wait 0.5 seconds
- if {countdown} is true:
- send "{@p}&7Es fehlen noch &c%{start.ab.Spieler}-{BowDuell.SpielerAllgeimein}% &7Spieler bis zum Spielstart&8."
- if {state} is "ingame":
- teleport player to {deathmatch.spec.ingame}
- set max health of player to 10
- execute console command "nte player %player% prefix &7"
- execute console command "nte player %player% priority 99"
- apply potion of Invisibility of tier 2 to player for 1500 seconds
- set {überlebenderspieler.%player%} to false
- set hunger of player to 30
- heal player
- hide player from all players
- loop all players:
- execute loop-player command "fix_**_players"
- on place:
- cancel event
- on break:
- cancel event
- on inventory click:
- if {state} is not "Ingame":
- cancel event
- if {überlebenderspieler.%player%} is false:
- cancel event
- on drop:
- if {überlebenderspieler.%player%} is false:
- cancel event
- if {state} is not "Ingame":
- cancel event
- on pickup:
- if {überlebenderspieler.%player%} is false:
- cancel event
- if {state} is not "Ingame":
- cancel event
- on hunger meter change:
- if {überlebenderspieler.%player%} is false:
- cancel event
- if {state} is not "Ingame":
- cancel event
- on damage:
- if {state} is not "Ingame":
- cancel event
- command /chestgames [<text>] [<text>]:
- trigger:
- if arg-1 is not set:
- send "&6Chestgames &e» &7Commands"
- send "&a/chestgames setlobby &7- &fSetzt Wartelobby"
- send "&a/chestgames bugteleport &7- &fSetzt Bugspawn"
- send "&a/chestgames addspawn &7- &fSetzt Gamespawns"
- send "&a/chestgames addnowalk &7- &fSetzt NoWalkBlöcke"
- send "&a/chestgames setdeathmatch <1-12> &7- &fSpawns für Deathmatch"
- send "&a/chestgames setspec <ingame, deathmatch> &7- &fSpecs für Deathmatch"
- send "&a/chestgames setenderchest <1-10> &7- &fSetzt Enderkisten"
- if arg-1 is "bugteleport":
- set {bugteleport} to location of player
- send "{@p}&7Du hast &aBugTeleport &7erfolgreich gesetzt"
- if arg-1 is "setenderchest":
- if arg-2 is "1":
- set {echest.1} to location of player
- set block at {echest.1} to ender chest
- send "{@p}&7Du hast Enderkiste &a%arg-2% &7erfolgreich gesetzt"
- if arg-2 is "2":
- send "{@p}&7Du hast Enderkiste &a%arg-2% &7erfolgreich gesetzt"
- set {echest.2} to location of player
- set block at {echest.2} to ender chest
- if arg-2 is "3":
- send "{@p}&7Du hast Enderkiste &a%arg-2% &7erfolgreich gesetzt"
- set {echest.3} to location of player
- set block at {echest.3} to ender chest
- if arg-2 is "4":
- send "{@p}&7Du hast Enderkiste &a%arg-2% &7erfolgreich gesetzt"
- set {echest.4} to location of player
- set block at {echest.4} to ender chest
- if arg-2 is "5":
- send "{@p}&7Du hast Enderkiste &a%arg-2% &7erfolgreich gesetzt"
- set {echest.5} to location of player
- set block at {echest.5} to ender chest
- if arg-2 is "6":
- send "{@p}&7Du hast Enderkiste &a%arg-2% &7erfolgreich gesetzt"
- set {echest.6} to location of player
- set block at {echest.6} to ender chest
- if arg-2 is "7":
- send "{@p}&7Du hast Enderkiste &a%arg-2% &7erfolgreich gesetzt"
- set {echest.7} to location of player
- set block at {echest.7} to ender chest
- if arg-2 is "8":
- send "{@p}&7Du hast Enderkiste &a%arg-2% &7erfolgreich gesetzt"
- set {echest.8} to location of player
- set block at {echest.8} to ender chest
- if arg-2 is "9":
- send "{@p}&7Du hast Enderkiste &a%arg-2% &7erfolgreich gesetzt"
- set {echest.9} to location of player
- set block at {echest.9} to ender chest
- if arg-2 is "10":
- send "{@p}&7Du hast Enderkiste &a%arg-2% &7erfolgreich gesetzt"
- set {echest.10} to location of player
- set block at {echest.10} to ender chest
- if arg-1 is "setspec":
- if arg-2 is "ingame":
- set {deathmatch.spec.ingame} to location of player
- send "{@p}&7Du hast den &aSpec &7erfolgreich gesetzt"
- if arg-2 is "deathmatch":
- set {deathmatch.spec.deathmatch} to location of player
- send "{@p}&7Du hast den &aSpec &7erfolgreich gesetzt"
- if arg-1 is "setdeathmatch":
- if arg-2 is "1":
- set {deathmatch.1} to location of player
- send "{@p}&7Du hast &a##1. &7erfolgreich gesetzt"
- if arg-2 is "2":
- set {deathmatch.2} to location of player
- send "{@p}&7Du hast &a##2. &7erfolgreich gesetzt"
- if arg-2 is "3":
- set {deathmatch.3} to location of player
- send "{@p}&7Du hast &a##3. &7erfolgreich gesetzt"
- if arg-2 is "4":
- set {deathmatch.4} to location of player
- send "{@p}&7Du hast &a##4. &7erfolgreich gesetzt"
- if arg-2 is "5":
- set {deathmatch.5} to location of player
- send "{@p}&7Du hast &a##5. &7erfolgreich gesetzt"
- if arg-2 is "6":
- set {deathmatch.6} to location of player
- send "{@p}&7Du hast &a##6. &7erfolgreich gesetzt"
- if arg-2 is "7":
- set {deathmatch.7} to location of player
- send "{@p}&7Du hast &a##7. &7erfolgreich gesetzt"
- if arg-2 is "8":
- set {deathmatch.8} to location of player
- send "{@p}&7Du hast &a##8. &7erfolgreich gesetzt"
- if arg-2 is "9":
- set {deathmatch.9} to location of player
- send "{@p}&7Du hast &a##9. &7erfolgreich gesetzt"
- if arg-2 is "10":
- set {deathmatch.10} to location of player
- send "{@p}&7Du hast &a##10. &7erfolgreich gesetzt"
- if arg-2 is "11":
- set {deathmatch.11} to location of player
- send "{@p}&7Du hast &a##11. &7erfolgreich gesetzt"
- if arg-2 is "12":
- set {deathmatch.12} to location of player
- send "{@p}&7Du hast &a##12. &7erfolgreich gesetzt"
- if arg-1 is "addspawn":
- if {addspawn} is bigger than 11:
- send "{@p}&cEs können nur bis zu ##12 Spawns gesetzt werden"
- else:
- add 1 to {addspawn}
- set {chestgames.spawn.%{addspawn}%} to location of player
- send "{@p}&7Du hast &a##%{addspawn}%. &7erfolgreich gesetzt"
- if arg-1 is "setlobby":
- set {wartelobby} to location of player
- send "{@p}&7Du hast die &aWartelobby &7gesetzt"
- if arg-1 is "addnowalk":
- if {nowalk} is bigger than 11:
- send "{@p}&cEs können nur bis zu ##12 NoWalk gesetzt werden"
- else:
- add 1 to {nowalk}
- send "{@p}&aDu hast setzt nun alle Block-Spawns vom &e%{nowalk}%. &aSpawn"
- wait 3 seconds
- play "click" to player at volume 100
- add 1 to {blockspawn.nowalk}
- send "{@p}&7Du hast die &a##%{blockspawn.nowalk}%. &7Block-Location gesetzt"
- set {chestgames.nowalk.%{blockspawn.nowalk}%} to location of player
- wait 3 seconds
- play "click" to player at volume 100
- add 1 to {blockspawn.nowalk}
- send "{@p}&7Du hast die &a##%{blockspawn.nowalk}%. &7Block-Location gesetzt"
- set {chestgames.nowalk.%{blockspawn.nowalk}%} to location of player
- wait 3 seconds
- play "click" to player at volume 100
- add 1 to {blockspawn.nowalk}
- send "{@p}&7Du hast die &a##%{blockspawn.nowalk}%. &7Block-Location gesetzt"
- set {chestgames.nowalk.%{blockspawn.nowalk}%} to location of player
- wait 3 seconds
- play "click" to player at volume 100
- add 1 to {blockspawn.nowalk}
- send "{@p}&7Du hast die &a##%{blockspawn.nowalk}%. &7Block-Location gesetzt"
- set {chestgames.nowalk.%{blockspawn.nowalk}%} to location of player
- wait 3 seconds
- play "click" to player at volume 100
- add 1 to {blockspawn.nowalk}
- send "{@p}&7Du hast die &a##%{blockspawn.nowalk}%. &7Block-Location gesetzt"
- set {chestgames.nowalk.%{blockspawn.nowalk}%} to location of player
- wait 3 seconds
- play "click" to player at volume 100
- add 1 to {blockspawn.nowalk}
- send "{@p}&7Du hast die &a##%{blockspawn.nowalk}%. &7Block-Location gesetzt"
- set {chestgames.nowalk.%{blockspawn.nowalk}%} to location of player
- wait 3 seconds
- play "click" to player at volume 100
- add 1 to {blockspawn.nowalk}
- send "{@p}&7Du hast die &a##%{blockspawn.nowalk}%. &7Block-Location gesetzt"
- set {chestgames.nowalk.%{blockspawn.nowalk}%} to location of player
- wait 3 seconds
- play "click" to player at volume 100
- add 1 to {blockspawn.nowalk}
- send "{@p}&7Du hast die &a##%{blockspawn.nowalk}%. &7Block-Location gesetzt"
- set {chestgames.nowalk.%{blockspawn.nowalk}%} to location of player
- wait 3 seconds
- add 1 to {blockspawn.nowalk}
- send "{@p}&7Du hast die &a##%{blockspawn.nowalk}%. &7Block-Location gesetzt"
- set {chestgames.nowalk.%{blockspawn.nowalk}%} to location of player
- play sound "NOTE_Pling " to player with volume 100.0 and pitch 15
- command /start:
- permission: nick.use
- permission message: {@p}&cDazu hast du keine Rechte
- trigger:
- set {start.ab.Spieler} to 4
- set {BowDuell.SpielerAllgeimein} to number of players in world "{@world}"
- if {BowDuell.SpielerAllgeimein} is bigger than 1:
- if {Countdown.BW} is bigger than 5:
- set {start} to true
- if {startcommand} is true:
- set {startcommand} to false
- set {countdown} to false
- wait 0.1 seconds
- set {Countdown1.BW} to 6
- send "{@p}&7Du hast das &fSpiel &7gestartet&8."
- loop 6 times:
- if {state} is "lobby":
- if {startcommand} is false:
- set {BowDuell.SpielerAllgeimein} to number of players in world "{@world}"
- if {BowDuell.SpielerAllgeimein} is bigger than 1:
- wait 1 seconds
- remove 1 from {Countdown1.BW}
- if {start} is true:
- if {Countdown1.BW} is 5:
- loop all players:
- play "click" to loop-player with volume 100.0 and pitch 5
- broadcast "{@p}&7Die Runde startet in &f%{Countdown1.BW}% &7Sekunden&8." in "{@world}"
- if {Countdown1.BW} is 4:
- loop all players:
- play "click" to loop-player with volume 100.0 and pitch 5
- broadcast "{@p}&7Die Runde startet in &f%{Countdown1.BW}% &7Sekunden&8." in "{@world}"
- if {Countdown1.BW} is 3:
- loop all players:
- play "click" to loop-player with volume 100.0 and pitch 5
- broadcast "{@p}&7Die Runde startet in &f%{Countdown1.BW}% &7Sekunden&8." in "{@world}"
- if {Countdown1.BW} is 2:
- loop all players:
- play "click" to loop-player with volume 100.0 and pitch 5
- broadcast "{@p}&7Die Runde startet in &f%{Countdown1.BW}% &7Sekunden&8." in "{@world}"
- if {Countdown1.BW} is 1:
- loop all players:
- play "click" to loop-player with volume 100.0 and pitch 5
- broadcast "{@p}&7Die Runde startet in &f%{Countdown1.BW}% &7Sekunde&8." in "{@world}"
- if {Countdown1.BW} is 0:
- set {BowDuell.SpielerAllgeimein} to number of players in world "{@world}"
- if {BowDuell.SpielerAllgeimein} is bigger than 1:
- set {state} to "Ingame"
- execute console command "switchstate"
- broadcast "{@p}&7Alle Spieler werden in die &fArena &7teleportiert&8." in "{@world}"
- set {_addspawn} to 0
- set {blockspawn.nowalk} to 0
- loop 200 times:
- add 1 to {blockspawn.nowalk}
- set block at {chestgames.nowalk.%{blockspawn.nowalk}%} to 95:7
- loop all players:
- add 1 to {_addspawn}
- teleport loop-player to {chestgames.spawn.%{_addspawn}%}
- play sound "enderman_teleport" to loop-players with volume 100.0 and pitch 15
- clear loop-player's inventory
- set max health of loop-player to 5
- set {health.%loop-player%} to 5
- add 1 to {_addspawn}
- add 1 to {überlebende}
- set {überlebenderspieler.%loop-player%} to true
- wait 1 seconds
- loop all players:
- execute console command "stats addplayedgames %loop-player%"
- give loop-player 1 271 named "&6Holzaxt"
- give loop-player 5 297 named "&6Brot"
- loop all players:
- wipe loop-player's sidebar
- set name of sidebar of loop-player to "&8» &6&lChestGames &8«"
- set score "&9" in sidebar of loop-player to 10
- set score "&7Karte" in sidebar of loop-player to 9
- set score "&8● &9Nuketown" in sidebar of loop-player to 8
- set score "&b" in sidebar of loop-player to 7
- set score "&7Spieler" in sidebar of loop-player to 6
- set score "&8● &a%{überlebende}%" in sidebar of loop-player to 5
- set score "&d" in sidebar of loop-player to 4
- set score "&7Kills" in sidebar of loop-player to 3
- set score "&8● &e%{kills.permatch.%loop-player%}%" in sidebar of loop-player to 2
- set score "&7&m--------------" in sidebar of loop-player to 1
- wait 2 seconds
- if {state} is "ingame":
- set {blockspawn.nowalk} to 0
- loop all players:
- send loop-player title "&e3" for 1 seconds
- play sound "click" to all players with volume 100.0 and pitch 5
- loop 200 times:
- add 1 to {blockspawn.nowalk}
- set block at {chestgames.nowalk.%{blockspawn.nowalk}%} to 95:4
- wait 1 seconds
- if {state} is "ingame":
- set {blockspawn.nowalk} to 0
- play sound "click" to all players with volume 100.0 and pitch 5
- loop all players:
- send loop-player title "&22" for 1 seconds
- loop 200 times:
- add 1 to {blockspawn.nowalk}
- set block at {chestgames.nowalk.%{blockspawn.nowalk}%} to 95:13
- wait 1 seconds
- if {state} is "ingame":
- set {blockspawn.nowalk} to 0
- play sound "click" to all players with volume 100.0 and pitch 5
- loop all players:
- send loop-player title "&a1" for 1 seconds
- loop 200 times:
- add 1 to {blockspawn.nowalk}
- set block at {chestgames.nowalk.%{blockspawn.nowalk}%} to 95:5
- wait 1 seconds
- if {state} is "ingame":
- set {blockspawn.nowalk} to 0
- play sound "wood_click" to all players with volume 100.0 and pitch 5
- loop all players:
- send loop-player title "&aGO!" for 0.5 seconds
- if {überlebenderspieler.%loop-player%} is true:
- set hunger of loop-player to 30
- loop 200 times:
- add 1 to {blockspawn.nowalk}
- set block at {chestgames.nowalk.%{blockspawn.nowalk}%} to air
- if {state} is "ingame":
- loop 10 times:
- if {state} is "ingame":
- wait 2 seconds
- else:
- stop
- broadcast "{@p}&7Das &fDeathmatch &7startet in &f2 &7Minuten&8."
- play sound "click" to all players with volume 100.0 and pitch 5
- loop 30 times:
- if {state} is "ingame":
- wait 2 seconds
- else:
- stop
- broadcast "{@p}&7Das &fDeathmatch &7startet in &f1 &7Minute&8."
- play sound "click " to all players with volume 100.0 and pitch 5
- loop 25 times:
- if {state} is "ingame":
- wait 2 seconds
- else:
- stop
- broadcast "{@p}&7Das &fDeathmatch &7startet in &f10 &7Sekunden&8."
- play sound "click" to all players with volume 100.0 and pitch 5
- loop 7 times:
- if {state} is "ingame":
- wait 1 seconds
- else:
- stop
- if {tasdffds} is not set:
- if {state} is "ingame":
- broadcast "{@p}&7Das &fDeathmatch &7startet in &f3 &7Sekunden&8."
- play sound "click" to all players with volume 100.0 and pitch 5
- else:
- stop
- wait 1 seconds
- if {tasdffds} is not set:
- if {state} is "ingame":
- broadcast "{@p}&7Das &fDeathmatch &7startet in &f2 &7Sekunden&8."
- play sound "click" to all players with volume 100.0 and pitch 5
- else:
- stop
- wait 1 seconds
- if {tasdffds} is not set:
- if {state} is "ingame":
- broadcast "{@p}&7Das &fDeathmatch &7startet in &f1 &7Sekunde&8."
- play sound "click" to all players with volume 100.0 and pitch 5
- else:
- stop
- wait 1 seconds
- if {tasdffds} is not set:
- if {state} is "ingame":
- broadcast "{@p}&7Alle Spieler werden nun in die &fDeathmatch Arena &7teleportiert&8."
- play sound "NOTE_pling" to all players with volume 100.0 and pitch 15
- set {TIMEtoDAY} to 0
- loop all players:
- if {überlebenderspieler.%loop-player%} is true:
- add 1 to {TIMEtoDAY}
- teleport loop-player to {deathmatch.%{TIMEtoDAY}%}
- else:
- teleport loop-player to {deathmatch.spec.deathmatch}
- loop all players:
- send loop-player title "&aDas Deathmatch" with subtitle "&abeginnt" for 2 seconds
- else:
- stop
- wait 2 seconds
- if {state} is "ingame":
- loop 30 times:
- if {state} is "ingame":
- wait 2 seconds
- else:
- stop
- loop 30 times:
- if {state} is "ingame":
- wait 2 seconds
- else:
- stop
- loop 30 times:
- if {state} is "ingame":
- wait 2 seconds
- else:
- stop
- broadcast "{@p}&7Das Spiel &fendet &7in &f1 &7Minute&8."
- play sound "click" to all players with volume 100.0 and pitch 5
- loop 25 times:
- if {state} is "ingame":
- wait 2 seconds
- else:
- stop
- broadcast "{@p}&7Das Spiel &fendet &7in &f10 &7Sekunden&8."
- play sound "click" to all players with volume 100.0 and pitch 5
- loop 7 times:
- if {state} is "ingame":
- wait 1 seconds
- else:
- stop
- if {tasdffds} is not set:
- if {state} is "ingame":
- broadcast "{@p}&7Das Spiel &fendet &7in &f3 &7Sekunden&8."
- play sound "click" to all players with volume 100.0 and pitch 5
- else:
- stop
- wait 1 seconds
- if {tasdffds} is not set:
- if {state} is "ingame":
- broadcast "{@p}&7Das Spiel &fendet &7in &f2 &7Sekunden&8."
- play sound "click" to all players with volume 100.0 and pitch 5
- else:
- stop
- wait 1 seconds
- if {tasdffds} is not set:
- if {state} is "ingame":
- broadcast "{@p}&7Das Spiel &fendet &7in &f1 &7Sekunde&8."
- play sound "click" to all players with volume 100.0 and pitch 5
- else:
- stop
- wait 1 seconds
- if {tasdffds} is not set:
- if {state} is "ingame":
- broadcast "{@p}&eDas Spiel ist vorbei&8. &eUnentschieden&8!"
- loop all players:
- send loop-player title "&eUnentschieden" for 2 seconds
- set {state} to "End"
- loop all players:
- clear loop-players inventory
- set loop-player's flight mode to false
- reveal the loop-player from all players
- execute console command "nte player %loop-player% clear"
- remove Invisibility from the loop-player
- teleport all players to {wartelobby}
- play sound "IRONGOLEM_DEATH" to all players with volume 100.0 and pitch 15
- wait 10 seconds
- play sound "click" to all players with volume 100.0 and pitch 5
- broadcast "{@p}&7Der Server stoppt &7in &f3 &7Sekunden&8."
- wait 1 seconds
- play sound "click" to all players with volume 100.0 and pitch 5
- broadcast "{@p}&7Der Server stoppt &7in &f2 &7Sekunden&8."
- wait 1 seconds
- play sound "click" to all players with volume 100.0 and pitch 5
- broadcast "{@p}&7Der Server stoppt &7in &f1 &7Sekunde&8."
- wait 1 seconds
- execute console command "configurate"
- else:
- stop
- else:
- set {countdown} to true
- set {start} to false
- set {startcommand} to true
- else:
- set {countdown} to true
- set {start} to false
- set {startcommand} to true
- else:
- send "{@p}&cDas Spiel &fstartet &7bereits&8."
- else:
- send "{@p}&cDu kannst nicht mehr starten&8."
- else:
- send "{@p}&cDu kannst noch nicht &fstarten&8."
- command /_startcountdown:
- trigger:
- set {start.ab.Spieler} to 4
- set {BowDuell.SpielerAllgeimein} to number of players in world "{@world}"
- if {BowDuell.SpielerAllgeimein} is bigger than 1:
- if {countdown} is true:
- set {countdown} to false
- wait 0.1 seconds
- set {Countdown.BW} to 31
- loop 31 times:
- if {state} is "lobby":
- if {CountdownStart} is true:
- set {BowDuell.SpielerAllgeimein} to number of players in world "{@world}"
- if {BowDuell.SpielerAllgeimein} is bigger than 1:
- remove 1 from {Countdown.BW}
- if {start} is false:
- wait 1 seconds
- if {Countdown.BW} is 30:
- loop all players:
- play "click" to loop-player with volume 100.0 and pitch 5
- broadcast "{@p}&7Die Runde startet in &f%{Countdown.BW}% &7Sekunden&8." in "{@world}"
- if {Countdown.BW} is 15:
- loop all players:
- play "click" to loop-player with volume 100.0 and pitch 5
- broadcast "{@p}&7Die Runde startet in &f%{Countdown.BW}% &7Sekunden&8." in "{@world}"
- if {Countdown.BW} is 10:
- loop all players:
- play "click" to loop-player with volume 100.0 and pitch 5
- broadcast "{@p}&7Die Runde startet in &f%{Countdown.BW}% &7Sekunden&8." in "{@world}"
- if {Countdown.BW} is 5:
- loop all players:
- play "click" to loop-player with volume 100.0 and pitch 5
- broadcast "{@p}&7Die Runde startet in &f%{Countdown.BW}% &7Sekunden&8." in "{@world}"
- if {Countdown.BW} is 4:
- loop all players:
- play "click" to loop-player with volume 100.0 and pitch 5
- broadcast "{@p}&7Die Runde startet in &f%{Countdown.BW}% &7Sekunden&8." in "{@world}"
- if {Countdown.BW} is 3:
- loop all players:
- play "click" to loop-player with volume 100.0 and pitch 5
- broadcast "{@p}&7Die Runde startet in &f%{Countdown.BW}% &7Sekunden&8." in "{@world}"
- if {Countdown.BW} is 2:
- loop all players:
- play "click" to loop-player with volume 100.0 and pitch 5
- broadcast "{@p}&7Die Runde startet in &f%{Countdown.BW}% &7Sekunden&8." in "{@world}"
- if {Countdown.BW} is 1:
- loop all players:
- play "click" to loop-player with volume 100.0 and pitch 5
- broadcast "{@p}&7Die Runde startet in &f%{Countdown.BW}% &7Sekunde&8." in "{@world}"
- if {Countdown.BW} is 0:
- set {BowDuell.SpielerAllgeimein} to number of players in world "{@world}"
- if {BowDuell.SpielerAllgeimein} is bigger than 1:
- set {state} to "Ingame"
- execute console command "switchstate"
- broadcast "{@p}&7Alle Spieler werden in die &fArena &7teleportiert&8." in "{@world}"
- set {_addspawn} to 0
- set {blockspawn.nowalk} to 0
- loop 200 times:
- add 1 to {blockspawn.nowalk}
- set block at {chestgames.nowalk.%{blockspawn.nowalk}%} to 95:7
- loop all players:
- add 1 to {_addspawn}
- teleport loop-player to {chestgames.spawn.%{_addspawn}%}
- clear loop-player's inventory
- play sound "enderman_teleport" to loop-players with volume 100.0 and pitch 15
- set max health of loop-player to 5
- set {health.%loop-player%} to 5
- add 1 to {_addspawn}
- add 1 to {überlebende}
- set {überlebenderspieler.%loop-player%} to true
- wait 1 seconds
- loop all players:
- execute console command "stats addplayedgames %loop-player%"
- give loop-player 1 271 named "&6Holzaxt"
- give loop-player 5 297 named "&6Brot"
- loop all players:
- wipe loop-player's sidebar
- set name of sidebar of loop-player to "&8» &6&lChestGames &8«"
- set score "&9" in sidebar of loop-player to 10
- set score "&7Karte" in sidebar of loop-player to 9
- set score "&8● &9Nuketown" in sidebar of loop-player to 8
- set score "&b" in sidebar of loop-player to 7
- set score "&7Spieler" in sidebar of loop-player to 6
- set score "&8● &a%{überlebende}%" in sidebar of loop-player to 5
- set score "&d" in sidebar of loop-player to 4
- set score "&7Kills" in sidebar of loop-player to 3
- set score "&8● &e%{kills.permatch.%loop-player%}%" in sidebar of loop-player to 2
- set score "&7&m--------------" in sidebar of loop-player to 1
- wait 2 seconds
- if {state} is "ingame":
- set {blockspawn.nowalk} to 0
- loop all players:
- send loop-player title "&e3" for 1 seconds
- play sound "click" to all players with volume 100.0 and pitch 5
- loop 200 times:
- add 1 to {blockspawn.nowalk}
- set block at {chestgames.nowalk.%{blockspawn.nowalk}%} to 95:4
- wait 1 seconds
- if {state} is "ingame":
- set {blockspawn.nowalk} to 0
- play sound "click" to all players with volume 100.0 and pitch 5
- loop all players:
- send loop-player title "&22" for 1 seconds
- loop 200 times:
- add 1 to {blockspawn.nowalk}
- set block at {chestgames.nowalk.%{blockspawn.nowalk}%} to 95:13
- wait 1 seconds
- if {state} is "ingame":
- set {blockspawn.nowalk} to 0
- play sound "click" to all players with volume 100.0 and pitch 5
- loop all players:
- send loop-player title "&a1" for 1 seconds
- loop 200 times:
- add 1 to {blockspawn.nowalk}
- set block at {chestgames.nowalk.%{blockspawn.nowalk}%} to 95:5
- wait 1 seconds
- if {state} is "ingame":
- set {blockspawn.nowalk} to 0
- play sound "wood_click" to all players with volume 100.0 and pitch 5
- loop all players:
- send loop-player title "&aGO!" for 0.5 seconds
- if {überlebenderspieler.%loop-player%} is true:
- set hunger of loop-player to 30
- loop 200 times:
- add 1 to {blockspawn.nowalk}
- set block at {chestgames.nowalk.%{blockspawn.nowalk}%} to air
- if {state} is "ingame":
- loop 10 times:
- if {state} is "ingame":
- wait 2 seconds
- else:
- stop
- broadcast "{@p}&7Das &fDeathmatch &7startet in &f2 &7Minuten&8."
- play sound "click" to all players with volume 100.0 and pitch 5
- loop 30 times:
- if {state} is "ingame":
- wait 2 seconds
- else:
- stop
- broadcast "{@p}&7Das &fDeathmatch &7startet in &f1 &7Minute&8."
- play sound "click " to all players with volume 100.0 and pitch 5
- loop 25 times:
- if {state} is "ingame":
- wait 2 seconds
- else:
- stop
- broadcast "{@p}&7Das &fDeathmatch &7startet in &f10 &7Sekunden&8."
- play sound "click" to all players with volume 100.0 and pitch 5
- loop 7 times:
- if {state} is "ingame":
- wait 1 seconds
- else:
- stop
- if {tasdffds} is not set:
- if {state} is "ingame":
- broadcast "{@p}&7Das &fDeathmatch &7startet in &f3 &7Sekunden&8."
- play sound "click" to all players with volume 100.0 and pitch 5
- else:
- stop
- wait 1 seconds
- if {tasdffds} is not set:
- if {state} is "ingame":
- broadcast "{@p}&7Das &fDeathmatch &7startet in &f2 &7Sekunden&8."
- play sound "click" to all players with volume 100.0 and pitch 5
- else:
- stop
- wait 1 seconds
- if {tasdffds} is not set:
- if {state} is "ingame":
- broadcast "{@p}&7Das &fDeathmatch &7startet in &f1 &7Sekunde&8."
- play sound "click" to all players with volume 100.0 and pitch 5
- else:
- stop
- wait 1 seconds
- if {tasdffds} is not set:
- if {state} is "ingame":
- broadcast "{@p}&7Alle Spieler werden nun in die &fDeathmatch Arena &7teleportiert&8."
- play sound "NOTE_pling" to all players with volume 100.0 and pitch 15
- set {TIMEtoDAY} to 0
- loop all players:
- if {überlebenderspieler.%loop-player%} is true:
- add 1 to {TIMEtoDAY}
- teleport loop-player to {deathmatch.%{TIMEtoDAY}%}
- else:
- teleport loop-player to {deathmatch.spec.deathmatch}
- loop all players:
- send loop-player title "&aDas Deathmatch" with subtitle "&abeginnt" for 2 seconds
- else:
- stop
- wait 2 seconds
- if {state} is "ingame":
- loop 30 times:
- if {state} is "ingame":
- wait 2 seconds
- else:
- stop
- loop 30 times:
- if {state} is "ingame":
- wait 2 seconds
- else:
- stop
- loop 30 times:
- if {state} is "ingame":
- wait 2 seconds
- else:
- stop
- broadcast "{@p}&7Das Spiel &fendet &7in &f1 &7Minute&8."
- play sound "click" to all players with volume 100.0 and pitch 5
- loop 25 times:
- if {state} is "ingame":
- wait 2 seconds
- else:
- stop
- broadcast "{@p}&7Das Spiel &fendet &7in &f10 &7Sekunden&8."
- play sound "click" to all players with volume 100.0 and pitch 5
- loop 7 times:
- if {state} is "ingame":
- wait 1 seconds
- else:
- stop
- if {tasdffds} is not set:
- if {state} is "ingame":
- broadcast "{@p}&7Das Spiel &fendet &7in &f3 &7Sekunden&8."
- play sound "click" to all players with volume 100.0 and pitch 5
- else:
- stop
- wait 1 seconds
- if {tasdffds} is not set:
- if {state} is "ingame":
- broadcast "{@p}&7Das Spiel &fendet &7in &f2 &7Sekunden&8."
- play sound "click" to all players with volume 100.0 and pitch 5
- else:
- stop
- wait 1 seconds
- if {tasdffds} is not set:
- if {state} is "ingame":
- broadcast "{@p}&7Das Spiel &fendet &7in &f1 &7Sekunde&8."
- play sound "click" to all players with volume 100.0 and pitch 5
- else:
- stop
- wait 1 seconds
- if {tasdffds} is not set:
- if {state} is "ingame":
- broadcast "{@p}&eDas Spiel ist vorbei&8. &eUnentschieden&8!"
- loop all players:
- send loop-player title "&eUnentschieden" for 2 seconds
- set {state} to "End"
- loop all players:
- set loop-player's flight mode to false
- reveal the loop-player from all players
- execute console command "nte player %loop-player% clear"
- remove Invisibility from the loop-player
- clear loop-players inventory
- teleport all players to {wartelobby}
- play sound "IRONGOLEM_DEATH" to all players with volume 100.0 and pitch 15
- wait 10 seconds
- play sound "click" to all players with volume 100.0 and pitch 5
- broadcast "{@p}&7Der Server stoppt &7in &f3 &7Sekunden&8."
- wait 1 seconds
- play sound "click" to all players with volume 100.0 and pitch 5
- broadcast "{@p}&7Der Server stoppt &7in &f2 &7Sekunden&8."
- wait 1 seconds
- play sound "click" to all players with volume 100.0 and pitch 5
- broadcast "{@p}&7Der Server stoppt &7in &f1 &7Sekunde&8."
- wait 1 seconds
- execute console command "configurate"
- else:
- stop
- else:
- set {countdown} to true
- stop
- else:
- set {countdown} to true
- stop
- every 20 seconds:
- if {state} is "Lobby":
- if {countdown} is true:
- broadcast "{@p}&7Es fehlen noch &c%{start.ab.Spieler}-{BowDuell.SpielerAllgeimein}% &7Spieler bis zum Spielstart&8."
- on damage:
- if {überlebenderspieler.%attacker%} is false:
- cancel event
- if {überlebenderspieler.%victim%} is false:
- cancel event
- on death:
- if victim is a player:
- if {state} is "Ingame":
- set death message to ""
- if {Angriff.%attacker%.%victim%} is not set:
- broadcast "{@p}&c%victim% ist gestorben"
- if {Angriff.%attacker%.%victim%} is false:
- broadcast "{@p}&c%victim% ist gestorben"
- if {Angriff.%attacker%.%victim%} is true:
- play "level_up" to attacker at volume 1000
- broadcast "{@p}&c%victim% &7wurde von &a%attacker% &7getötet"
- if {überlebenderspieler.%victim%} is true:
- execute console command "stats adddeaths %victim%"
- add 1 to {kills.permatch.%attacker%}
- execute console command "stats addkills %attacker%"
- set max health of victim to 10
- execute console command "nte player %player% prefix &4✖ &8┃ &7"
- execute console command "nte player %player% priority 99"
- apply potion of Invisibility of tier 1 to victim for 1500 seconds
- set {überlebenderspieler.%victim%} to false
- set hunger of victim to 30
- show mobspawner flames at victim
- heal victim
- remove 1 from {überlebende}
- hide victim from all players
- delete {playerlist::%victim%}
- loop all players:
- wipe loop-player's sidebar
- set name of sidebar of loop-player to "&8» &6&lChestGames &8«"
- set score "&9" in sidebar of loop-player to 10
- set score "&7Karte" in sidebar of loop-player to 9
- set score "&8● &9Nuketown" in sidebar of loop-player to 8
- set score "&b" in sidebar of loop-player to 7
- set score "&7Spieler" in sidebar of loop-player to 6
- set score "&8● &a%{überlebende}%" in sidebar of loop-player to 5
- set score "&d" in sidebar of loop-player to 4
- set score "&7Kills" in sidebar of loop-player to 3
- set score "&8● &e%{kills.permatch.%loop-player%}%" in sidebar of loop-player to 2
- set score "&7&m--------------" in sidebar of loop-player to 1
- loop all players:
- execute loop-player command "fix_**_players"
- if {überlebende} is 1:
- loop all players:
- wipe loop-player's sidebar
- set name of sidebar of loop-player to "&8» &6&lChestGames &8«"
- set score "&9" in sidebar of loop-player to 7
- set score "&7Karte" in sidebar of loop-player to 6
- set score "&8● &9Nuketown" in sidebar of loop-player to 5
- set score "&d" in sidebar of loop-player to 4
- set score "&7Kills" in sidebar of loop-player to 3
- set score "&8● &e%{kills.permatch.%loop-player%}%" in sidebar of loop-player to 2
- set score "&7&m--------------" in sidebar of loop-player to 1
- loop all players:
- set loop-player's flight mode to false
- reveal the loop-player from all players
- execute console command "nte player %loop-player% clear"
- remove Invisibility from the loop-player
- clear loop-player's inventory
- loop all players:
- if {überlebenderspieler.%loop-player%} is true:
- set {überlebenderspieler.%loop-player%} to false
- loop all players:
- execute console command "stats addwins %loop-player%"
- teleport all players to {wartelobby}
- play "level_up" to all players at volume 1000
- broadcast "&8&m---------------------------------------------"
- broadcast "&f"
- broadcast "{@p}&a%loop-player% &7hat das Spiel &fgewonnen&8."
- broadcast "&d"
- broadcast "&f&8&m---------------------------------------------"
- send all players title "&a%loop-player%" with subtitle "&fhat das Spiel gewonnen" for 3 seconds
- set {state} to "End"
- launch flickering ball firework colored white and red at loop-player's location timed 1.5
- launch flickering ball firework colored blue and green at loop-player's location timed 1.8
- launch flickering ball firework colored yellow and red at loop-player's location timed 2.0
- wait 10 seconds
- play sound "click" to all players with volume 100.0 and pitch 5
- broadcast "{@p}&7Der Server stoppt &7in &f3 &7Sekunden&8."
- wait 1 seconds
- play sound "click" to all players with volume 100.0 and pitch 5
- broadcast "{@p}&7Der Server stoppt &7in &f2 &7Sekunden&8."
- wait 1 seconds
- play sound "click" to all players with volume 100.0 and pitch 5
- broadcast "{@p}&7Der Server stoppt &7in &f1 &7Sekunde&8."
- wait 1 seconds
- execute console command "configurate"
- command /asdffddfsadfaf:
- trigger:
- set player's flight mode to true
- reveal the player from all players
- command /fix_**_players:
- trigger:
- if {überlebenderspieler.%player%} is false:
- loop all players:
- if {überlebenderspieler.%loop-player%} is false:
- set player's flight mode to true
- reveal loop-player from player
- on right click on chest:
- if {überlebenderspieler.%player%} is false:
- cancel event
- stop
- if {state} is not "Ingame":
- cancel event
- stop
- play sound "CHEST_OPEN" to player with volume 100.0 and pitch 15
- cancel event
- set event-block to air
- add 1 to {achests}
- add 1 to {chests}
- set {chest.%{chests}%} to location of event-block
- chance of 100%:
- set {random_item_aus_chest} to random element of {chestitems::*}
- drop {random_item_aus_chest} above {chest.%{chests}%}
- chance of 50%:
- set {random_item_aus_chest} to random element of {chestitems::*}
- drop {random_item_aus_chest} above {chest.%{chests}%}
- chance of 50%:
- set {random_item_aus_chest} to random element of {chestitems::*}
- drop {random_item_aus_chest} above {chest.%{chests}%}
- chance of 50%:
- set {random_item_aus_chest} to random element of {chestitems::*}
- drop {random_item_aus_chest} above {chest.%{chests}%}
- chance of 50%:
- set {random_item_aus_chest} to random element of {chestitems::*}
- drop {random_item_aus_chest} above {chest.%{chests}%}
- on right click on 130:
- if {überlebenderspieler.%player%} is false:
- cancel event
- stop
- if {state} is not "Ingame":
- cancel event
- stop
- play sound "FIREWORK_BLAST " to player with volume 100.0 and pitch 15
- cancel event
- set event-block to air
- set {random_item_aus_echest} to random element of {echestitems::*}
- drop {random_item_aus_echest} at event-block
- on right click with 399:
- if name of player's held item is "&c+ 1 Herz":
- apply Regeneration 4 to player for 0.7 seconds
- add 1 to {health.%player%}
- set max health of player to {health.%player%}
- remove 399 named "&c+ 1 Herz" from player's inventory
- play sound "LEVEL_UP" to player with volume 100.0 and pitch 15
- if name of player's held item is "&c+ 2 Herzen":
- apply Regeneration 4 to player for 1.4 seconds
- add 2 to {health.%player%}
- set max health of player to {health.%player%}
- remove 399 named "&c+ 2 Herzen" from player's inventory
- play sound "LEVEL_UP" to player with volume 100.0 and pitch 15
- on right click with cake:
- remove cake from player's inventory
- play sound "click" to player with volume 100.0 and pitch 15
- chance of 25%:
- apply Regeneration 2 to player for 7 seconds
- send player title "&aRegeneration" for 1 seconds
- stop
- chance of 25%:
- send player title "&aSpeed" for 1 seconds
- apply speed 2 to player for 7 seconds
- stop
- chance of 25%:
- apply Strength 1 to player for 5 seconds
- send player title "&aStärke" for 1 seconds
- stop
- chance of 25%:
- send player title "&cLangsamkeit" for 1 seconds
- apply slowness 2 to player for 7 seconds
- stop
- chance of 25%:
- send player title "&aSprungkraft" for 1 seconds
- apply jump 2 to player for 7 seconds
- stop
- chance of 25%:
- send player title "&cÜbelkeit" for 1 seconds
- apply nausea 14 to player for 7 seconds
- stop
- send player title "&cBlindheit" for 1 seconds
- apply blindness 5 to player for 5 seconds
- on damage:
- if attacker is a player:
- if attacker is not "%victim%":
- loop 53 times:
- set {Angreifer.%victim%} to attacker
- wait 0.0625 second
- set {Angriff.%attacker%.%victim%} to true
- set {Angriff.%attacker%.%victim%} to false
- clear {Angreifer.%victim%}
- stop
- # QUIT EVENT
- on quit:
- if {state} is "Ingame":
- if {überlebenderspieler.%player%} is true:
- broadcast "{@p}&7%player% hat das Spiel &cverlassen"
- execute console command "stats adddeaths %player%"
- set {überlebenderspieler.%player} to false
- remove 1 from {überlebende}
- loop all players:
- wipe loop-player's sidebar
- set name of sidebar of loop-player to "&8» &6&lChestGames &8«"
- set score "&9" in sidebar of loop-player to 10
- set score "&7Karte" in sidebar of loop-player to 9
- set score "&8● &9Nuketown" in sidebar of loop-player to 8
- set score "&b" in sidebar of loop-player to 7
- set score "&7Spieler" in sidebar of loop-player to 6
- set score "&8● &a%{überlebende}%" in sidebar of loop-player to 5
- set score "&d" in sidebar of loop-player to 4
- set score "&7Kills" in sidebar of loop-player to 3
- set score "&8● &e%{kills.permatch.%loop-player%}%" in sidebar of loop-player to 2
- set score "&7&m--------------" in sidebar of loop-player to 1
- if {überlebende} is 1:
- wait 0.3 seconds
- loop all players:
- wipe loop-player's sidebar
- set name of sidebar of loop-player to "&8» &6&lChestGames &8«"
- set score "&9" in sidebar of loop-player to 7
- set score "&7Karte" in sidebar of loop-player to 6
- set score "&8● &9Nuketown" in sidebar of loop-player to 5
- set score "&d" in sidebar of loop-player to 4
- set score "&7Kills" in sidebar of loop-player to 3
- set score "&8● &e%{kills.permatch.%loop-player%}%" in sidebar of loop-player to 2
- set score "&7&m--------------" in sidebar of loop-player to 1
- loop all players:
- set loop-player's flight mode to false
- reveal the loop-player from all players
- execute console command "nte player %loop-player% clear"
- remove Invisibility from the loop-player
- clear loop-player's inventory
- loop all players:
- if {überlebenderspieler.%loop-player%} is true:
- set {überlebenderspieler.%loop-player%} to false
- loop all players:
- execute console command "stats addwins %loop-player%"
- teleport all players to {wartelobby}
- play "level_up" to all players at volume 1000
- broadcast "&8&m---------------------------------------------"
- broadcast "&f"
- broadcast "{@p}&a%loop-player% &7hat das Spiel &fgewonnen&8."
- broadcast "&d"
- broadcast "&f&8&m---------------------------------------------"
- send all players title "&a%loop-player%" with subtitle "&fhat das Spiel gewonnen" for 3 seconds
- set {state} to "End"
- launch flickering ball firework colored white and red at loop-player's location timed 1.5
- launch flickering ball firework colored blue and green at loop-player's location timed 1.8
- launch flickering ball firework colored yellow and red at loop-player's location timed 2.0
- wait 10 seconds
- play sound "click" to all players with volume 100.0 and pitch 5
- broadcast "{@p}&7Der Server stoppt &7in &f3 &7Sekunden&8."
- wait 1 seconds
- play sound "click" to all players with volume 100.0 and pitch 5
- broadcast "{@p}&7Der Server stoppt &7in &f2 &7Sekunden&8."
- wait 1 seconds
- play sound "click" to all players with volume 100.0 and pitch 5
- broadcast "{@p}&7Der Server stoppt &7in &f1 &7Sekunde&8."
- wait 1 seconds
- execute console command "configurate"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement