desht / ModularRouters

A Forge Mod for item routers with pluggable modules
18 stars 21 forks source link

Harvest Crops? #7

Closed RobertLSnead closed 7 years ago

RobertLSnead commented 7 years ago

MC 1.10.2 modular-routers-1.10.2-1.2.1.jar

The placer is working fine for the crops if it is right in front of the router. Range module does not work with crops. Also the extruder module is not working to harvest the crops. Also it would be nice if it supported friendly crops (aka right click to harvest). Extruder module does not retrieve blocks. Extruder limited to 24 blocks with maximum range of 64.

desht commented 7 years ago

I can't reproduce any of the problems you mentioned:

desht commented 7 years ago

Also, I'm not really inclined to support "friendly" crops (which would basically mean auto-replanting). Planting crops at range is already quite a powerful operation for something that needs no energy or tools (unlike farming devices like the EnderIO or Progressive Automation farmers). The router isn't primarily a farming device, and I want to keep some balance there.

RobertLSnead commented 7 years ago

Well... I figured out why it did not work and you do have some bugs for sure! Changing the redstone mode did not work and caused strange behaviors, leaving as always on works just fine. Also when using with crops if you alter, break, or manually place down when a redstone signal is on high, the router skips over that block as if it does not know what to do. To fix you have to break the router and re-setup. Other than that everything works fine.

desht commented 7 years ago

1) Don't change the Redstone mode then? :) Always is the only mode that makes sense for the Extruder module; that's expected behaviour (unless you add redstone enhancement to the module - https://github.com/desht/ModularRouters/wiki/Module-Enhancements#redstone-enhancement)

2) The Extruder is likely to get confused if blocks are placed/removed manually; not sure I'd call that a bug, though. You just need to ensure that the crops don't get messed with (enclose the farm etc.) I'll take a look to see if the overall robustness can be improved in any way, no promises though.

As I mentioned before, this is a cheap & easy way to auto farm, so the penalty for that is low efficiency and a certain level of extra manual care required.

desht commented 7 years ago

So I've made one change (now available in the v1.2.2 release): if the extruder comes across an empty (or liquid) block while retracting (i.e. harvesting), it will no longer stop in confusion, but simply skip over the empty block and continue to break blocks on the way back to the router. This will get around the problem of broken crops causing the module to stop working.

As for manually placing down blocks in the extruder's way: don't do that :) The extruder will stop extending (planting) if there's a block in the way, and that's not a bug.

RobertLSnead commented 7 years ago

Beautiful update! The extruder does not get confused. I tested it and tried to mess it up, works perfectly! Good job on the fix. I'd say bug fixed :D

desht commented 7 years ago

Good stuff! Closing this issue now.