Distant Farm
Are you tired of talking a walk away from home, and coming back noticing that nothing has grown at all? Is your house situated far from the populated areas where people rarely travel? Perhaps you knew that plants can only grow when there are players nearby?
Distant Farm keeps your plants growing while you're away using the same algorithms Minecraft uses. The plugin keeps track of plants and attempts to calculate their growth based on the time you've been absent. It uses very little memory and CPU, and doesn't require any commands or setup to work!
Credits to KeepGrowing for the base idea.
Current version: v0.2[Alpha]
Notes
- The code will be open-source once the project is near final release.
Features:
- Plants that keep growing with no players nearby:
- Crops
- Nether Warts
- Trees (All types)
- Melon
- Multi-world support
- Plants only grow while the server is online.
- Lightweight with minimal impact on server memory/CPU usage.
- Easy to use, no configuration needed.
Upcoming features:
- Plants to be added:
- Mushroom (brown/red)
- Sugar Cane
- Cactus
- Pumpkin
- Vines
- Permissions-support
- Allow only certain players to use the features.
- Ability to block the feature on specific worlds.
- Support to disable unwanted features to improve performance.
- Add the ability to register existing plants to the system (e.g. by right-clicking with a hoe)
Known issues:
- Plants destroyed by other sources than by hand aren't unregistered, they should unregister on growth-check though.
Hi there. Great idea for a plugin. I've been looking for something like this for a while. I tried using the plugin as my wheat farm is too far away from where we do a lot of stuff on the server. I decided to test it, but to no avail. I planted the seeds and a while later came back to see no progress. I know the plugin was loaded because I was getting the texture error that people have reported with some plants near where I was.
If you would like a copy of the server to test (only 70mb) I would be happy to upload it for you.
I have not spent any time testing this texture glitch, but here is a screenshot, it happen a whole bunch of times to me recently and is only a minor annoyance. http://tinypic.com/r/1z4zu3b/5
After installing this plugin I replanted my wheat farm (some 1024 wheat all together) and returned to find every 16th crop failed to grow. After figuring out where my farm was located in terms of the chunks, I discovered the first seed I planted on a chunk did not grow. I've created the following picture to help illustrate this: http://tinypic.com/r/20rwpdw/5
I've also noticed this issue with netherwart, in the nether. I haven't tested this, but do you have something in place to prevent netherwart from growing in the real world?
I noticed in V0.2[Alpha] you added support for Melons. I upgraded to 0.2 and replanted my melons and came back a day later. The melons have not grown, were they supposed to?
Also, I too have experienced the strange texture bug, mine was netherrack. When destroyed it yielded the proper seeds and wheat. I did not grab a screenshot, however I will next time I see it. I am running Bukkit RB#1597 with the following plugins:
DistantFarm, Minecart Permanence, MultiInv, MultiverseCore, Multiverse-NetherPortals, Multiverse-Portals, PermissionsEx, RollingMinecarts, Spawn, Vault, WorldEdit, ChatManager, Modifyworld, Permissions.
I am not certain if this bug is caused by your plugin, Bukkit, or vanilla Minecraft.
@TheStriker095
That's very odd. I actually have no reason why that would happen. I haven't seen that problem on any of my tests. What other plugins are you using? Do you have any client-mod installed, like Spout? Could you provide me a screenshot of what it looks like?
@blakerandy97
I've decided to not add breeding to this plugin. To my knowledge animals doesn't breed by themselves in vanilla, so I won't be adding this to DistantFarm. The idea is nice though, so I may develop a similar plugin to do that. DistantFarm stays as is though.
I thought it would be a good idea to post here a kinda odd bug.
Crops have door textures when using this plugin, it is very rare but it does happen and its not allways door textures it can be levers, redstone touches, and sevreal other textures.
The crops that have these inproper textures still drop seeds/wheat but look funny :P
Please look into. Thanks
@Thunder_Eye
I too would like to see this feature added to baby animals. Animals are a big part of my farm along with wheat.
@Ollixxl
If the entity-id's are persistent, I believe it would be possible. Seeing how it's something that doesn't happen in vanilla (animals reproducing by themselves), I'm not sure it's in the scope of this project though, I'll think about it. :)
EPIC!!
I tested this over night and today. It woks great ;)
Thank you for doing this :D
Is it possible to add that baby-animals grow when i'm away?
@TomabScblieter
Thanks!
I've been using both the wiki and (mostly) the source-code to work out how different plants grow.
The wiki probably gets its 0.00407% by taking the chance a block is picked on update (0.061%) and then multiplying that by the chance for growth (1/15=6.7%), which is essentially the same method I'm using.
As which blocks are picked on chunk-updates are random, you could theoretically get lucky and have your plant instantly mature, or it could take infinitely long. To solve this I'm averaging it out. So for your nether wart to grow to it's final stage(3) (from stage 1), it'll take approx 41 minutes.
As for the wheat growth, yes, it takes light levels and water into account. If this turns out to be a problem on bigger servers I could probably find another faster/less exact solution.
Cactus and sugarcanes will make for some extra work though since I'll have to make it somewhat compatible with cactusfarms/sugarcanefarms (hopefully fully compatible if possible)
Cheers!
Excellent! I too am glad to see this plugin being developed.
One question though, how do you handle nether wart growth. Is it, as the wiki states, "0.00407% chance of growing to the next stage every 1/20th of a second"? How long should I expect a batch of nether wart to take to reach their final stage?
I lied, two questions: How is the wheat growth calculated? Does it take into account light levels and water?
Again, awesome plugin. Thanks for putting the work in!
Also, I look forward to seeing the source. I'm curious how you went about implementing this, as I had started work on my own version (not just update) of KeepGrowing and hit a few roadblocks.
My fingers are crossed for this plugin :).
Yeah this is great :P
Thanks for doing such a Plugin :P
Hopefully the release is soon ^^
[If there mistakes, tell me because i'm german :D]
Thank you for picking up this project missed this on our server.