Repository navigation
Add AutoFarm module - #6692
Open
JeffreyHamilton6399 wants to merge 1 commit into
Open
Add AutoFarm module#6692JeffreyHamilton6399 wants to merge 1 commit into
JeffreyHamilton6399 wants to merge 1 commit into
Conversation
Automatically harvests and replants crops around the player. - Harvests farmland crops, nether wart, cocoa, pumpkins, melons, sugar cane, cactus and sweet berry bushes when they are fully grown - Replants harvested crops from seeds in the hotbar, one action per tick - Crop types, range and rotations are configurable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type of change
Description
Adds a new AutoFarm module to the World category that automatically harvests and replants crops around the player.
Supported crops:
CropBlock#isMaxAge), then automatically replanted from seeds in the hotbarImplementation details:
BlockUtils/Rotations/InvUtilshelpers as the other automation modules (AutoBreed,AutoShearer,VeinMiner)This differs from #6417 (BetterFarming) in that it fully automates harvesting rather than assisting manual farming, so the two are complementary.
Related issues
Related to #6104 (Nuker breaking unripe wheat) - AutoFarm only breaks crops that are fully grown.
How Has This Been Tested?
Compiles successfully against
master(26.2). Module logic (maturity checks via block state properties, replant rules per crop type, one-action-per-tick pacing) was written against vanilla mechanics and the patterns used by the existing automation modules. In-game verification was not possible on my setup, so reviewer testing is welcome.Checklist: