Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- #
- # ChestGames - by Balerias
- #
- #
- options:
- p: &6&lChestGames &8▶ &7
- world: world
- on join:
- if {state} is "Lobby":
- set join message to "&a» &e%player% &7ist der Runde beigetreten"
- else:
- set join message to ""
- on quit:
- if {state} is "Lobby":
- set leave message to "&c« &e%player% &7hat die Runde verlassen"
- else:
- set leave message to ""
- on connect:
- if {state} is "End":
- kick player due to "&cDie Runde ist bereits zuende"
- command /state:
- trigger:
- send "%{state}%"
- 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
- 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::*}
- #enderchests
- add 2 399 named "&c+ 1 Herz" to {echestitems::*}
- add 3 399 named "&c+ 1 Herz" to {echestitems::*}
- add 4 399 named "&c+ 1 Herz" to {echestitems::*}
- add 2 322 to {echestitems::*}
- add 1 354 named "&5G&cL&eÜ&6C&bK&2S&aK&9U&dC&eH&cE&4N" 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
- loop {enderachests} times:
- add 1 to {enderchests}
- set block at {echest.%{enderchests}%} to ender chest
- loop {achests} times:
- add 1 to {chests}
- set block at {chest.%{chests}%} to chest
- on join:
- execute console command "nte player %player% clear"
- set max health of player to 10
- clear player's inventory
- heal player
- remove Invisibility from the player
- set {überlebenderspieler.%player%} to false
- set hunger of player to 30
- if {state} is "lobby":
- teleport player to {wartelobby}
- execute console command "/_startcountdown"
- if {state} is "ingame":
- set max health of player to 10
- execute console command "nte player %player% prefix &8"
- 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 addspawn &7- &fSetzt Gamespawns"
- send "&a/chestgames addnowalk &7- &fSetzt NoWalkBlöcke"
- send "&a/chestgames setdeathmatch <1-12> &7- &fSpawns für Deathmatch"
- 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 /_startcountdown:
- trigger:
- 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 61
- loop 61 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:
- wait 1 seconds
- remove 1 from {Countdown.BW}
- set action bar of all players in world "{@world}" to "&6&lCG &8┃ &eSpielstart in %{Countdown.BW}% Sekunden"
- if {Countdown.BW} is 60:
- loop all players:
- play sound "NOTE_BASS " to loop-player with volume 100.0 and pitch 15
- broadcast "{@p}&7&oDie &oRunde &ostartet &oin &e&oeiner &7&oMinute" in "{@world}"
- if {Countdown.BW} is 30:
- loop all players:
- play sound "NOTE_BASS " to loop-player with volume 100.0 and pitch 15
- broadcast "{@p}&7&oDie &oRunde &ostartet &oin &e&o%{Countdown.BW}% &7&oSekunden" in "{@world}"
- if {Countdown.BW} is 15:
- loop all players:
- play sound "NOTE_BASS " to loop-player with volume 100.0 and pitch 15
- broadcast "{@p}&7&oDie &oRunde &ostartet &oin &e&o%{Countdown.BW}% &7&oSekunden" in "{@world}"
- if {Countdown.BW} is 10:
- loop all players:
- play sound "NOTE_BASS " to loop-player with volume 100.0 and pitch 15
- broadcast "{@p}&7&oDie &oRunde &ostartet &oin &e&o%{Countdown.BW}% &7&oSekunden" in "{@world}"
- if {Countdown.BW} is 5:
- loop all players:
- play sound "NOTE_BASS " to loop-player with volume 100.0 and pitch 15
- broadcast "{@p}&7&oDie &oRunde &ostartet &oin &e&o%{Countdown.BW}% &7&oSekunden" in "{@world}"
- if {Countdown.BW} is 4:
- loop all players:
- play sound "NOTE_BASS " to loop-player with volume 100.0 and pitch 15
- broadcast "{@p}&7&oDie &oRunde &ostartet &oin &e&o%{Countdown.BW}% &7&oSekunden" in "{@world}"
- if {Countdown.BW} is 3:
- loop all players:
- play sound "NOTE_BASS " to loop-player with volume 100.0 and pitch 15
- broadcast "{@p}&7&oDie &oRunde &ostartet &oin &e&o%{Countdown.BW}% &7&oSekunden" in "{@world}"
- if {Countdown.BW} is 2:
- loop all players:
- play sound "NOTE_BASS " to loop-player with volume 100.0 and pitch 15
- broadcast "{@p}&7&oDie &oRunde &ostartet &oin &e&o%{Countdown.BW}% &7&oSekunden" in "{@world}"
- if {Countdown.BW} is 1:
- loop all players:
- play sound "NOTE_BASS " to loop-player with volume 100.0 and pitch 15
- broadcast "{@p}&7&oDie &oRunde &ostartet &oin &e&oeiner &7&oSekunde" 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"
- broadcast "{@p}&e&oAlle &oSpieler &owerden &oTeleportiert .." 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:
- 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
- teleport loop-player to {chestgames.spawn.%{_addspawn}%}
- play sound "NOTE_Pling " to all players with volume 100.0 and pitch 15
- wait 2 seconds
- set {blockspawn.nowalk} to 0
- loop all players:
- send loop-player title "&45" for 1 seconds
- play sound "NOTE_BASS " to all players with volume 100.0 and pitch 15
- broadcast "{@p}&7&oDas &oSpiel &ostartet &oin &e&o5 &7&oSekunden"
- loop 200 times:
- add 1 to {blockspawn.nowalk}
- set block at {chestgames.nowalk.%{blockspawn.nowalk}%} to 95:14
- wait 1 seconds
- set {blockspawn.nowalk} to 0
- loop all players:
- send loop-player title "&64" for 1 seconds
- play sound "NOTE_BASS " to all players with volume 100.0 and pitch 15
- broadcast "{@p}&7&oDas &oSpiel &ostartet &oin &e&o4 &7&oSekunden"
- loop 200 times:
- add 1 to {blockspawn.nowalk}
- set block at {chestgames.nowalk.%{blockspawn.nowalk}%} to 95:1
- wait 1 seconds
- set {blockspawn.nowalk} to 0
- loop all players:
- send loop-player title "&e3" for 1 seconds
- play sound "NOTE_BASS " to all players with volume 100.0 and pitch 15
- broadcast "{@p}&7&oDas &oSpiel &ostartet &oin &e&o3 &7&oSekunden"
- loop 200 times:
- add 1 to {blockspawn.nowalk}
- set block at {chestgames.nowalk.%{blockspawn.nowalk}%} to 95:4
- wait 1 seconds
- set {blockspawn.nowalk} to 0
- play sound "NOTE_BASS " to all players with volume 100.0 and pitch 15
- loop all players:
- send loop-player title "&22" for 1 seconds
- broadcast "{@p}&7&oDas &oSpiel &ostartet &oin &e&o2 &7&oSekunden"
- loop 200 times:
- add 1 to {blockspawn.nowalk}
- set block at {chestgames.nowalk.%{blockspawn.nowalk}%} to 95:13
- wait 1 seconds
- set {blockspawn.nowalk} to 0
- play sound "NOTE_BASS " to all players with volume 100.0 and pitch 15
- loop all players:
- send loop-player title "&a1" for 1 seconds
- broadcast "{@p}&7&oDas &oSpiel &ostartet &oin &e&oeiner &7&oSekunde"
- loop 200 times:
- add 1 to {blockspawn.nowalk}
- set block at {chestgames.nowalk.%{blockspawn.nowalk}%} to 95:5
- wait 1 seconds
- set {blockspawn.nowalk} to 0
- play sound "NOTE_Pling " to all players with volume 100.0 and pitch 15
- broadcast "{@p}&e&oDas &oSpiel &oist &ogestartet!"
- loop all players:
- send loop-player title "&aGO!" for 1 seconds
- if {überlebenderspieler.%loop-player%} is true:
- set hunger of loop-player to 27
- loop 200 times:
- add 1 to {blockspawn.nowalk}
- set block at {chestgames.nowalk.%{blockspawn.nowalk}%} to air
- wait 1 seconds
- loop all players:
- set hunger of loop-player to 27
- wait 2 seconds
- loop all players:
- set hunger of loop-player to 27
- wait 2 seconds
- loop all players:
- set hunger of loop-player to 27
- wait 2 seconds
- loop all players:
- set hunger of loop-player to 27
- if {state} is "ingame":
- broadcast "{@p}&a&oDas &oDeathmatch &obeginnt &oin &o5 &oMinuten"
- play sound "click " to all players with volume 100.0 and pitch 15
- loop 30 times:
- if {state} is "ingame":
- wait 2 seconds
- else:
- stop
- broadcast "{@p}&a&oDas &oDeathmatch &obeginnt &oin &o4 &oMinuten"
- play sound "click " to all players with volume 100.0 and pitch 15
- loop 30 times:
- if {state} is "ingame":
- wait 2 seconds
- else:
- stop
- broadcast "{@p}&a&oDas &oDeathmatch &obeginnt &oin &o3 &oMinuten"
- play sound "click " to all players with volume 100.0 and pitch 15
- loop 30 times:
- if {state} is "ingame":
- wait 2 seconds
- else:
- stop
- broadcast "{@p}&a&oDas &oDeathmatch &obeginnt &oin &o2 &oMinuten"
- play sound "click " to all players with volume 100.0 and pitch 15
- loop 30 times:
- if {state} is "ingame":
- wait 2 seconds
- else:
- stop
- broadcast "{@p}&a&oDas &oDeathmatch &obeginnt &oin &oeiner &oMinute"
- play sound "click " to all players with volume 100.0 and pitch 15
- loop 25 times:
- if {state} is "ingame":
- wait 2 seconds
- else:
- stop
- broadcast "{@p}&a&oDas &oDeathmatch &obeginnt &oin &o10 &oSekunden"
- play sound "NOTE_BASS " to all players with volume 100.0 and pitch 15
- loop 7 times:
- if {state} is "ingame":
- wait 1 seconds
- else:
- stop
- if {tasdffds} is not set:
- if {state} is "ingame":
- broadcast "{@p}&a&oDas &oDeathmatch &obeginnt &oin &o3 &oSekunden"
- play sound "NOTE_BASS " to all players with volume 100.0 and pitch 15
- else:
- stop
- wait 1 seconds
- if {tasdffds} is not set:
- if {state} is "ingame":
- broadcast "{@p}&a&oDas &oDeathmatch &obeginnt &oin &o2 &oSekunden"
- play sound "NOTE_BASS " to all players with volume 100.0 and pitch 15
- else:
- stop
- wait 1 seconds
- if {tasdffds} is not set:
- if {state} is "ingame":
- broadcast "{@p}&a&oDas &oDeathmatch &obeginnt &oin &oeiner &oSekunde"
- play sound "NOTE_pling " to all players with volume 100.0 and pitch 15
- else:
- stop
- else:
- set {countdown} to true
- else:
- set {countdown} to true
- every 1 seconds:
- if {state} is "Lobby":
- if {countdown} is true:
- set action bar of all players to "&cWarten auf weitere Spieler ..."
- command /stats [<offline player>]:
- trigger:
- if arg-1 is not set:
- execute player command "stats %player%"
- if arg-1 is set:
- if arg-1 is online:
- loop all players:
- set {_KToplistD.%loop-player's uuid%::*} to sorted {killer::*} from highest to lowest with output "@index||@value"
- set {nkill::%loop-player%} to {kill::%loop-player's uuid%}
- loop {_KToplistD.%loop-player's uuid%::*}:
- set {_Cache.KToplist::%loop-player's uuid%::*} to loop-value split at "||"
- If "%{_Cache.KToplist::%loop-player's uuid%::1}%" is "%loop-player's uuid%":
- set {RKitPvP.Platz::%loop-player's uuid%} to "%loop-index%"
- send "&6ChestGames &e» &7Stats von %arg-1%"
- send " "
- send "{@p}&ePlatz: &e##%{RKitPvP.Platz::%arg-1's uuid%}%"
- send "{@p}&eKills: &f%{killer::%arg-1's uuid%}%"
- send "{@p}&eTode: &f%{death::%arg-1's uuid%}%"
- send "{@p}&eK/D: &f%{killer::%arg-1's uuid%}/{death::%arg-1's uuid%}%"
- else:
- send "{@p}Dieser Spieler ist nicht online."
- on join:
- if {death::%player's uuid%} is not set:
- set {death::%player's uuid%} to 0
- if {killer::%player's uuid%} is not set:
- set {killer::%player's uuid%} to 0
- 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:
- add 1 to {death::%victim's uuid%}
- add 1 to {killer::%attacker's uuid%}
- set max health of victim to 10
- execute console command "nte player %player% prefix &8"
- execute console command "nte player %player% priority 99"
- apply potion of Invisibility of tier 2 to victim for 1500 seconds
- set {überlebenderspieler.%victim%} to false
- set hunger of victim to 30
- show mobspawner flames at victim
- heal victim
- push victim upwards at speed 0.5
- push victim behind at speed 2
- remove 1 from {überlebende}
- hide victim from all players
- loop all players:
- execute loop-player command "fix_**_players"
- if {überlebende} is 1:
- loop all players:
- if {überlebenderspieler.%loop-player%} is true:
- play "level_up" to all players at volume 1000
- launch flickering ball firework colored white and red at loop-player's location timed 0
- send all players title "&a&a%loop-player% &ehat das" with subtitle "&eSpiel gewonnen" for 3 seconds
- set {state} to "End"
- broadcast "{@p}&e%loop-player% &ahat das Spiel gewonnen"
- wait 2 seconds
- play sound "NOTE_BASS " to all players with volume 100.0 and pitch 15
- broadcast "{@p}&7&oDer &oServer &ostartet &oin &e&o15 &7&oSekunden &oneu"
- wait 12 seconds
- play sound "NOTE_BASS " to all players with volume 100.0 and pitch 15
- broadcast "{@p}&7&oDer &oServer &ostartet &oin &e&o3 &7&oSekunden &oneu"
- wait 1 seconds
- play sound "NOTE_BASS " to all players with volume 100.0 and pitch 15
- broadcast "{@p}&7&oDer &oServer &ostartet &oin &e&o2 &7&oSekunden &oneu"
- wait 1 seconds
- play sound "NOTE_BASS " to all players with volume 100.0 and pitch 15
- broadcast "{@p}&7&oDer &oServer &ostartet &oin &e&oeiner &7&oSekunde &oneu"
- wait 1 seconds
- play sound "NOTE_Pling " to all players with volume 100.0 and pitch 15
- wait 0.1 seconds
- execute console command "configurate"
- 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} at {chest.%{chests}%}
- chance of 50%:
- set {random_item_aus_chest} to random element of {chestitems::*}
- drop {random_item_aus_chest} at {chest.%{chests}%}
- chance of 50%:
- set {random_item_aus_chest} to random element of {chestitems::*}
- drop {random_item_aus_chest} at {chest.%{chests}%}
- chance of 50%:
- set {random_item_aus_chest} to random element of {chestitems::*}
- drop {random_item_aus_chest} at {chest.%{chests}%}
- chance of 50%:
- set {random_item_aus_chest} to random element of {chestitems::*}
- drop {random_item_aus_chest} at {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
- add 1 to {enderachests}
- add 1 to {enderchests}
- set {echest.%{enderchests}%} to location of event-block
- chance of 100%:
- set {random_item_aus_echest} to random element of {echestitems::*}
- drop {random_item_aus_echest} at {echest.%{enderchests}%}
- chance of 50%:
- set {random_item_aus_echest} to random element of {echestitems::*}
- drop {random_item_aus_echest} at {echest.%{enderchests}%}
- chance of 20%:
- set {random_item_aus_echest} to random element of {echestitems::*}
- drop {random_item_aus_echest} at {echest.%{enderchests}%}
- chance of 20%:
- set {random_item_aus_echest} to random element of {echestitems::*}
- drop {random_item_aus_echest} at {echest.%{enderchests}%}
- chance of 20%:
- set {random_item_aus_echest} to random element of {echestitems::*}
- drop {random_item_aus_echest} at {echest.%{enderchests}%}
- 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 2 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 "&c« &e%player% &7hat die Runde verlassen"
- add 1 to {death::%player's uuid%}
- set {überlebenderspieler.%player} to false
- remove 1 from {überlebende}
- wait 1 seconds
- if {überlebende} is 1:
- loop all players:
- if {überlebenderspieler.%loop-player%} is true:
- play "level_up" to all players at volume 1000
- send all players title "&a&a%loop-player% &ehat das" with subtitle "&eSpiel gewonnen" for 3 seconds
- launch flickering ball firework colored white and red at loop-player's location timed 0
- set {state} to "End"
- broadcast "{@p}&e%loop-player% &ahat das Spiel gewonnen"
- wait 2 seconds
- play sound "NOTE_BASS " to all players with volume 100.0 and pitch 15
- broadcast "{@p}&7&oDer &oServer &ostartet &oin &e&o15 &7&oSekunden &oneu"
- wait 12 seconds
- play sound "NOTE_BASS " to all players with volume 100.0 and pitch 15
- broadcast "{@p}&7&oDer &oServer &ostartet &oin &e&o3 &7&oSekunden &oneu"
- wait 1 seconds
- play sound "NOTE_BASS " to all players with volume 100.0 and pitch 15
- broadcast "{@p}&7&oDer &oServer &ostartet &oin &e&o2 &7&oSekunden &oneu"
- wait 1 seconds
- play sound "NOTE_BASS " to all players with volume 100.0 and pitch 15
- broadcast "{@p}&7&oDer &oServer &ostartet &oin &e&oeiner &7&oSekunde &oneu"
- wait 1 seconds
- play sound "NOTE_Pling " to all players with volume 100.0 and pitch 15
- wait 0.1 seconds
- execute console command "configurate"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement