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.
sorry, will need the author to chime in at this point. all I can say is it worked for me but I am using 1.7.2-R0.3.....since the download link says it is for R0.2 I would think it would work.
@Octyenoch
http://pastebin.com/T7JCt2Kk
Anything in the logs? Is it trying to start and spitting out an error, or is it not even trying to start?
This is what I do 1. Stop server 2. copy to plugins folder 3. start server
config is not generated and I cant use commands... I tried to reload server aswell
cool thanks..yeah adding data values would open up a ton of possibilities..like potions or different stone types. if you need to keep the colon delimiter between item and weight, possibly you could pipe delimit it? like MONSTER_EGG|1 : 10 other than that (and I am not familiar with programming in java) but you could have the config indented to group stuff like:
replacewith:
MONSTER_EGG
Chance: 10%
DataValue: 1
SMOOTH_BRICK
Chance:90%
DataValue: 0
@Octyenoch Oh you're totally right, hrmm.. I wonder how I can set that configuration up, because right now the ITEM:# the # portion refers to a weighted value of whether that item will lay more often or not. I should support data values, maybe even enchants and lore! Thanks for the idea, I will work on that for the next release!
saw this plugin and immediately thought chickens that lay mob spawn eggs! unfortunately it doesn't look like it supports data values for material types..tried doing MONSTER_EGG:4 and of course it didn't work, heard the laying sound but nothing came out. MONSTER_EGG by itself does work, but it just creates spawn eggs called "spawn" that doesn't spawn any monsters...might be a possible feature for the future!
New Update: v1.1
Make sure to change your configs, replacements may now have weights and it will look a bit something like this.
Note the change from the previous version configs, removing the dash (-) before the item name and adding a color (:) then a number after. This number will be any weighted number you wish.. the weight is the total number of that item in the item set. It would be like you listed CLAY_BRICK as an option 100 times.
@ridddle
Brilliant! I've kind of been at a standstill on this plugin because I didn't know what other features to add, thank you very much for the idea! This may require me learning how to do math and probability, back to school!
Actually there is a way to weight them but it's not efficient.
I like your concept better and will try my best to add it.
How about adding weighted chances? I might want to replace eggs with bricks and golden apples but I think golden apples should only be produced 1% of the time… do you think that would fit with the plugin?
Maybe make it so that you can add weight as a number after the material name?
@jetstreamLt I have a fix completed and uploaded to bukkit, pending approval. This should do do the trick, let me know thanks.
Well since it seems bukkit is taking their sweet damned time approving my plugins - direct link for PwnChickenLay v1.0.2 - tested working in 1.7+
@jetstreamLt OK it looks like I have potentially tracked down the problem to using AIR as the replacement for an egg.. it looks like bukkit it now ignoring that as an itemstack and laying the egg anyway.. trying to work in a fix ASAP
@jetstreamLt Sorry for the late reply, I'm trying to track down what changed in 1.7.2 that is allowing chickens to still lay eggs.. I hope to have some fixes tested shortly.
@Zombiemold
Zombiemold as in Markiplier's Zombiemold? :O
Holy anvils.
@JetstreamLt
A chicken-run economy sounds terrifying.
@tremor77
Its confirmed they still lay eggs. My economy is strongly based around this plugin and people are now able to make chicken farms with thousands of chickens. Is there a change there could be a way to change the percentage of eggs? To maybe like 1 every hour?
In early testing for Bukkit 1.7.2 development builds, it appears that occasionally a chicken will lay an egg instead of the replacement item.. at this time it seems a bit random, I will debug as best I can but this may also be a bukkit development issue at the current time, we'll see what happens when they release a recommended build?
@Zombiemold Not to get into an internet fight here bro, but it's NOT a matter of perspective.. intelligent rule of thumb for all things destined for PRODUCTION, to be thoroughly tested, unless you're also the guy behind the US Government's Healthcare Website. I AM changing my default config in light of your issue, but to be perfectly honest you should not be running a server with any hope of quality control if you are putting plugins into production without testing.. frankly, 75% or more of the plugins on DBO are absolute junk, and with the amount of plugin conflicts and really BAD amateur developers, continuing to not heed my advice of always test, and always retest, is going to burn you worse than a few laid diamonds at some point.
@tremor77
I'd say that it is bad practice to distribute plugins with obviously unbalanced default configurations and expect everyone to do thorough tests of every plugin they update on non-production servers.
I run several large servers and I don't have the time to scrutinize every single update coming into the many plugins that I manage. I expect them to generally work, and if something needs tweaking later on I'll tweak them.
But then again, it's all a mater of perspective, right? Glad you fixed it.
@Zombiemold It is a BAD PRACTICE to blindly update or install plugins into a production server without first checking and editing your config files and/or reading the plugin changelog. For future reference I will make the default example config.yml more n00b server admin friendly. Thanks for pointing that out.