OpenComputers
OpenComputers copied to clipboard
drone.use no longer breaks/replaces crops with pams harvestcraft
I have had a couple of people ask why the drone script I featured in my video last year no longer breaks the crops. It looks like in version 1.10.2-1,7,1,124 (and 1.10.2-1,7,1,150) of OpenComputers the drone.use function no longer interacts with crops which pams harvestcraft previously broke and replaced the crops.
Previously working example (tested still working in 1.10.2-1.6.2.7 ): https://pastebin.com/q47hBriq
fixed with the many agent use() fixes we've been making
I am still experiencing this issue on MC Version 1.12.2 with OC Version 1.7.2.67. I have tested it as part of the Direwolf20 v1.10.0 pack, so it might be some sort of mod conflict.
I'll have to investigate. thanks for reporting
Version(s):
-
Minecraft 1.12.2
-
OpenComputers 1.7.2.67
-
Direwolf20 v2.2.0
Drone won't interact with the Pam's crops at all, but the program seems to be working. I'm having issues with the drone actually collecting the items its breaking. If I manually place the crops its not picking up inside the drone's inventory, then it will drop off the items.
Had this pop up on my server logs.
I would assume that this is the same issue of why drones cannot place seeds in agricraft crop sticks or create double crop sticks. The double crop sticks are normally created one of two different ways. Either shift right click on soil or right click on already placed crop sticks. Neither of these work. The only item I have found which can do all of these is the mechanical user from Extra Utilities 2. It works when set to "Activate Block with item" mode. I had a look at the source code since I know a little java, but I don't know enough about Minecraft's frameworks to help out. Maybe looking at EU2's implementation can help fix the drone though. Thanks
It seems like it doesn't work because HarvestCraft bails early from its handler if the hand used isn't the main hand, but all of the agent use events are hardcoded to only use the offhand (like here). In theory, just trying both hands (exiting early if the main hand was successful, otherwise trying the offhand after the main hand) should solve that, but I'm not sure if that would cause issues since it is technically firing two block clicks.