我种的胡萝卜,想自动种植一列然后收菜,但是为什么总是在还没成熟的时候就收了。
以下是我的代码:
while True:
if get_entity_type() == Entities.Grass:
till()
else:
move(North)
if get_entity_type() == Entities.Carrot:
can_harvest()
harvest()
else:
plant(Entities.Carrot)
以下是我的代码:
while True:
if get_entity_type() == Entities.Grass:
till()
else:
move(North)
if get_entity_type() == Entities.Carrot:
can_harvest()
harvest()
else:
plant(Entities.Carrot)









