PwnChickenLay
Control what your chickens lay and how often! Want to block egg laying entirely? Want chickens to lay eggs and every so often, lay bricks instead? Want chickens to lay gunpowder instead of eggs? It's all up to you.
This plugin was originally designed to slow down or disable the rate at which Chickens lay their eggs, so your server's economy and food supply aren't overwhelmed by players exploiting that chicken farm. Pumpkin Pie and Cake will be worth something again, and chickens won't be running around rampantly taking over your server!
But now as of Version 0.6 - we've added some fun to PwnChickenLay! Instead of just controlling egg laying rates, you can replace eggs with other item drops! Replace eggs with AIR to make chickens lay nothing at all, or, maybe those chickens will lay golden eggs.. or diamonds? Imagine the possibilities.
Background
Per - http://www.minecraftwiki.net/wiki/Chicken_egg - "An Egg is a food item laid by Chickens every 5–10 minutes (it takes 40 minutes for 9 chickens to lay 50 eggs, so 7.2 minutes/egg)."
Now for simple math. Double chickens to 18, 50 eggs in 20 minutes. Double chickens to 36, 50 eggs in 10 minutes. 72 chickens, 50 eggs in 5 minutes. That's 10 eggs per minute or 1 egg every 6 seconds.
This is very much an exploitable problem and PwnChickenLay aims to fix that for server owners.
Installation
- Stop your server.
- Place the PwnChickenLay.jar in your /plugins directory.
- Start your server, note that the /plugins/PwnChickenLay/config.yml file has been created.
- Stop your server.
- Edit the /plugins/PwnChickenLay/config.yml to your liking. Most Recent Config.yml
- Start your server.
Note: It is important to always test ANY plugin you install prior to deploying it for production, you as a server admin, should always consider this to be Rule #1 of running a server.
Configuration
- Always check your configuration file against the most recent version when installing or updating ANY plugin. Changes in configurations can alter the way in which your server and plugins function.
- In PwnChickenLay the primary configuration value is layChance. A layChance of 100 will ALWAYS lay chicken eggs. A layChance of 0 will always lay something from your replacement list.
Commands
- /pwnlay reload - Reload the config.yml so that new changes update without a server restart.
- /pwnlay save - Save the current config.yml (for future enhancement of in-game config edits).
Permissions
- pwnlay.pwnlay - Permission to use the /pwnlay command.
To-do / Bugs
- Stop the sound of eggs being laid even when none drop due to this plugin. (May not be possible without packet modification)
Command to reload config- Edit config from in-game?
Per world custom settingsAllow chickens to drop items with enchantments and lore
Video
Links & Info
- PwnFilter - Absolutely the best and most powerful chat and command filtering plugin available. Also does aliases, scripting, sign and anvil text filtering and so much more.
- PwnPlantGrowth - Take control over plant growth, per biome configuration on all growables.
- ResPwn - Configure useful and fun player respawn options like temporary forcefields, armor and weapons.
- PwnPvpBalance - Balance the tide of uneven game mechanics with options to help players with poor PvP skills be more competitive, and give good players a better challenge.
- Pwn9.com - Visit the Pwn9 Gaming Community, the place we call home. Check out our Minecraft servers, other game servers and fun gaming community.
- Discord Channel: Join #pwn9 on http://discord.pwn9.com - feel free to ask plugins questions on the channel or just come hang out with us.
Plugin Metrics
This plugin utilizes bStats plugin metrics system, which means that some information is collected and sent to bstats.org.
If you don't want that your server sends data to bStats you can disable it by setting enabled to false in the bStats config file. The config can be found in the /plugins/bStats/config.yml file. bStats has nearly no effect on your server's performance and the sent data is completely anonymous so please consider twice if you really want to disable it.
Want chickens to lay eggs and every so often, lay bricks instead? That's funny. Because he'll sh-crap bricks
@AMDSpartan
Yea. I just love how he went into the theory of like how many eggs a chicken lays xD That just shows dedication.
In all honesty though, good job on the plugin :) Looks like you've done great. :D
Nice math, Amazing Plugin
@kitzmaan75350
Should be compatible with 1.8 servers already, but I've uploaded a new version specifically compiled against 1.8.
could you please update this plugin? i wonna use it for my server.
@Jabberwockie666 Wow first thanks.. and glad my comments help.. Java is not the language I generally develop in so it helps me to know what I'm doing commenting my code well. I'll have to take a look at how i'm managing the per biome config, I might have missed something simple, as I basically copy/pasted the concent from my pwnplantgrowth plugin.
Hi tremor77
Thank you for adding this! I have been working with your plugin for some time and recently finished a 1200 line per biomes config featuring many _item with meta data, enchants, names with color and more items than you probably intended your plugin to output! My 90 slot server's few members are quite pleased with the results. There are no bugs or unexpected results after many hours testing biomes output with spell based world edit chicken/hopper farm schematics sitting on biome borders testing 4 biomes a time in some cases. 250+ chickens each time. /horror
On initial trials... The perBiomes: true may not work or cause non WARN: type INFO: console spam if the user is in a biome not listed. IE If enable per biomes true ALL biomes must be included(?) I recieved alot of errors UNTIL I added every biome. Running Bukkit build 3092 1.7.9 R0.2
Every biome. Config.yml http:pastebin.com/Vr6nGf1N ^ expires 2 weeks from post date.
if item is anything other than an egg, return if(is.getType() != Material.ROTTEN_FLESH) return;
The above lines make your plugin cause all zombie & pigmen to drop items in the config instead of rotten flesh :) It works fine per biomes. Is there a way to add this to the if(is.getType() so it does replacewith for both EGG and ROTTEN_FLESH?!? I'm like days old at java editing.. it bullies me so :D I tried else if(.....ROTTEN_FLESH and some other wild crazy stabs in the dark but no joy.
Is it even possible?
Again thanks for the plugin, it adds lots of fun and diversity to otherwise boring chickens. I read many java plugin tutorials and your comments in code helped me more than any of those. Ty!
Crafty Castaways - Jabber
@oliver276
Ya I was thinking about that for the whole suite of plugins I do, I'd have to build a config.yml updated to go with it though because I tend to alter configs pretty regularly from version to version.. thanks for the link.
@tremor77
You should add an auto-updater
There's a really good one here: http:/ /forums.bukkit.org/threads/updater-2-1-easy-safe-and-policy-compliant-auto-updating-for-your-plugins-new.96681/page-6#post-1901002
@Powercows Easier than I thought, I got per biome support added in the upcoming 1.4 release.
@Powercows Good idea, I like it and i'll add that to my next update to-do list.
this doesnt have enough downloads.
Any way to add per biome support.
frozen chickens lay less eggs than comfortably warm ones.
@Octyenoch oh damn, i forgot data values.. lets call that 1.3 - it should be simple to setup now that I came up with a format. Took me a while to figure out what was going to work best, and I dedcided upon declaring those special items separately and giving them a name. Will probably look something like this
Instead of name and lore we'll do data value, this whole thing is very beta right now, i dont do enough checks in code to make sure its configured right, so its pretty easy to break.. i'll add the data value for 1.3
looking at new config for v1.2, good step forward ;) still no datavalues, or is it just not given as an example? like blue wool is 35:10?
@guruserver Sorry for the late reply, you could have them lay XP bottles the way it is currently setup.. I'll look into XP naturally though.. I have to work on requests for lore and meta first though, hopefully I'll get some free time to work on this soon.
could you add a option for chickens to lay xp?
@susup Ya, will do.. I must have been lazy I usually compile on java 6, I'll try to get it done by later today.
@tremor77
yup, java 6 :/ but I am running remote server and I do not have permissions for installing :/ can you recompile it please?
@susup What java version is your server running? do java -version on the command line. It looks like I may have compiled my jar with java 7, if you're running java 6 there may be an incompatibility there.
@tremor77
Thanks man! Sorry for the late reply. Really appreciated!