Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- vai avanti fino al blocco
- -- al blocco gira a sinistra
- -- turna indietro
- function vaiAvanti()
- for i = 1,3 do
- turtle.select(i)
- turtle.suck()
- end
- if turtle.getItemCount(1) > 0 then
- turtle.turnLeft()
- turtle.turnLeft()
- while not turtle.detect() do
- turtle.forward()
- if turtle.detect() then
- turtle.turnLeft()
- while not turtle.detect() do
- turtle.forward()
- if turtle.detect() then
- turtle.select(1)
- turtle.drop()
- turtle.select(2)
- turtle.drop()
- turtle.select(3)
- turtle.drop()
- turtle.turnRight()
- turtle.turnRight()
- while not turtle.detect() do
- turtle.forward()
- if turtle.detect() then
- turtle.turnRight()
- while not turtle.detect() do
- turtle.forward()
- end
- end
- end
- end
- end
- end
- end
- end
- end
- while true do
- vaiAvanti()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement