Inactive [MECH] CHDistantFarm v1.0 - Grows your Plants while the Chunk is unloaded [1.1-R3]

Discussion in 'Inactive/Unsupported Plugins' started by Zacherl, Jan 11, 2012.

  1. Offline

    Zacherl

    Hey all,

    this is my first public plugin. Its very easy to setup and to use.

    Features:
    • Keeps ur plants growing, while the chunk is unloaded
    • Supports all important plants
      • Nether Warts
      • Crops
      • Melons
      • Pumpkins
      • Cactus
      • Sugar Cane
      • Saplings
    • Uses the original minecraft algorithms
    • Low level caching for maximum performance

    Installation:
    • Put the plugin in your plugin directory
    • The plugin uses the database from your bukkit.yml (default is sqlite)
    • Replant the blocks that you want to grow when the chunk is unloaded.

    I know there are at least two other plugins with the same features, but the first one dont get updated anymore and the second one updates very slow, so i decided to make my own.

    Download:
    http://dev.bukkit.org/server-mods/chdistantfarm-grows-your-plants/

    Please tell me, if you found any bug. I had some troubles with the bukkit database implementation and im not sure if i got rid of all bugs.

    Changelog:
    Version 1.07
    • Growth rate multiplicator configuration value added
    Version 1.06
    • Support for normal and big jungle trees added
    Version 1.05
    • Changed the default chance of growing a big tree from 50% to 10%
    • Configuration file fixed
    Show Spoiler
    Version 1.04
    • Configuration file added
    • New event system implemented
    Version 1.03
    • Fixed a bug that caused plants to unregister at certain conditions
    • Debug messages removed
    Version 1.02
    • Huge performance optimizations (more than 1000 times faster)
    • Fixed a bug that caused melons and pumkins to grow more than one nearby fruit block
    • Several minor bugfixes
    Version 1.01
    • Fixed an infinite loop for unload times greater then 3 hours
    • Fixed some bugs that caused certain grow propabilities not to occur
    • Implemented the new Minecraft 1.1 algorithms for melons and pumpkins (they can now grow melon / pumkin blocks on nearby dirt and grass locations)
    Version 1.0
    • Initial release

    Best regards
    Zacherl
     
    UpTide and DocMartens like this.
  2. Offline

    gameswereus

    Very nice.
     
  3. Offline

    alfeh

    Please make an external link. I'd love to try it out but I really can't be bothered to download and reupload onto my dedi.
     
  4. Offline

    Zacherl

    Here you go:
    http://dev.bukkit.org/server-mods/chdistantfarm-grows-your-plants/

    Changelog:
    Version 1.01
    • Fixed an infinite loop for unload times greater then 3 hours
    • Fixed some bugs that caused certain grow propabilities not to occur
    • Implemented the new Minecraft 1.1 algorithms for melons and pumpkins (they can now grow melon / pumkin blocks on nearby dirt and grass locations)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 23, 2016
  5. Offline

    Zacherl

    Changelog:
    Version 1.02
    • Huge performance optimizations (more than 1000 times faster)
    • Fixed a bug that caused melons and pumkins to grow more than one nearby fruit block
    • Several minor bugfixes
     
  6. Offline

    md_5

    Can you please remove the last 2 changelogs from the spoiler and then tag me
     
  7. Offline

    Zacherl

    Done
     
  8. Offline

    md_5

    Approved
     
    Zacherl likes this.
  9. Offline

    xTRIxEDGEx

    Could you make it so we can choose which blocks we want to grow while the chunk is unloaded? Specifically i want to disable cacti from growing while unloaded, as i don't want auto cacti farms lagging my server.
     
  10. Offline

    Zacherl

    Yes i can make an option for that. But it wont lag even with cacti enabled. While the chunk is unloaded, the plugin stays inactive. When the chunk gets loaded again, the plugin calculates the passed time between unloading and re-loading and grows the plants.

    On my test system it needs only ~10ms to grow a large amount of plants in a chunk (depends on how many plants are registered in a certain chunk; time independent).
     
  11. Offline

    R_Y_A_N

    ok, i have seen much better young padawon

    not really

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 23, 2016
  12. Offline

    xTRIxEDGEx

    And you're point to post on this thread is?
     
    Tanite, Noah_Ivaldi and Zacherl like this.
  13. Offline

    Zacherl

    Whats your problem kid? oO.
     
    Noah_Ivaldi likes this.
  14. Offline

    josip1

    Trying it out.
     
  15. Offline

    Zacherl

    Changelog:
    Version 1.03
    • Fixed a bug that caused plants to unregister at certain conditions
    • Debug messages removed
     
  16. Offline

    Chris Schwing

    Compensation issues apparently.
    Also, he only has 3 posts, figured someone made that account just to be nasty.
    Great plugin man! =)
     
    Noah_Ivaldi and Zacherl like this.
  17. Offline

    xTRIxEDGEx

    Also, i installed this on my server, but it hasent really been put to use then, so i can't really say much about it.
     
  18. Offline

    Noah_Ivaldi

    What if we use another plugin to alter the growing algorithms? The new server that I will be administrating with friends will run an economy. Within the first day of gameplay, everyone has more food than they will ever eat. Not only can no one sell the stuff, but we can't even give it away; we end up throwing stacks of food into dispensers. Thus, we intend to use a plugin to make crops grow much more slowly while using another plugin to lower the food drop rates of mobs. Will this cause a conflict by allowing crops to grow at normal rates in unloaded chunks, or will it adapt to the augmented rates? If the former, I would like to suggest that, in a future update, compatability with crop growth-altering plugins is added.
     
  19. Offline

    Zacherl

    What plugin do you use to modify the growth rates? I have to look at the sourcecode, but im 99% sure it will confilct with my plugin. Support for this kind of plugins is nearly impossible, because i would have to implement all the custom grow algorithms.
     
  20. Offline

    Noah_Ivaldi

    We're not using one, presently, as our server is just getting started. We've been looking around for stuff like LessFood and OtherDrops, though we're going to use Mobs until we can afford a better server. We need lots of donations, 'cause we're poor... >.<; I kinda' figured that it would be problematic. Try looking at the source codes for those plugins, and if it looks like too much trouble, don't worry about it.
     
  21. Offline

    Zacherl

    Changelog:
    Version 1.04
    • Configuration file added
    • New event system implemented

    This release will only work for CB 1.1 and up!
     
  22. Offline

    Kannibale

    Perhaps you want to update your title because you are no longer on v1.0 but v1.4. I will add this when I get home!

    Thanks
     
  23. Offline

    matthew_goodman

    Hey...been looking for soemthing like this... does the plants/crops grow when nowone is on the server?
     
  24. Offline

    Zacherl

    Yes it will.
     
  25. Offline

    Talkyn

    YOU ARE AMAZING! Thank you so much for this. I love the way you implemented it btw, clever!
     
    Zacherl likes this.
  26. Offline

    Zacherl

    Changelog:
    Version 1.05
    • Changed the default chance of growing a big tree from 50% to 10%
    • Configuration file fixed
    Craftbukkit 1.1 R-3 is requiered!
     
  27. Offline

    groovynatureguy

    Any tips to setting the database up? I can't seem to figure it out
     
  28. Offline

    Zacherl

    The plugin will use the default SQLite database by default. If you want to switch to MySQL, you can just edit the bukkit.yml file in your server home directory.
     
  29. Offline

    owenftw

  30. Offline

    Zacherl

Share This Page