/ChestHarvester

turns chests into stationary farming equipment

Primary LanguageJava

ChestHarvester - turns chests into stationary farming equipment


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!
can also collect into storage minecarts
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 be disabled per-world
can harvest sugarcane, cactus, pumpkins, melons, and netherwart.. not just farmland :)
can be activated by redstone
- also has an overload setting, to discourage redstone clocks
- default is wait - if activated by redstone more than twice within the wait period, will not harvest again until pulse stops for 10 times the wait time
- also can optionally cause the chest to explode ;)

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


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

Changelog: 

Version 1.3.5 - 10/15/12
items are now absorbed into the nearest chest/cart
fixed duplication bug with storage carts

Version 1.3.4 - 9/13/12
added netherwart to harvested items
added option for storage chests to dump their contents into a chest
added option for harvesting to be activated by redstone
- also added overload setting, to discourage redstone clocks
- default is wait - if activated by redstone more than twice within the wait period, will not harvest again until pulse stops for 10 times the wait time
- also can optionally cause the chest to explode ;)
fixed items sometimes not being added to chests
fixed chests changing potions into water bottles
fixed items loosing enchantments
added plugin metrics so i can get an idea of how many use this plugin
- is you have it disabled, please re-enable it - i won't work on this as much if less people use it
- (most-used plugins will be updated first)
- can be seen here: https://mcstats.org/plugin/ChestHarvester


Version 1.3.3 - 3/13/12
updated for new bukkit build
fixed multi-chest scan bug


Version 1.3.2.2 - 2/2/12
fixed a tab char in default config :/
fixed error a library null pointer error 


Version 1.3.2.1 - 2/2/12
fixed errors when bettershop not installed


Version 1.3.2 - 1/31/12
added ability to harvest melons & pumpkins
added config option to disable only wheat farming
changed alias to "chh" to avoid a plugin confict


Version 1.3.1 - 1/31/12
fixed chests to replant if harvested (regardless of harvest scan height)
- fixes harvesting.height: 1 from causing the need to replant
added config to control autoTill and autoReplant


Version 1.3 - 1/30/12
compatibility with BetterShop chest shops
- won't absorb into chest shops
added option for disabling on defined worlds
rewrote how the items are collected: now 130% faster
added option to define scan distance (larger values are slower.. use at own discretion)
added option to scan in a box-area, not just top & sides
added option to allow Storage Minecarts to pickup items 
- however, range not restricted by scanFull: false, so can pickup underneath tracks if range >= 2


Version 1.2 - 7/5/11
fixed new items stacking added as 0 (which were then removed)

Version 1.2 'alpha' - 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