------------------------------------------------------------------------------------------------------------------------------------------
注意:种植所需时间较长的作物时,在种植完伴生植物后无法收割,因为作物没有完全生长成熟,我们需要使用肥料催熟:
例如:if 没有成熟
就施加肥料。
------------------------------------------------------------------------------------------------------------------------------------------
import tool
set_execution_speed(9)
set_world_size(6)
for i in range(get_world_size()):
for j in range(get_world_size()):
tool.move_to(i,j)
tool.auto_till()
tool.auto_water()
while True:
for i in range(get_world_size()):
for j in range(get_world_size()):
tool.move_to(i,j)
tool.auto_water()
tool.auto_harvest()
plant(Entities.Carrot)
plant_type, (x, y) = get_companion()
tool.move_to(x,y)
plant(plant_type)
tool.move_to(i,j)
if not can_harvest():
use_item(Items.Fertilizer)
tool.auto_harvest()