36 lines
No EOL
702 B
Lua
36 lines
No EOL
702 B
Lua
potatos = peripheral.wrap("left")
|
|
bone_meal = peripheral.wrap("right")
|
|
|
|
while true do
|
|
exists, block = turtle.inspect("front")
|
|
if not exists then
|
|
turtle.turnRight()
|
|
turtle.suck()
|
|
turtle.turnLeft()
|
|
turtle.place()
|
|
turtle.turnRight()
|
|
turtle.drop()
|
|
turtle.turnLeft()
|
|
else
|
|
if block.state["age"] == 7 then
|
|
turtle.dig()
|
|
turtle.suck()
|
|
turtle.turnRight()
|
|
turtle.drop()
|
|
turtle.turnLeft()
|
|
sleep(.5)
|
|
else
|
|
turtle.turnLeft()
|
|
turtle.suck()
|
|
turtle.turnRight()
|
|
turtle.place()
|
|
turtle.place()
|
|
turtle.place()
|
|
turtle.turnLeft()
|
|
turtle.drop()
|
|
turtle.turnRight()
|
|
end
|
|
end
|
|
sleep(.5)
|
|
end
|
|
l |