Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {coins::%player%} = 0
- {kills::%player%} = 0
- on death:
- if victim is a player:
- if attacker is a zombie:
- clear victim's inventory
- broadcast "&8| &2A&apocalypse &8» &2%victim% &awas killed by a &2%attacker%"
- add 1 to {deaths::%victim%}
- wait 1 second
- set {ingame::%player%} to "False"
- teleport victim to {spawn}
- on join:
- set join message to "&8| &2A&apocalypse &8» &a&l%player%"
- on first join:
- set join message to "&8| &2A&apocalypse &8» &a&l%player%"#
- on quit:
- set leave message to "&8| &2A&apocalypse &8» &c&l%player%"
- set {ingame::%player%} to "False"
- on rightclick on sign:
- if line 2 of event-block is "&2Join":
- make player execute command "/join"
- set line 3 of event-block to "&8(Click to join)"
- command /leave:
- trigger:
- if {ingame::%player%} is "True":
- set {ingame::%player%} to "False"
- send "&8| &2A&apocalypse &8» &7Sending you to spawn"
- teleport player to {spawn}
- stop
- if {ingame::%player%} is "False":
- send "&8| &2A&apocalypse &8» &7You are not in a game"
- stop
- on rightclick on sign:
- if line 2 of event-block is "&cLeave":
- make player execute command "/leave"
- set line 3 of event-block to "&8(Click to leave)"
- command /join:
- trigger:
- if {ingame::%player%} is "False":
- set {ingame::%player%} to "True"
- send "&8| &2A&apocalypse &8» &7Sending you to the arena"
- teleport player to {arena}
- stop
- if {ingame::%player%} is "True":
- send "&8| &2A&apocalypse &8» &7You are already in the game"
- stop
- command /zombie [<text>] [<number>] [<text>]:
- trigger:
- if arg 1 is set:
- if arg 1 is "setapocalypse" or "seta":
- if player has permission "zombie.setapoc":
- if arg 2 is set:
- if arg 2 is 1:
- set {Zombie.Apocalypse.1} to location of player
- send "&8|&2A&apocalypse &8» &7Set spawn number &21"
- stop
- if arg 2 is 2:
- set {Zombie.Apocalypse.2} to location of player
- send "&8|&2A&apocalypse &8» &7Set spawn number &22"
- stop
- if arg 2 is 3:
- set {Zombie.Apocalypse.3} to location of player
- send "&8|&2A&apocalypse &8» &7Set spawn number &23"
- stop
- if arg 2 is 4:
- set {Zombie.Apocalypse.4} to location of player
- send "&8|&2A&apocalypse &8» &7Set spawn number &24"
- stop
- if arg 2 is 5:
- set {Zombie.Apocalypse.5} to location of player
- send "&8|&2A&apocalypse &8» &7Set spawn number &25"
- stop
- if arg 2 is not 1 or 2 or 3 or 4 or 5:
- send "&8| &2Z&aombie &8» &7/Zombie Setapocalypse 1-5"
- stop
- else:
- send "&8| &2Z&aombie &8» &7/Zombie Setapocalypse 1-5"
- stop
- else:
- send "&8| &2Z&aombie &8» &7Dazu bist du nicht Berechtigt!"
- stop
- if arg 1 is "apocalypse" or "apoc":
- if player has permission "zombie.apoc":
- add 25 to {Zombie.live}
- spawn a zombie at location of {Zombie.Apocalypse.1}
- spawn a zombie at location of {Zombie.Apocalypse.1}
- spawn a zombie at location of {Zombie.Apocalypse.1}
- spawn a zombie at location of {Zombie.Apocalypse.1}
- spawn a zombie at location of {Zombie.Apocalypse.1}
- spawn a zombie at location of {Zombie.Apocalypse.1}
- spawn a zombie at location of {Zombie.Apocalypse.2}
- spawn a zombie at location of {Zombie.Apocalypse.2}
- spawn a zombie at location of {Zombie.Apocalypse.2}
- spawn a zombie at location of {Zombie.Apocalypse.2}
- spawn a zombie at location of {Zombie.Apocalypse.2}
- spawn a zombie at location of {Zombie.Apocalypse.3}
- spawn a zombie at location of {Zombie.Apocalypse.3}
- spawn a zombie at location of {Zombie.Apocalypse.3}
- spawn a zombie at location of {Zombie.Apocalypse.3}
- spawn a zombie at location of {Zombie.Apocalypse.3}
- spawn a zombie at location of {Zombie.Apocalypse.4}
- spawn a zombie at location of {Zombie.Apocalypse.4}
- spawn a zombie at location of {Zombie.Apocalypse.4}
- spawn a zombie at location of {Zombie.Apocalypse.4}
- spawn a zombie at location of {Zombie.Apocalypse.4}
- spawn a zombie at location of {Zombie.Apocalypse.5}
- spawn a zombie at location of {Zombie.Apocalypse.5}
- spawn a zombie at location of {Zombie.Apocalypse.5}
- spawn a zombie at location of {Zombie.Apocalypse.5}
- spawn a zombie at location of {Zombie.Apocalypse.5}
- send "&8| &2Z&aombie &8» &7Es wurden &e25 &7Gespawnt!"
- broadcast " "
- broadcast " &aEs ist eine Neue Zombie Welle mit &225 &aZomies Ausgebrochen!"
- broadcast " "
- invoke "scoreboard"
- stop
- else:
- send "&8| &2Z&aombie &8» &7Dazu bist du nicht Berechtigt!"
- stop
- if arg 1 is "kill" or "clear":
- if player has permission "zombie.clear":
- set {Zombie.live} to 0
- kill all zombies
- invoke "scoreboard"
- else:
- send "&8| &2Z&aombie &8» &7Dazu bist du nicht Berechtigt!"
- stop
- if arg 1 is not "kill" or "clear" or "apocalypse" or "apoc" or "setapocalypse" or "seta":
- if player has permission "zombie.help":
- send "&8| &2Z&aombie &8» &7"
- send "&8| &2Z&aombie &8» &7/Zombie Setapocalypse 1-5 &8| &eSetzte die Spawns fuer die Apocalypsen"
- send "&8| &2Z&aombie &8» &7/Zombie Apocalypse &8| &eLasse eine Zombie Welle Ausbrechen."
- send "&8| &2Z&aombie &8» &7/Zombie Clear &8| &eToete die ganzen Zombies."
- stop
- else:
- send "&8| &2Z&aombie &8» &7Dieser Commands exestiert nicht!"
- stop
- else:
- if player has permission "zombie.help":
- send "&8| &2Z&aombie &8» &7"
- send "&8| &2Z&aombie &8» &7/Zombie Setapocalypse 1-5 &8| &eSetzte die Spawns fuer die Apocalypsen"
- send "&8| &2Z&aombie &8» &7/Zombie Apocalypse &8| &eLasse eine Zombie Welle Ausbrechen."
- send "&8| &2Z&aombie &8» &7/Zombie Clear &8| &eToete die ganzen Zombies."
- stop
- else:
- send "&8| &2Z&aombie &8» &7Dieser Commands exestiert nicht!"
- stop
- every minute:
- loop all players:
- if {ingame::%loop-player%} is "True":
- add 25 to {Zombie.live}
- spawn a zombie at location of {Zombie.Apocalypse.1}
- spawn a zombie at location of {Zombie.Apocalypse.1}
- spawn a zombie at location of {Zombie.Apocalypse.1}
- spawn a zombie at location of {Zombie.Apocalypse.1}
- spawn a zombie at location of {Zombie.Apocalypse.1}
- spawn a zombie at location of {Zombie.Apocalypse.1}
- spawn a zombie at location of {Zombie.Apocalypse.2}
- spawn a zombie at location of {Zombie.Apocalypse.2}
- spawn a zombie at location of {Zombie.Apocalypse.2}
- spawn a zombie at location of {Zombie.Apocalypse.2}
- spawn a zombie at location of {Zombie.Apocalypse.2}
- spawn a zombie at location of {Zombie.Apocalypse.3}
- spawn a zombie at location of {Zombie.Apocalypse.3}
- spawn a zombie at location of {Zombie.Apocalypse.3}
- spawn a zombie at location of {Zombie.Apocalypse.3}
- spawn a zombie at location of {Zombie.Apocalypse.3}
- spawn a zombie at location of {Zombie.Apocalypse.4}
- spawn a zombie at location of {Zombie.Apocalypse.4}
- spawn a zombie at location of {Zombie.Apocalypse.4}
- spawn a zombie at location of {Zombie.Apocalypse.4}
- spawn a zombie at location of {Zombie.Apocalypse.4}
- spawn a zombie at location of {Zombie.Apocalypse.5}
- spawn a zombie at location of {Zombie.Apocalypse.5}
- spawn a zombie at location of {Zombie.Apocalypse.5}
- spawn a zombie at location of {Zombie.Apocalypse.5}
- spawn a zombie at location of {Zombie.Apocalypse.5}
- set {zombies} to random integer between 1 and 4
- if {zombies} is 1:
- send " " to loop-player
- send " &aLets keep going &2+25 &amore ""hahahahaha"" " to loop-player
- send " " to loop-player
- invoke "scoreboard"
- if {zombies} is 2:
- send " " to loop-player
- send " &aGod this is getting boring &2+25" to loop-player
- send " " to loop-player
- invoke "scoreboard"
- if {zombies} is 3:
- send " " to loop-player
- send " &aLets hurry and make it a lot more fun :) &2+25" to loop-player
- send " " to loop-player
- invoke "scoreboard"
- if {zombies} is 4:
- send " " to loop-player
- send " &a5, 4, 3, 2, 1 here we go! &2+25" to loop-player
- send " " to loop-player
- invoke "scoreboard"
- on death of zombie:
- clear drops
- remove 1 from {Zombie.live}
- invoke "scoreboard"
- stop
- every second:
- loop all players:
- if {ingame::%loop-player%} is "False":
- wipe loop-player's sidebar
- set name of sidebar of loop-player to "&8» &2A&apocalypse &8«"
- set score "&7" in sidebar of loop-player to 5
- set score "&2Z&aombie &2K&aills&2: &7&l%{kills::%loop-player%}%" in sidebar of loop-player to 4
- set score "&2C&aoins&2: &7&l%{coins::%loop-player%}%" in sidebar of loop-player to 3
- set score "&2D&aeaths&2: &7&l%{deaths::%loop-player%}%" in sidebar of loop-player to 2
- set score "&a" in sidebar of loop-player to 1
- on death of zombie:
- if attacker is a player:
- set action bar of attacker to "&2+1 &aCoin for the zombie kill"
- clear drops
- add 1 to {kills::%attacker%}
- add 1 to {coins::%attacker%}
- on npc right click:
- if citizen is named "&eShop":
- open chest with 3 rows named "&2Z&aombie &8- &7Shop" to player
- wait 1 tick
- set slot 0 of player's current inventory to diamond sword of sharpness 5, knockback 3
- stop
- every second:
- loop all players:
- if {ingame::%loop-player%} is "True":
- wipe loop-player's sidebar
- set name of sidebar of loop-player to "&8» &2A&apocalypse &8«"
- set score "&7" in sidebar of loop-player to 3
- set score "&2Z&aombie &2C&aount&2:" in sidebar of loop-player to 2
- if {Zombie.live} is higher than 0:
- set score "&7&l%{Zombie.live}%" in sidebar of loop-player to 1
- else:
- set score "&7&l0" in sidebar of loop-player to 1
- set score "&8" in sidebar of loop-player to 0
- command /ping:
- trigger:
- set {_ping} to player's ping
- send player title "&2%{_ping}%" for 1 second
- stop
- on hunger meter change:
- cancel event
- options:
- # CONFIG
- PermissionActivated: true #Do you want to use a permission? So set it to true or to false if you don't want it
- Permission: coloredsignssk.use # Here you can set the permission when this PermissionActivated is set to true
- ColorReplacer: "&"
- on sign change:
- if {@PermissionActivated} is true:
- if player has permission "{@Permission}":
- replace all {@ColorReplacer} with "§" in line 1 of event-block
- replace all {@ColorReplacer} with "§" in line 2 of event-block
- replace all {@ColorReplacer} with "§" in line 3 of event-block
- replace all {@ColorReplacer} with "§" in line 4 of event-block
- else:
- replace all {@ColorReplacer} with "§" in line 1 of event-block
- replace all {@ColorReplacer} with "§" in line 2 of event-block
- replace all {@ColorReplacer} with "§" in line 3 of event-block
- replace all {@ColorReplacer} with "§" in line 4 of event-block
- command /setserverspawn:
- trigger:
- set {spawn} to location of player
- command /setserverlobby:
- trigger:
- set {arena} to location of player
- on sign change:
- player is op
- if line 1 of block is "[TopKills]":
- add block to {TopKills.signs::*}
- set {_skull} to skull of {topkiller}
- set the block above the event-block to {_skull}'s skull
- set line 1 of block to "&2"
- set line 2 of block to "&5%{topkiller}%"
- set line 3 of block to "&2Kills: &f%{topkills}%"
- every second:
- loop {TopKills.signs::*}:
- set line 2 of loop-value to "&a%{topkiller}%"
- set line 3 of loop-value to "&cKills: &f%{topkills}%"
- set block above loop-value to {topkiller}'s skull
- every second:
- loop all players:
- set {topkills} to {kills::%loop-player%}
- set {topkiller} to loop-player
- on sign change:
- player is op
- if line 1 of block is "[TopCoins]":
- add block to {TopCoins.signs::*}
- set {_skull} to skull of {topcoinholder}
- set block above block to {topcoinholder}'s skull
- set line 1 of block to "&2"
- set line 2 of block to "&5%{topcoinholder}%"
- set line 3 of block to "&2Coins: &f%{topcoins}%"
- every second:
- loop {TopCoins.signs::*}:
- set line 2 of loop-value to "&a%{topcoinholder}%"
- set line 3 of loop-value to "&cCoins: &f%{topcoins}%"
- set block above loop-value to {topcoinholder}'s skull
- every second:
- loop all players:
- set {topcoins} to {coins::%loop-player%}
- set {topcoinholder} to loop-player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement