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.
The new version is out! You must delete your config.yml file and let the mod re-create it. There is a new field in the configuration that allows you to set the number of zombies that spawn from natural zombie apocalypses and from manual starts without a specified number of zombies.
The new version is awaiting approval now!
@Bathynomus
I haven't uploaded an updated version yet. I'm still working on a newer version, I'll try to get it out this week. I've been busy working on another plugin called SpellCasters.
Should this work with 1.5.1? I just get some errors how ZombieApocalypse.jar can't be loaded.
It says there has been an Internal error
Love this pluin awesome
@bradgillap
I'm glad you're liking the plugin! I'm still working on the next version (sorry that it's taking so long) but in the next version I have messages and rewards only given to people who were in the world when the apocalypse starts and rewards are also determined on a per player basis, so one person may get a different reward than another player. I plan on implementing some more configuration options before the next release.
Please make it for 1.2.5, sickest mod ever love everything about it specially future plans but needing it for 1.2.5, friends liking it to.
- What if someone joins during the apoc. Are they counted as well?
- What if a player is afk
The servers loving this btw. I haven't seen them so excited in a while.
Please let me define the percentage of nights and items that trigger!
@piano9uber
Thanks! I'm trying to think of another penalty for failing to complete a zombie apocalypse, I was thinking about just taking levels away from the player. Thanks for the offer but I love the problem solving so I'll try to figure it out for myself first. :)
@PunJedi
I could do that in the next update. I haven't been updating recently because I've been working on another plugin (a magic plugin :D, it's pretty great in my opinion). Also I was really busy the week before last because I had an interview and attended a job fair. I hope to work more on the plugin in the near future.
Still loving this plugin and looking forward to the updates. I do have one issue but I am not sure how you would best resolve.
1 player joins the world and waits for it to start. Once it starts, more players join and receive the reward even if they weren't part of the initial ZA.
Wow, this needs more downloads. I programmed my own where zombies break blocks and place blocks, so if you need code for that, feel free to ask ;)
hello,
thanks for the plugin, it works great on server. how ever i have a few suggestions if not planned already.
1. more config options
2. ability for players to opt out /ie no zombies will spawn around them, effect the count needed to kill, and remove player from rewards list.
thies options would help out alot.
Thanks Again
Zydoo of Midnight Rebellion
@georgecao1992
Do you want them to break down walls trying to get to a player inside a house? I don't think I'm going to do that but I like the idea of a consequence to the zombie apocalypse.
@PunJedi
Thanks! And yes I can make the broadcast only show to players in that world.
@yucaipawarrior
Pretty sweet man!
Great plugin. Just started using it to encourage teamwork among our community.
I like your future plans and may I suggest the ability to make it so the broadcast only shows up in the world it is set for?
Thank you.
its great..could you made zombie could break down anyblock you want except obsidian and bedrock?