ZombieApocalypse
Zombie Apocalypse
by sheodox
What is Zombie Apocalypse?
ZA adds the possibility for a zombie apocalypse to start at 9:00 each night. Zombies will spawn around each player, and you must defeat the zombies before morning to receive a reward!
How does it work?
At 9:00 P.M. there is a configurable (default: 20%) chance for an apocalypse to start and a configurable amount of zombies (default: 40) will spawn and a configurable percent of them (default: 50%) need to be killed for a reward to be gained. The apocalypse can be started with a command (optionally you can specify a number of zombies per person to spawn). Each zombie will spawn 1-14 blocks away in both the X and Z directions, one of coordinates is offset by another 10 blocks so the zombies don't spawn too close.
The rewards are configurable:
Each possible item needs to specify these things - (these are explained in config.yml)
- Item name
- Chance
- Quantity
- Message
Default Items
Item - Chance
- Diamond sword - 5
- Diamond chestplate - 5
- 2 x Diamond - 25
- Gold sword - 25
- Emerald - 25
- 1 x Diamond - 50
- 5 x Iron ingot - 150
Commands
/za help - displays information about the plugin.
/za version - displays the version of the plugin.
/za commands - displays a list of all commands.
/za kills - shows the kills/goal of the current apocalypse.
OP commands:
/za start - manually starts the zombie apocalypse.
/za start <integer> - manually starts the zombie apocalypse with <integer> number of zombies spawned per person.
/za getitem - gives the name of the item in your hand, used for configuring rewards.
Configuration
Configuration of Zombie Apocalypse is very simple. In config.yml enter the name of your world in the world field and change false to true in the configured field. If you don't do this the plugin will not load and every time someone logs in it will say the mod needs to be configured. If the world name isn't valid and it says it's configured you will get some null pointer exceptions from two tasks. There is also a field called "numzombies" that has a default value of 40, this is the number of zombies that will spawn per person from both naturally occurring apocalypses and when using the command "/za start" without specifying a number.
As an example my server has a world named Trysnor so I set up the config.yml file like this
#Enter the name of the world you want to use for the zombie apocalypse #Replace "world" with whatever your server's world is world: Trysnor #numzombies is the amount of zombies you want to spawn per person from a default event. numzombies: 40 #when you have configured this file with your world's name change false to true configured: true
You can also configure the chance per night for the apocalypse to happen. There is a message at 8:00 PM warning that the apocalypse might be coming, and a message if it doesn't happen. Both of those messages can be disabled. There is also a limit to the number of zombies that can spawn. If this number is anything under one there is no limit. If the "hardlimit" is over one, it will spawn only up to that many zombies.
FOR SUGGESTIONS AND BUGS
Please create a ticket here: https://bitbucket.org/sheodox/zombieapocalypse/issues/new I'm not actively developing this mod because I'm working on other projects. If you would like to fork this mod there is a git repo on the repository tab.
@pauliasas98
I will do that tomorrow. Thanks for letting me know, when I checked last weekend only 1.6.1 was out.
@AwsomeG2
You can type /za kills to see how many have been killed already. I don't think adding an actual UI element to the screen would be possible without using Spout. Perhaps I'll add that functionality someday.
Ubdate to 1.6.2 please and fix bugs crashing server
It would be great if you could add a scoreboard so you knew how much left to kill before you defeat the horde
@theraptor2002
You want to type in 1 because the actual percentage is 1/chance so 1/1 = 100%. Have fun!
Hi!
So i was changing up the config for my server(i have a zombie survival server) and set the chance to 100. After i finished i started up my server and set the time to night. it said i was safe. i was confused. chance you please tell me what to type in for a 100% chance of a zombie apocalypse?
Thanks
theraptor2002
Hi sheodox, I found this plug-in an great Idea, and when I saw that it has been updated I was very Happy... But there is a little problem it could happen that somebody could camp somewhere, during the "Apocalypse" and it would be very stupid... It would be possible to set an AFK in this moment so that the server detect when a player stay still and kick it from the server ? It would be perfect...
P.S Sorry for my bad English I hope that you understood everything...
I just uploaded new versions of the plugin (they're waiting for approval, expect at least 12-ish hours before they're available, it usually takes a bit for them to be approved).
Versions for MC 1.5.2 and 1.6.1 were uploaded which include configuration for chance/night, enabling/disabling two of the messages (8:00 PM warning and when no apocalypse happened) as well as a hard limit to the number of zombies that spawn.
@eogen
That's a great idea for the hard limit. I also think I'll add configuration for those messages.
Thanks for the suggestions man!
@eogen
It's probably because the mod is for an old version of MC. I plan on updating it and adding the configuration for the chance per night tomorrow morning.
Also, in case you are interested, Error when user runs /za command:
2013-07-05 09:21:44 [SEVERE] null org.bukkit.command.CommandException: Unhandled exception executing command 'za' in plugin ZombieApocalypse v1.4.0 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:189) at org.bukkit.craftbukkit.v1_5_R2.CraftServer.dispatchCommand(CraftServer.java:564) at net.minecraft.network.NetServerHandler.func_72566_d(NetServerHandler.java:1389) at net.minecraft.network.NetServerHandler.chat(NetServerHandler.java:1249) at net.minecraft.network.NetServerHandler.func_72481_a(NetServerHandler.java:1175) at net.minecraft.network.packet.Packet3Chat.func_73279_a(Packet3Chat.java:60) at net.minecraft.network.TcpConnection.func_74428_b(TcpConnection.java:442) at net.minecraft.network.NetServerHandler.func_72570_d(NetServerHandler.java:222) at net.minecraft.network.NetworkListenThread.func_71747_b(NetworkListenThread.java:53) at net.minecraft.server.dedicated.DedicatedServerListenThread.func_71747_b(SourceFile:30) at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:847) at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:320) at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:716) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:600) at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:573) Caused by: java.lang.ArrayIndexOutOfBoundsException: 0 at com.gmail.deathbysniper727.zombieapocalypse.ZombieApocalypseCommands.onCommand(ZombieApocalypseCommands.java:20) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
Certainly could be any number of version/mod/plugin conflicts, but Figured I'd at least report it. No other errors from ZA.
No one hates people who drop in, leave "suggestions" and then drop off more than I.
That being said...
Things I would like to be able to turn-off / Set in config:
1) Player login message that says run /za command. (I don't want the players to run the ZA command - it errors on my server)
2) Hard limit on MOB count. (I don't need things generating *so* many mobs that it crushes the server over time.)
3) Warning when ZA event is not going to happen. (I like the warning that it will happen; I don't need mods/plugins telling all the users when things are *not* happening, or *might* happen. I have 30 mods and 99 plugins, I don't need them to be *chatty*)
Thanks, and nice plugin.
@Archpoet
Yeah, sorry. I just graduated college and I've been working a lot lately and don't have much free time anymore. Adding the configuration shouldn't take long, I've just been putting it off. I'll try to get it done this weekend. :)
Not to step on the author's toes in any way whatsoever as I'm sure he/she is a busy person, but I was dismayed to learn that this plugin was not updated to support 1.5.2: so I updated it. :)
I did not change *anything* else besides the version number, so any and all problems and issues that existed in the previous version also exist here, (and maybe even a few more if there were sufficient changes between 1.5.1 and 1.5.2.)
My goal here is to assist the bukkit community because this seems like a really cool plugin. This is a bandaid.
You can download the 1.5.2 version here: ZombieApocalypse.jar
So when can we expect this to be updated? Configurable chances, prizes and times would be amazing.
Awaiting the update for the configurable chance of happening each night, then its going right to my server! Cant wait!
you should add set spawn locations for this would make it even more amazing :D so someone can set up few spawn points and have to protect and area :P js
@dbs727 hey i have a problem when i type "/za start" it does nothing :/
@Jacobdog34
That's probably the next thing on my list.
@atomicpineapples
Try updating your Java.