Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local alto = 6
- local ancho = 8
- function recargar()
- turtle.select(1)
- if turtle.getItemCount() == 0 then
- print("sin combustible")
- turtle.down()
- exit()
- else
- turtle.refuel(1)
- turtle.select(2)
- end
- end
- function plantarAlto()
- for i=1,alto do
- turtle.placeDown()
- if i ~= alto then
- turtle.forward()
- end
- end
- end
- print("empezamos")
- if turtle.getFuelLevel() < 50 then
- recargar()
- for i=1,ancho do
- plantarAlto()
- if (ccount % 2 == 0) then
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- else
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement