OpenComputers icon indicating copy to clipboard operation
OpenComputers copied to clipboard

drone.use no longer breaks/replaces crops with pams harvestcraft

Open nzhook opened this issue 7 years ago • 6 comments

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

nzhook avatar Jan 26 '18 09:01 nzhook

fixed with the many agent use() fixes we've been making

payonel avatar Mar 11 '18 19:03 payonel

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.

tbauer516 avatar May 07 '18 20:05 tbauer516

I'll have to investigate. thanks for reporting

payonel avatar May 07 '18 21:05 payonel

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.

Xerxeth avatar Sep 04 '18 03:09 Xerxeth

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

Just8Will avatar Jan 11 '21 15:01 Just8Will

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.

TheCodex6824 avatar Oct 01 '22 01:10 TheCodex6824