PwnPlantGrowth
PwnPlantGrowth
Change the rate at which all plants can grow (and die) per biome and based on natural lighting! Great for roleplaying, territory control, and economy minded servers where food is terribly overabundant and too easy to get.
The basics behind this plugin are designed to slow down or even disable the farming and growth of nearly every plant item in the game along with Biome specific support. Choose which Biomes and light level certain plant types can grow, and at what rates they can grow. You can also configure a chance that some plants will even die! (Replaced by dead bush or vine). This will make tending to massive farms more difficult, balancing your servers food economy and making the game more enjoyable for those who like a bit more realism and challenge.
Carrots, Melons, Wheat, Sugar Cane, Trees and more! The way this plugin works is that it checks for when a plant is about to grow, then based on your configuration settings it gives that growth event a chance to succeed or fail. If it fails, it also has a chance to die!
- Looking to block farming NetherWart entirely or restrict it to the Nether only like it used to be?
- Want to make some things like Melon farms less overpowered?
- Want to force Cocoa to only grow in the Jungle?
- Want to make desert growth rates lower than other areas?
- Want to make buckets pour water like real life buckets?
- Want to make farms be above ground and under natural lighting?
This is the plugin for you!
Features
- Configurable by plant type.
- Enable, disable or set a percentage of default for each plant's growth.
- Configure specific plant types that aren't commonly made available by other farming plugins (such as cactus, sugar cane and specific tree types)
- Whitelist Biomes that a plant can grow in.
- Add a configurable chance of death (plant dies and in some cases turns into a dead shrub).
- Configurable Per Biome for each plant type.
- Adjust the behavior of water source blocks in buckets and dispensers.
- Configurable natural light level.
- Give priority growth rates to certain biomes in outdoor farms while hampering growth rates in poor biomes and underground, great to get players out of their caves and into the world!
Installation
Simply place the PwnPlantGrowth.jar into your plugins folder and run your server! If you are upgrading from a previous version, it is a good idea to copy and delete your config.yml and regenerate a new one in case something has changed. (A future update will check for config file changes and errors)
Configuration
Edit plugins/PwnPlantGrowth/config.yml
- For each plant type, set the percentage from 0 to 100. 0 will disable the plant type from growing at all. 100 will allow plants to grow at their normal rate. The lower you set this number, the less likely the plant will be to grow.
- For each plant type, set a death percentage like above. This is a chance of death only if the above fail chance is successful. For example, if growth percent is 50% and death percent is also 50%, then the overall chance a plant has of dying is 25%.
- For each plant type, set a whitelist of biomes in which it can grow. And empty set means it can grow anywhere. Empty set looks like []
- For each plant type, configure option specific set of biomes, with their own growth and death rates.
Bukkit Biome List - There are a lot!
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.
- PwnBuckets - Previously part of PwnPlantGrowth, PwnBuckets grew into it's own plugin that makes liquids (water, lava, ice blocks) behave more naturally when poured from buckets or dispensed from dispensers.
- PwnChickenLay - Configure or block how fast chickens can lay eggs, and change the egg to any possible item.
- 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.
Plugin Metrics
This plugin utilizes a plugin metrics system, which means that some information is collected and sent to bstats.org.
If you wish to disable this feature, you can do so by opting out, which you can do in the config file under /plugins/PluginMetrics/
@s0f4r
The .jar's physical size is only 40k and it would be half that if I didn't include the source and compressed it. The code for plant growth or water behavior, when disabled is disabled at the highest level possible in code and leaves little to no footprint on the server either.
That said, the water behavior component could certainly be it's own standalone plugin, I'll consider it in the future IF I continue developing. I'm at a point right now where I might be walking away from Minecraft.... so, we'll see.
I love this plugin, but I would really prefer it if you split it into two separate plugins:
While I can see how you feel these two aspects are related, they are completely different aspects and have little to no overlap in the code.
I understand that you wrote this plugin to do both these tasks since these two separate tasks create the game environment you are looking for, but others may very well not desire this combination, and for them it should be possible to separately get each gameplay effect without the need for all the other code.
Thanks for considering. Cheers, keep up the good work.
@tremor77
Odd. When I ran it through a YAML validator earlier it was clean but it threw a few errors this time. It's all fixed now. Thanks!
I can't seem to get the plugin to recognize the configs. No matter what I change nothing happens. I've tried turning on the debug mode but no file is created.
http://pastebin.com/d9bs1EjE Pastebin of my config
And I'm using Spigot 1373 if that helps. I can provide any other information you may need.
Thanks!
@Zach_1919
Yes this plugin works in 1.7.2, however the blockgrowevent is only for some plant growth, there is also the structuregrowevent which is for trees. Also in the blockgrowevent, there are many cases in which the block it reports is "AIR" - this is due to plants that actually grow vertically or horizontally from the event block. Check your listener by adding something like this: e.getBlock().getType().toString(); and printing/logging it.
Is this plugin working in 1.7.2? I am working on a plugin where I need to detect plant growth, and I looked into your source and you used the BlockGrowEvent, which didn't work for me. Is there anything you had to do to get it to work?
Is this plugin working in 1.7.2? I am working on a plugin where I need to detect plant growth, and I looked into your source and you used the BlockGrowEvent, which didn't work for me. Is there anything you had to do to get it to work?
@pilvimaa Thanks I'll check it out, been so busy lately I haven't had much time to work on updates or test configs, I need to update my video tutorial with all the new features still..
Jungle trees (trees in general... ?) seem to be growing anywhere disregarding the settings.
Here is my config:
http://pastebin.com/n6Ti5DLf
@Silversbane I'll take a look at bioseasons and see if it has an API i can hook into. As farm as animals go the only plugin I have deals with chicken egg laying. I think for animals perhaps mobcontrol or a plugin like that can deal with despawning but it relies more on a "max count" in a chunk concept.
Do you have a plugin just like this for Animals as well? I hate how fast animals grow and how they never die of old age. Also does this work with http://dev.bukkit.org/bukkit-plugins/bioseasons/ ? Basically what I want to happen is if they don't harvest their crops before winter they will all slowly die. Thanks
@Thuzle Can you try enabling the log file, also, try enclosing the whole area or going underground, the "natural light" setting is a bit different from "actual light". I made a few tweaks to the upcoming 2.1 version, but wasn't able to find anything directly..I need to test with an array of other plugins to see if perhaps it's a conflict (craftbook or spigot), can PM me your plugin list?
@Thuzle
I'll check that thanks for the info.. been busy lately, hopefully I can get some time to update and test a few things this coming weekend.
Plants are still growing under the min_natural_light level. I set it to 15 and placed blocks at varying heights (1, 2, 3 high) over a crop that was growing. I checked the light levels with Craftbook's Glowstone and saw that they were all under 15. Only the one directly under a block with a Light of 0 didn't go. The others grew just fine.
@pilvimaa I'll take a look at whats going on and see if there what I can find. Might be a few days, ultra busy atm..
It seems that sugar cane is not affected by PwnPlantGrowth's settings on my server. It's growing at vanilla speed and not dying.
Is it a bug or do I have some setting incorrectly?
But it also seems that Spigot's growth speed setting does not affect sugar cane. I was hoping PwnPlantGrowth's would but it doesn't seem that way.
EDIT: Just to be clear, I've also tried settings like Growth:40 and Death: 100 and there is no difference. No plant deaths, no slow growth. And it grows just fine on any biome. Other plants seem to work ok, this is just Sugar Reed problem AFAIK.
@tremor77
seems to have problems with certain biomes that have been renamed. one example is extreme_hills_edge which no longer seems to exist in 1.7 under that name. so whatever i put in the config, in extreme_hills_edge nothing will grow :(
@Toxicterror1991 It has not been tested on 1.6.4, I can't think of any reason off the top of my head why it won't work though. If you plan to use it, run a test server first, let me know how it comes out.