size = get_world_size()
while True:
for i in range(size):
if get_ground_type() != Grounds.Grassland:
till()
if get_water() < 0.75:
use_item(Items.Water)
till()
if can_harvest():
harvest()
plant(Entities.Carrot)
move(North)
move(East)
for i in range(size):
till()
if can_harvest():
harvest()
plant(Entities.Carrot)
move(South)
move(East)