Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Best PvE: A scenario by: Terribuilder/Dans1988 - Skripted by: Bitlington/Codes97
- #The Configurations
- options:
- name: &f[&cBestPvE&f]&b
- variables:
- {join.%player%}="offline"
- #Commands
- command /bestpve <text>:
- description: Switches the state of the Best PvE scenario.
- usage: /bestpve <on/off/toggle>
- permission: bestpve.skript
- executable by: players and console
- aliases: /bpve
- trigger:
- if arg 1 is "on":
- if {pve} is "on":
- message "{@name} Sorry cannot do. This is already enabled."
- stop
- else:
- loop all players:
- set {bestpve.%loop-player%} to "list"
- execute console command "/playsound note.pling %loop-player% ~ ~ ~ 1 1 1"
- set {join.%loop-player%} to "online"
- broadcast "{@name} is enabled"
- set {pve} to "on"
- set {currenthearts} to 10
- if arg 1 is "off":
- if {pve} is "off":
- message "{@name} Sorry cannot do. This is already disabled."
- stop
- else:
- loop all players:
- set {bestpve.%loop-player%} to "off"
- execute console command "/playsound mob.wolf.howl %loop-player% ~ ~ ~ 1 1 1"
- broadcast "{@name} is disabled"
- set {pve} to "off"
- if arg 1 is "toggle":
- if {pve} is "off":
- loop all players:
- set {bestpve.%loop-player%} to "list"
- execute console command "/playsound note.pling %loop-player% ~ ~ ~ 1 1 1"
- set {join.%loop-player%} to "online"
- broadcast "{@name} is enabled"
- set {pve} to "on"
- stop
- if {pve} is "on":
- loop all players:
- set {bestpve.%loop-player%} to "off"
- execute console command "/playsound mob.wolf.howl %loop-player% ~ ~ ~ 1 1 1"
- broadcast "{@name} is disabled"
- set {pve} to "off"
- set {currenthearts} to 10
- set {round} to 0
- stop
- command /iambestpve:
- description: Tells the player if they on the Best PvE list.
- trigger:
- if {bestpve.%command sender%} is "list":
- message "{@name} Yes, you are on the Best PvE list."
- execute console command "/playsound note.pling %player% ~ ~ ~ 1 1 1"
- else:
- message "{@name} No, you are off the Best PvE list."
- execute console command "/playsound note.pling %player% ~ ~ ~ 1 1 1"
- command /isbestpveon:
- description: Tells the player if the Best PvE scenario is on.
- trigger:
- if {pve} is "on":
- message "{@name} Yes, Best PvE is on."
- execute console command "/playsound note.pling %player% ~ ~ ~ 1 1 1"
- else:
- message "{@name} No, Best PvE is off."
- execute console command "/playsound note.pling %player% ~ ~ ~ 1 1 1"
- command /addbestpve <player>:
- description: Adds the player to the best PvE list.
- usage: /addbestpve <player>
- permission: bestpve.skript
- trigger:
- set {bestpve.%arg 1%} to "list"
- broadcast "{@name} %arg 1% is now on the Best PvE list."
- execute console command "/playsound note.pling %arg 1% ~ ~ ~ 1 1 1"
- command /normalhealth <player>:
- description: Sets the player to normal health
- usage: /normalhealth <player>
- permission: bestpve.skript
- aliases: /nh
- trigger:
- set {_player} to arg 1
- set {_player}'s max health to 10
- broadcast "{@name} %arg 1% is now at normal health."
- execute console command "/playsound note.pling %arg 1% ~ ~ ~ 1 1 1"
- heal {_player}
- command /removebestpve <player>:
- description: Removes the player to the best PvE list.
- usage: /removebestpve <player>
- permission: bestpve.skript
- trigger:
- set {bestpve.%arg 1%} to "off"
- broadcast "{@name} %arg 1% is off on the Best PvE list."
- execute console command "/playsound note.pling %arg 1% ~ ~ ~ 1 1 1"
- command /healthreset:
- description: Resets everyone's health.
- permission: bestpve.skript
- trigger:
- loop all players:
- set loop-player's health to 10
- set loop-player's max health to 10
- execute console command "/playsound note.pling %arg 1% ~ ~ ~ 1 1 1"
- broadcast "{@name} All player's health have had a global reset by %command sender%!"
- command /bestpvehelp:
- description: Teaches you about the Best PvE scenario.
- aliases: /bph, /bphelp,
- trigger:
- execute console command "/playsound note.pling %player% ~ ~ ~ 1 1 1"
- message "{@name} This is the Best PvE scenario. Created by: /u/Dans1988 and skripted by /u/Bitlington"
- wait 0.1 seconds
- message "{@name} At the beginning of the game, all players are added to a ""best PvE"" list. Every 10 minutes, they are healed by 1 heart and get 1 potential heart."
- wait 0.1 seconds
- message "{@name} When you take damage you are removed from this list. When you kill someone, you are on the list."
- wait 0.1 seconds
- message "{@name} Some useful commands are /iambestpve and /isbestpveon - Thanks for Reading - Bit!"
- if player is an op:
- message "{@name} Mister.Op here is the commands to help you run this scenario."
- wait 0.1 seconds
- message "{@name} /removebestpve , /normalhealth, /bestpve <on/off/toggle> , /addbestpve , /healthreset . - Bit!"
- #The Real Deal
- on damage of player:
- if {pve} is "on":
- if damage was caused by a projectile:
- projectile is not a snowball:
- if {bestpve.%victim%} is "list":
- set {bestpve.%victim%} to "off"
- message "{@name} You are no longer on the BestPvE list." to the victim
- execute console command "/playsound mob.wolf.howl %victim% ~ ~ ~ 1 1 1"
- else:
- if {bestpve.%victim%} is "list":
- set {bestpve.%victim%} to "off"
- message "{@name} You are no longer on the BestPvE list." to the victim
- execute console command "/playsound mob.wolf.howl %victim% ~ ~ ~ 1 1 1"
- on death of player:
- if {pve} is "on":
- if {bestpve.%attacker%} is "off":
- set {bestpve.%attacker%} to "list"
- message "{@name} You are now on the BestPvE list." to the attacker
- execute console command "/playsound note.pling %attacker% ~ ~ ~ 1 1 1"
- every 10 minutes:
- if {pve} is "on":
- set {currenthearts} to {currenthearts} + 1
- set {round} to {round} + 1
- loop all players:
- if {bestpve.%loop-player%} is "list":
- set loop-player's max health to loop-player's max health + 1
- add 1 to loop-player's health
- execute console command "/playsound mob.wolf.howl %loop-player% ~ ~ ~ 1 1 1"
- broadcast "{@name} Best PvE players gained a heart."
- #Login System
- on login:
- {pve} is "on":
- if {bestpve.%player%} is "list":
- player's max health is not {currenthearts}:
- wait 0.5 seconds
- set player's max health to {currenthearts}
- add {left.%player%} to player's health
- message "{@name} Your health is fixed."
- execute console command "/playsound note.pling %player% ~ ~ ~ 1 1 1"
- on disconnect:
- {pve} is "on":
- if {bestpve.%player%} is "list":
- set {left.%player%} to {round}
- on login:
- {pve} is "on":
- if {join.%player%} is "offline":
- set {join.%player%} to "online"
- player's max health is not {currenthearts}
- heal player
- add {round} to player's health
- message "{@name} Your health is fixed."
- execute console command "/playsound note.pling %player% ~ ~ ~ 1 1 1"
- on login:
- {pve} is "off":
- {bestpve.%player%} is "list":
- player's max health is more than 10:
- {left.%player%} is more than 0:
- execute player command "/normalhealth %player%"
- execute player command "/removebestpve %player%"
- on login:
- {pve} is "off":
- player's max health is more than 10:
- {left.%player%} is more than 0:
- execute player command "/normalhealth %player%"
- execute player command "/removebestpve %player%"
- #Reset System
- on respawn:
- {pve} is "on":
- set the player's health to 10
- message "{@name} Thanks for playing"
- set the player's max health to 10
- #Makes Sure Best PvE is off when reloaded on turned on
- on skript start:
- set {pve} to "off"
- on skript load:
- set {pve} to "off"
- #End of Transmission
- #========================================================#
- #
- # LottoSK
- # 1.3
- #
- #========================================================#
- # by sh4dow | SpigotMC
- #========================================================#
- #========================================================#
- # Config
- #
- # Edit to your own liking
- #========================================================#
- options:
- command: lotto # Default command /lotto
- admin-permission: lottosk.admin # With this permission, they can end Lotto.
- enter-price: 1000 # Price to enter Lotto
- #========================================================#
- # Code
- #
- # DON'T TOUCH UNLESS YOU KNOW WHAT YOU'RE DOING
- #========================================================#
- command /{@command} [<text>]:
- trigger:
- if arg 1 is set:
- if arg 1 is "list":
- message "&b&lLotto &r- &7Players:"
- loop {hasjoined::*}:
- message "&f%loop-index%"
- add 1 to {_all}
- message ""
- message "&e&lTotal players: &f%{_all}%"
- else if arg 1 is "join":
- if {hasjoined::%player%} is not set:
- set {hasjoined::%player%} to player
- execute console command "/eco take %player% {@enter-price}"
- message "&b&lLotto &r- &aYou have successfully entered Lotto!"
- add {@enter-price} to {lottoprize}
- stop
- else:
- message "&b&lLotto &r- &cYou already joined."
- else if arg 1 is "prize":
- message "&b&lLotto &r- &7Current prize: &6$&e%{lottoprize}%"
- else if arg 1 is "end":
- if player has permission "{@admin-permission}":
- set {_winner} to a random element of {hasjoined::*}
- message "&b&lLotto &r- &7WINNER: %{_winner}%"
- execute console command "/eco give %{_winner}% %{lottoprize}%"
- wait 5 ticks
- message "&b&lLotto &r- &7Rewarded winner with &6$&e%{lottoprize}%"
- wait 5 ticks
- delete {lottoprize}
- delete {hasjoined::*}
- message "&b&lLotto &r- &7Lotto has been reset."
- stop
- else:
- message "&b&lLotto &r- &cNo permission."
- else if arg 1 is "refund":
- if {hasjoined::%player%} is set:
- delete {hasjoined::%player%}
- execute console command "/eco give %player% {@enter-price}"
- message "&b&lLotto &r- &aYou have successfully left Lotto!"
- remove {@enter-price} from {lottoprize}
- stop
- else:
- message "&b&lLotto &r- &cYou are not in Lotto."
- else:
- message "&6-----------------------[&b&lLotto&6]-----------------------"
- message "&eJoining costs ${@enter-price} and the winner will get all the money people entered with."
- message ""
- message "&6/{@command} join &fJoin Lotto"
- message "&6/{@command} refund &fQuit Lotto"
- message "&6/{@command} list &fView list of players who joined"
- message "&6/{@command} prize &fView current prize"
- if player has permission "{@admin-permission}":
- message "&6/{@command} end &fProcess the Lotto & reset it"
- message ""
- message "&6-----------------------------------------------------"
- #========================================================#
- #
- # I hope you like my skript.
- # Please don't steal the code.
- # Thank you. :)
- #========================================================#
- function getJSON(item: item, name: text, message: text) :: text:
- set {_nbt} to "%nbt of {_item}%"
- if {_nbt} is "{}":
- set {_nbt} to ""
- else:
- set {_nbt} to ", tag: %{_nbt}%"
- replace all "'" with "" in {_nbt}
- replace all """" with "" in {_nbt}
- replace all "%{_message}%" with "&e»&r %{_name}% &e«&r" in {_message}
- #set {_message} to convert text {_message} to unicode
- set {_json} to "{""text"": ""%{_message}%"", ""hoverEvent"": {""action"": ""show_item"", ""value"": ""{id: %minecraft id of {_item}%, Damage: %data of {_item}%%{_nbt}%}""}}"
- return {_json}
- on chat:
- if message contains "[hand]", "[offhand]", "[helmet]", "[chestplate]", "[leggings]", "[boots]" or "[slot:]":
- if message contains "[hand]":
- add player's current hotbar slot to {_items::*}
- add "[hand]" to {_keywords::*}
- if message contains "[offhand]":
- if "%bukkit version%" doesn't contain "1.8":
- add 40 to {_items::*}
- add "[offhand]" to {_keywords::*}
- if message contains "[helmet]":
- add 39 to {_items::*}
- add "[helmet]" to {_keywords::*}
- if message contains "[chestplate]":
- add 38 to {_items::*}
- add "[chestplate]" to {_keywords::*}
- if message contains "[leggings]":
- add 37 to {_items::*}
- add "[leggings]" to {_keywords::*}
- if message contains "[boots]":
- add 36 to {_items::*}
- add "[boots]" to {_keywords::*}
- if size of {_keywords::*} > 0:
- cancel event
- loop {_keywords::*}:
- set {_keyword} to loop-value
- set {_rawMessages::*} to message split at "%{_keyword}%"
- set {_temp} to {_rawMessages::1}
- delete {_rawMessages::1}
- set {_rawMessage} to "%{_temp}%%{_keyword}%%join {_rawMessages::*} with """"%"
- set message to {_rawMessage}
- loop {_keywords::*}:
- set {_index} to "{I2C}:{%loop-index%}:{I2C}"
- replace all loop-value with {_index} in message
- set {_rawMessages::*} to message split at "{I2C}"
- loop {_rawMessages::*}:
- if "%loop-value%" doesn't contain ":{1}:", ":{2}:", ":{3}:", ":{4}:", ":{5}:" or ":{6}:":
- set {_rawMessages::%loop-index%} to "{""text"": ""%loop-value%""}"
- set {_rawMessage} to join {_rawMessages::*} with ", "
- loop {_items::*}:
- delete {_name}
- set {_slot} to loop-value
- set {_item} to slot {_slot} of player's inventory
- if {_item} is not air:
- set {_name} to name of slot {_slot} of player's inventory
- if {_name} is not set:
- set {_name} to "%minecraft id of {_item}%"
- replace all "minecraft:" with "" in {_name}
- replace all "_" with " " in {_name}
- set {_name} to 1st char in each word of {_name} to caps
- set {_json} to getJSON({_item}, {_name}, {_keywords::%loop-index%})
- replace all ":{%loop-index%}:" with {_json} in {_rawMessage}
- else:
- replace all ":{%loop-index%}:" with "{""text"": ""%{_keywords::%loop-index%}%""}" in {_rawMessage}
- set {_message::*} to message format split at "%%2$s"
- replace all "%%1$s" with player's display name in {_message::1}
- set {_message::1} to convert string {_message::1} to unicode
- execute console command "tellraw @a [{""text"": ""%{_message::1}%""}, %{_rawMessage}%]"
- options:
- tbl2: "&c█&a████████"
- tbl3: "&a█&c█&a███████"
- tbl4: "&a██&c█&a██████"
- tbl5: "&a███&c█&a█████"
- tbl6: "&a████&c█&a████"
- tbl7: "&a█████&c█&a███"
- tbl8: "&a██████&c█&a██"
- tbl9: "&a███████&c█&a█"
- tbl10: "&a████████&c█"
- tbl11: "&a███████&c█&a█"
- tbl12: "&a██████&c█&a██"
- tbl13: "&a█████&c█&a███"
- tbl14: "&a████&c█&a████"
- tbl15: "&a███&c█&a█████"
- tbl16: "&a██&c█&a██████"
- tbl17: "&a█&c█&a███████"
- tbl18: "&c█&a████████"
- tbl19: "&a█&c█&a███████"
- tbl20: "&a██&c█&a██████"
- tbl21: "&a███&c█&a█████"
- tbl22: "&a████&c█&a████"
- tbl23: "&a█████&c█&a███"
- tbl24: "&a██████&c█&a██"
- tbl25: "&a███████&c█&a█"
- tbl26: "&a████████&c█"
- tbl27: "&a███████&c█&a█"
- tbl28: "&a██████&c█&a██"
- tbl29: "&a█████&c█&a███"
- tbl30: "&a████&c█&a████"
- tbl31: "&a███&c█&a█████"
- tbl32: "&a██&c█&a██████"
- tbl33: "&a█&c█&a███████"
- speed: 2
- loopspeed: 34
- command /asaddline:
- permission: animatedsign.addline
- trigger:
- add location of target block to {animatedsign::*}
- message "&a&lANIMATEDSIGN &f» &7You Successfully Added."
- command /asremoveline:
- permission: animatedsign.removeline
- trigger:
- set {_loc} to location of target block
- remove {_loc} from {animatedsign::*}
- message "&a&lANIMATEDSIGN &f» &7You Successfully Removed."
- every {@loopspeed} ticks:
- loop {animatedsign::*}:
- set {_loc} to loop-value
- set line 1 of block at {_loc} to {@tbl2}
- wait {@speed} ticks
- set line 1 of block at {_loc} to {@tbl3}
- wait {@speed} ticks
- set line 1 of block at {_loc} to {@tbl4}
- wait {@speed} ticks
- set line 1 of block at {_loc} to {@tbl5}
- wait {@speed} ticks
- set line 1 of block at {_loc} to {@tbl6}
- wait {@speed} ticks
- set line 1 of block at {_loc} to {@tbl7}
- wait {@speed} ticks
- set line 1 of block at {_loc} to {@tbl8}
- wait {@speed} ticks
- set line 1 of block at {_loc} to {@tbl9}
- wait {@speed} ticks
- set line 1 of block at {_loc} to {@tbl10}
- wait {@speed} ticks
- set line 1 of block at {_loc} to {@tbl11}
- wait {@speed} ticks
- set line 1 of block at {_loc} to {@tbl12}
- wait {@speed} ticks
- set line 1 of block at {_loc} to {@tbl13}
- wait {@speed} ticks
- set line 1 of block at {_loc} to {@tbl14}
- wait {@speed} ticks
- set line 1 of block at {_loc} to {@tbl15}
- wait {@speed} ticks
- set line 1 of block at {_loc} to {@tbl16}
- wait {@speed} ticks
- set line 1 of block at {_loc} to {@tbl17}
- wait {@speed} ticks
- set line 1 of block at {_loc} to {@tbl18}
- wait {@speed} ticks
- set line 1 of block at {_loc} to {@tbl19}
- wait {@speed} ticks
- set line 1 of block at {_loc} to {@tbl20}
- wait {@speed} ticks
- set line 1 of block at {_loc} to {@tbl21}
- wait {@speed} ticks
- set line 1 of block at {_loc} to {@tbl22}
- wait {@speed} ticks
- set line 1 of block at {_loc} to {@tbl23}
- wait {@speed} ticks
- set line 1 of block at {_loc} to {@tbl24}
- wait {@speed} ticks
- set line 1 of block at {_loc} to {@tbl25}
- wait {@speed} ticks
- set line 1 of block at {_loc} to {@tbl26}
- wait {@speed} ticks
- set line 1 of block at {_loc} to {@tbl27}
- wait {@speed} ticks
- set line 1 of block at {_loc} to {@tbl28}
- wait {@speed} ticks
- set line 1 of block at {_loc} to {@tbl29}
- wait {@speed} ticks
- set line 1 of block at {_loc} to {@tbl30}
- wait {@speed} ticks
- set line 1 of block at {_loc} to {@tbl31}
- wait {@speed} ticks
- set line 1 of block at {_loc} to {@tbl32}
- wait {@speed} ticks
- set line 1 of block at {_loc} to {@tbl33}
- wait {@speed} ticks
- options:
- world: FFA
- on join:
- set join message to "&8| &2Z&aombie &8» &a&l%player%"
- wipe player's sidebar
- set name of sidebar of player to "&8» &2Z&aomies &8«"
- set score "&7" in sidebar of player to 3
- set score "&2L&aebende &2Z&aombies&2:" in sidebar of player to 2
- if {Zombie.live} is higher than 0:
- set score "&7&l%{Zombie.live}%" in sidebar of player to 1
- else:
- set score "&7&l0" in sidebar of player to 1
- set score "&8" in sidebar of player to 0
- on first join:
- set join message to "&8| &2Z&aombie &8» &a&l%player%"
- on quit:
- set leave message to "&8| &2Z&aombie &8» &c&l%player%"
- 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| &2Z&aombie &8» &7Du hast die Apocalypse &61 &7Gesetzt!"
- stop
- if arg 2 is 2:
- set {Zombie.Apocalypse.2} to location of player
- send "&8| &2Z&aombie &8» &7Du hast die Apocalypse &62 &7Gesetzt!"
- stop
- if arg 2 is 3:
- set {Zombie.Apocalypse.3} to location of player
- send "&8| &2Z&aombie &8» &7Du hast die Apocalypse &63 &7Gesetzt!"
- stop
- if arg 2 is 4:
- set {Zombie.Apocalypse.4} to location of player
- send "&8| &2Z&aombie &8» &7Du hast die Apocalypse &64 &7Gesetzt!"
- stop
- if arg 2 is 5:
- set {Zombie.Apocalypse.5} to location of player
- send "&8| &2Z&aombie &8» &7Du hast die Apocalypse &65 &7Gesetzt!"
- 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:
- 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}
- broadcast " "
- broadcast " &aEs ist eine Neue Zombie Welle mit &225 &aZomies Ausgebrochen!"
- broadcast " "
- invoke "scoreboard"
- on death of zombie:
- if victim is in world "{@world}":
- clear drops
- remove 1 from {Zombie.live}
- invoke "scoreboard"
- stop
- else:
- stop
- 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
- sub "scoreboard":
- loop all players:
- wipe loop-player's sidebar
- set name of sidebar of loop-player to "&8» &2Z&aomies &8«"
- set score "&7" in sidebar of loop-player to 3
- set score "&2L&aebende &2Z&aombies&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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement