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.
So maybe this could be adjusted/updated to make the zombies a little less "racially" monochromatic? As it were. The 3 other types of zombie never show up. No adult zombie on spider mounts. No baby zombie on chicken mounts. And no villager zombies. It would be awesome if we could even be able to establish the ratio or chance of spawn as a variable control in the config.yml. So we can adjust how many per so many will spawn as mounted or something.
Hello! I have a question, can you also add a new feature to change all the messages, the warn messages and the safe messages.. Thank you! I love this plugin very much but my server is Dutch and most people can't learn English.. that's weird.. xD!
Hi, Is it compatible with Monster Apocalypse ?
Dang, this mod is hard :(
@DaWe35
There's isn't a config available for that at the moment. Someday when I add new features I'll add that, I added it to my to do list.
(I'm not actively adding new features at the moment because I'm focusing on other projects, but I'm sure I'll get back to it someday.)
How to disable login messages?
it just says /za when i do /za or any commands...
@dbs727
Thanks, I created a Bukkit page for the forked version. It is located at http://dev.bukkit.org/bukkit-plugins/mob-apocalypse/
@nj2miami
Awesome, good luck! I wasn't used to Git and I had just committed my entire Netbeans project so the repo is a little messy and includes some unnecessary files which is why there's a bit of junk in there.
Hey dbs....just wanted to jump on board here since I want to use this mod personally but with some changes so I am planning on forking this and making some of the changes that people have requested and I want.
I am also going to change the name to Mob Apocalypse as well with link backs and credit to your original work of course!
Specifically, I want to add config option to add multiple mob support and adjust the spawning times and allow for multiple attacks per day, all config based.
For instance:
max_attacks: 1 -determine how many attack CAN occur each day
duplicate_mob: true/false -allow for the same mob to attack this day?
mob_type: true/false -config whether a specific mob can be spawned
mob_type_spawntime: 1200 -determine what time this attack will occur -1 will be totally random
mob_warnmsg: -set mob-specific warning message
mob_attackmsg: -set mob-specific attack message
@dbs727
Can you make it so players can get money from these drops?
@chsedv
Currently, no.
Can i make own Spawnpoint for the zombies ?
Or can i make a spezial Time to Spawn? will not give users the /za start command
@PunJedi
Nope. At the moment I'm not focusing on developing this mod other than just occasional bug fixes so it's not likely that I'll add that anytime soon. I'm working on other projects.
Is there a way to do Enchanted items?
To whomever reported issue #21 - 'will not add to plugins' to the issues page, did you /reload in the server's console? If it's not loading it should give you an error message, could you post it here or on the issue page?
@xXxBob
Glad to hear :)
@dbs727
thanks its works now :D
@xXxBob
You probably didn't spell the name of the world correctly in the configuration. Check to make sure that the name in config.yml matches up with the name of the world, I think it might be case sensitive too.
this is all is see when i try to start it manually since it wont start automatic [21:49:10 INFO]: ZA: Nobody is around, the disappointed zombies return to their graves. when i have 5 people on