Wurst7 icon indicating copy to clipboard operation
Wurst7 copied to clipboard

AutoFarm use any hotbar item to break crops

Open Lamby777 opened this issue 2 years ago • 12 comments

Pickaxes (and probably other tools, not sure) with Fortune on them apply to crops, so AutoFarm could be made WAY more efficient by putting the crop in the offhand and using the main hand to break stuff, then allowing the user to switch whatever item like a Fortune III pickaxe into their main hand.

Not sure how complicated this'd be, though. I could give it a try, but I've never messed with any real inventory management hacks so I'd probably write really crappy code.

Lamby777 avatar May 15 '23 22:05 Lamby777

Hey @Lamby777,

Thanks for the suggestion! That sounds like a useful feature to have. We could add a setting that allows AutoFarm to detect Fortune tools and automatically use them for harvesting crops while keeping the seeds in the offhand.

I'm currently working on an InventoryUtils class as part of my AutoFish rewrite. This should make inventory management a lot easier once all of the inventory-related hacks use it.

After finishing the AutoFish rewrite, I might work on rewriting AutoFarm's inventory management next. This should make it feasible to implement the option you've suggested.

However, I would like to caution you against trying to modify AutoFarm's current code to work with the offhand. It might be a lot more complicated than it looks and could lead to unexpected issues. Let's wait until the new inventory management system is in place before implementing this feature.

Cheers!

Alexander01998 avatar May 16 '23 08:05 Alexander01998

I managed to implement your idea, along with some other enhancements, in #846.

ThisTestUser avatar Jun 24 '23 15:06 ThisTestUser

So the inventory refactoring stuff is done now? Or should I still wait before doing any inventory-related stuff?

Lamby777 avatar Jun 25 '23 01:06 Lamby777

Yeah, it looks like AutoFarm uses InventoryUtils now.

ThisTestUser avatar Jun 25 '23 02:06 ThisTestUser

This issue has been open for a while with no recent activity. If this issue is still important to you, please add a comment within the next 7 days to keep it open. Otherwise, the issue will be automatically closed to free up time for other tasks.

Issues should be closed if:

  • They are duplicates of other issues
  • There is not enough demand
  • They are no longer relevant
  • There are not enough details

github-actions[bot] avatar Oct 21 '23 02:10 github-actions[bot]

This issue has been open for a while with no recent activity. If this issue is still important to you, please add a comment within the next 7 days to keep it open. Otherwise, the issue will be automatically closed to free up time for other tasks.

Issues should be closed if:

  • They are duplicates of other issues
  • There is not enough demand
  • They are no longer relevant
  • There are not enough details

PR is still open

Lamby777 avatar Oct 21 '23 05:10 Lamby777

This issue has been open for a while with no recent activity. If this issue is still important to you, please add a comment within the next 7 days to keep it open. Otherwise, the issue will be automatically closed to free up time for other tasks.

Issues should be closed if:

  • They are duplicates of other issues
  • There is not enough demand
  • They are no longer relevant
  • There are not enough details

github-actions[bot] avatar Dec 22 '23 02:12 github-actions[bot]

This issue has been open for a while with no recent activity. If this issue is still important to you, please add a comment within the next 7 days to keep it open. Otherwise, the issue will be automatically closed to free up time for other tasks.

Issues should be closed if:

  • They are duplicates of other issues
  • There is not enough demand
  • They are no longer relevant
  • There are not enough details

among us

Lamby777 avatar Dec 22 '23 03:12 Lamby777

This issue has been open for a while with no recent activity. If this issue is still important to you, please add a comment within the next 7 days to keep it open. Otherwise, the issue will be automatically closed to free up time for other tasks.

Issues should be closed if:

  • They are duplicates of other issues
  • There is not enough demand
  • They are no longer relevant
  • There are not enough details

github-actions[bot] avatar Feb 26 '24 02:02 github-actions[bot]

closable? is this still relevant? (ignore my deleted comment, i mixed this up with a different issue 💀)

Lamby777 avatar Feb 26 '24 03:02 Lamby777

This issue has been open for a while with no recent activity. If this issue is still important to you, please add a comment within the next 7 days to keep it open. Otherwise, the issue will be automatically closed to free up time for other tasks.

Issues should be closed if:

  • They are duplicates of other issues
  • There is not enough demand
  • They are no longer relevant
  • There are not enough details

github-actions[bot] avatar Apr 29 '24 02:04 github-actions[bot]

//

Lamby777 avatar Apr 29 '24 03:04 Lamby777