Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- intervallo = 80
- function compara()
- turtle.select(16)
- if turtle.compareDown() then
- turtle.digDown()
- turtle.select(1)
- turtle.placeDown()
- end
- end
- function ronda()
- compara()
- turtle.forward()
- compara()
- turtle.forward()
- compara()
- turtle.turnRight()
- turtle.forward()
- compara()
- turtle.forward()
- compara()
- turtle.turnRight()
- turtle.forward()
- compara()
- turtle.forward()
- compara()
- turtle.turnRight()
- turtle.forward()
- compara()
- turtle.forward()
- turtle.turnRight()
- end
- function scarica()
- for x=2,15 do
- turtle.select(x)
- turtle.drop()
- end
- turtle.select(1)
- turtle.suckUp()
- turtle.select(2)
- turtle.dropUp()
- turtle.select(1)
- end
- while true do
- turtle.select(1)
- ronda()
- turtle.turnRight()
- turtle.turnRight()
- scarica()
- turtle.turnLeft()
- turtle.turnLeft()
- sleep(intervallo)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement