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.
I made a gameplay video. Just in case you want it, here it is http://youtu.be/qJo52HsibCo
@Mcdemichael
I could look into it but I'm not sure. I think I'd end up having to artificially damage the players. If I did add something like that I'd make it enable-able/disable-able the feature in config.yml.
@tribalthomas
I've never tried but I'd assume so as long as you put the other world's name in the config.yml file.
@14zelliott
I'll probably add that feature early next week. I'm away from my computer that I program on right now.
I WANT my zombies to be able to hurt players in safe zone, is there a way this is possible so the players do not run into safezone right before they die?
can this be set to work in world other than the overworld? can we make it so other mobs spawn instead/ with zombies?
I will definitely try this when we can configure the amount of Zombies will spawn and the chae of the apocalypse. I will be keeping a close eye!
@GoosemannX28
Can you tell me the name of your world and paste what's in your config? Case is important. Perhaps try updating your Java and make sure your server is up to date.
What is with the config. I entered the info to the letter, and all the server does is error continuously.
@judicat0r
Thanks!
This plugin rocks!
@volderman
Can you be more specific?
can u add like gamemodes?
Be sure to download the newest version! I've made it so only OPs can do /za start and added a warning about the possibility of a zombie apocalypse at 8:00 pm so you can prepare.
@Broadcastinq
If your world name is just "world' you don't need to change the name, all you need to do is set configured to true. :D Have fun and tell me how you like the plugin.
When I add this into plugins & run server it creates config.yml.
Now, what do I put into this, my world name is just "world"
reply to me with exactly what to have in the config for basic copy and paste. So I can get this started! :) thanks!
@TotalZombified
Check to see if Craftbukkit, Java, and all your plugins are up to date.
@CredenceX
@lantami
I uploaded a new version that will only allow /za start to be used by OPs and a few other fixes. It's awaiting approval now.
@superalphajellybean
Yes it will work, you just have to set the world in the config.yml that you want the plugin enabled on.
OK so i have a server with like 6 or 7 worlds and they differ from survival games worlds to spleef worlds to creative and survival worlds. now my question is can i somehow only enable this in one world?