Port nether wart farming to 26.3

This commit is contained in:
Tanner
2026-11-07 17:25:51 +00:00
parent 9251edc36a
commit 95f4aa4821
7 changed files with 237 additions and 57 deletions
+13 -1
View File
@@ -270,11 +270,12 @@ class LegacyJobStates:
class JobStates(LegacyJobStates):
"""26.3 facade for migrated gather-wood and crop workflows."""
"""26.3 facade for migrated gathering and farming workflows."""
def __init__(self, global_state):
self.g = global_state
self.gather_wood_states = gather_wood.GatherWoodStates(global_state)
self.gather_crop_states = gather_crop.GatherCropStates(global_state)
self.gather_wart_states = gather_wart.GatherWartStates(global_state)
self.grab_supplies_states = grab_supplies.GrabSuppliesStates(
global_state)
self.clear_leaves_states = clear_leaves.ClearLeavesStates(global_state)
@@ -308,6 +309,17 @@ class JobStates(LegacyJobStates):
self.cache_items_states,
]
def farm_wart(self):
self.sleep_with_bed_states.silent = True
self.cache_items_states.silent = True
items.set_wanted({items.NETHERWART_ID})
return [
self.gather_wart_states,
self.sleep_with_bed_states,
self.eat_food_states,
self.cache_items_states,
]
def farm_crop(self):
self.cache_items_states.silent = True
self.sleep_with_bed_states.silent = True