[MECH] ChestHarvester 1.2 - turn chests into stationary farming equipment [1060]

Discussion in 'Inactive/Unsupported Plugins' started by jascotty2, Apr 2, 2011.

  1. Offline

    jascotty2

    ChestHarvester - turns chests into stationary farming equipment
    Version: 1.3
    Download: ChestHarvester.jar

    ChestHarvester is now on BukkitDev

    - i will not be updating this thread now, check there for updates ;)





    Commands:
    /chestharvester (ch) reload: reload configuration file (OP only)

    Features:
    chests can collect drops within a 1-block radius on the faces or from the top
    clicking on a chest will farm the surrounding area, or in the direction the player is looking, if enabled
    supports double-chests!
    to minimize server strain, scans every 5 seconds & only allows farming every 2
    (this can be changed with "AutoCollectScanInterval" and "ManualHarvestWaitInterval" in the config)
    can be set to use a hoe to till new farmland
    can harvest sugarcane & cactus, not just farmland :)

    Permissions:
    ChestHarvester.harvest for a user to be able to click on a chest for it to harvest
    (can be disabled)

    My small farm:
    [​IMG]
    (and, a few moments later)
    [​IMG]

    Fan Video: :D

    http://www.youtube.com/watch?v=z2_Dd4_N5a4

    TODO:
    iConomy support?
    Autoharvest, so chests run automatically?
    "special block" must be on to operate?
    run chests on redstone?
    make player manually set a chest for it to collect items?


    Changelog:
    Changelog (open)

    Version 1.2 - 7/4/11
    • item scanner moved to bukkit scheduler (more thread-safe)
    • removed item-collection at corners (now just the faces & top of chest)
    • better harvesting permissions checks (checks if interact is canceled)
    • will now stop harvesting when chest is full
    • added option to require a hoe to till new ground
    • corner harvesting is now optional
    • can now harvest sugarcane and cactus
    • fixed nonstackable stacking when there is only one chest
    • fixed stacking so stacks into first matching before first empty slot
    • added permission node "ChestHarvester.harvest" for the ability to run a harvester
    Version 1.1.3 - 4/8/11
    • updated for 670
    Version 1.1.2 - 4/4/11
    • fixed onCommand reload when turning on/off the chest auto pickup
    • optional "AutoCollectScanInterval" and "ManualHarvestWaitInterval" changed to seconds
    • now collects between 1-3 seeds, instead of 0-3
    • fixed another double chest error: if harvesting from top with seeds in bottom, top would overwrite bottom
    Version 1.1.1 - 4/2/11
    • fixed a bug where adding an item from the head chest to the tail was being lost
    Version 1.1 - 4/2/11
    • fixed a serious itemdrop error: when first chest is full, second half would be duplicated
    • block directions decreased: will only enter a chest from beside or on top of the chest (prefers from top)
    • fixed double-chests so items are deposited at the top
    Version 1.0 - 4/2/11
    • Initial Release
     
    BenyTheBuff and Stormbow like this.
  2. Offline

    uneekprofecy

    Good Job Ive been looking for a plugin like this
     
  3. Offline

    jascotty2

    thanks :)
    i really wanted chests to hold items dropped on-top of them, then i got a suggestion for the farming part (like minecart mania, but using less server resources) so i just threw them both into the same plugin (and either portion can be turned off)
     
  4. Offline

    registered

    Why do people keep remaking mods that already exist?
     
  5. Offline

    jascotty2

    i was not aware that this existed. if it does, could you post a link?
    if you mean my reference to minecart mania, this is similar, but is not the same.
    the major difference being performance: this plugin is better suited for those who want some autofarming but don't want to use more resources than is necessary (for instance on a slow (cheap) server)
     
  6. Offline

    phaed

    http://forums.bukkit.org/threads/mi...spensers-and-jukeboxes-absorb-items-617.7937/
     
  7. Offline

    jascotty2

    yes it's similar, but that one does more than just chests, can pick up items within a range (instead of just from top or in front of) and can be a bit more processor intensive... not to mention it doesn't farm :)

    .. however, the 'special block' idea from that plugin is interesting.. i could edit this one so that the chests only run when they're on top of a certain block..
     
  8. Offline

    jascotty2

    Version 1.1.2
    fixed onCommand reload when turning on/off the chest auto pickup
    optional "AutoCollectScanInterval" and "ManualHarvestWaitInterval" changed to seconds
    now collects between 1-3 seeds, instead of 0-3
    Important: fixed another double chest error: if harvesting from top with seeds in bottom, top would overwrite bottom
     
  9. Offline

    massEntropy

    Not to mention that the AbsorbPlugin is currently broken on 670. Thanks for giving options!
     
  10. Offline

    Daniel Heppner

  11. Offline

    jascotty2

    the source is available in git (if you looked at the link or my sig)
    also, i don't use windows :p
     
  12. Offline

    Daniel Heppner

    What do you use? I hope it's Ubuntu, because nothing is better than le Ubuntu. I use Windoz 7 because my laptop's trackpad is completely incompatible with anything but Windows.
     
  13. Offline

    RustyDagger

    I like the idea of this.

    I do not want the farming part just the item pick up but I also cant go letting every player on the server using it that's just a bad idea.

    Permissions support and a bit better explination on how to use it would be cool.

    Dose it run for every chest or just the chests i set?
     
  14. Offline

    jascotty2

    @Daniel Heppner Ubuntu 10.10 for desktop, Debian for server

    @RustyDagger
    for now, every chest works as set in the config, but chest activation with permissions sounds like a good idea
    (when i have more time for adding to my plugins instead of just maintenance.....)
     
    Daniel Heppner likes this.
  15. Offline

    RustyDagger

    Uh i see Wouldn't only having it on set chests Improve performance? I see that being a huge upside over some other plugins that do similar things to this.

    + this needs to be ease of use for my players every server owner wants that :)
     
  16. Offline

    jamescosten

    jascotty2 likes this.
  17. Offline

    jascotty2

    you missed the wheat farming portion, but nice example nonetheless..
    wouldn't mind me placing in first post?
     
    jamescosten likes this.
  18. Offline

    jamescosten

    No mate not at all, yeah i will look into the wheat portion of it. Im making a farming video and this plugin is going to be used extensively so i will cover wheat in that as well as cactus, gravel, obsidian, mobs and reeds.
     
  19. Offline

    majorcyto

    Can you please also add permissions support so only certian groups could use this auto-chest harvest feature? And make it compatible with lwc if it isnt i havent tried it yet but i was just wondering. >.<
     
  20. Offline

    BrainnDamagee

    Is it possible to make it the chests also harvest reeds?
    Very good plugin otherwise :)
     
  21. Offline

    marinating

    I made the farm a couple of days ago, except it's farm based. Link is in my sig. :D
    I suppose this gives users more options.
     
  22. Offline

    sweetswear4665

    Could you make it so only certain chests will pick up items? Maybe add a permission based command where you type it and punch the chest to enable it to pick up items. Great plugin!
     
  23. Offline

    Matt Timmer

    Anyway you could make it so that the chest only activates when hit with a certain object? like a key? otherwise it seems to mess with chestlock like plugins.
     
  24. Offline

    pyros

    I seem to be getting this error:
    Code:
    [SEVERE] [ChestHarvester] null
    java.util.ConcurrentModificationException
            at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:782)
            at java.util.ArrayList$Itr.next(ArrayList.java:754)
            at org.bukkit.craftbukkit.CraftWorld.getEntities(CraftWorld.java:502)
            at com.jascotty2.chestharvester.CollectorScanner.dropChestScan(CollectorScanner.java:60)
            at com.jascotty2.chestharvester.CollectorScanner.run(CollectorScanner.java:51)
            at java.util.TimerThread.mainLoop(Timer.java:534)
            at java.util.TimerThread.run(Timer.java:484)
    
    Not sure what was causing it, although there was some worldedit use around the same time (but removing and undoing mine with worldedit caused no errors)
     
  25. Offline

    Dr_Hax

    It would be useful that dispensers would also take stuff nearby. I am using chests for apple and cocoa bean tree's collecting..
     
  26. Offline

    jascotty2

    Version 1.2 :D
    item scanner moved to bukkit scheduler (more thread-safe)
    removed item-collection at corners (now just the faces & top of chest)
    better harvesting permissions checks (checks if interact is canceled)
    will now stop harvesting when chest is full
    added option to require a hoe to till new ground
    corner harvesting is now optional
    can now harvest sugarcane and cactus
    fixed nonstackable stacking when there is only one chest
    fixed stacking so stacks into first matching before first empty slot
    added permission node "ChestHarvester.harvest" for the ability to run a harvester
     
  27. Offline

    jascotty2

    ok.. another bug found & fixed.. if you got my last update ("1.2 alpha"), please re-download
    Version 1.2b
    fixed new items stacking sometimes added as 0 (which were then removed)
     
  28. Offline

    xxugotowned

    Love the mod
    btw can you add a auto plant? so when it harvests after like 5 secs it replants?
    like
    AutoPlant = True
    AutoPlant = False
    something like that :)
    and radius :D

    oh and mayb
    AutoplantRadius= 5
    That be good :)

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

    jascotty2

    it already re-plants after harvesting (at least, it should)
    right now, if the chest is on the edge of the vertical threshold (in the config) it could harvest without re-planting.. i may consider making it semi-recursive like i make for sugarcane & cactus...
     
  30. Offline

    xxugotowned

    uhm for be it dosnot replant automaticly :\ can u fix it :\

    btw is the manul plant thing the auto planter is its false dos it auto plant?

    btw how i get catus farm to work?
    i try and dos not work :\

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

Share This Page