Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --initialisierung
- turtle.select(1)
- turtle.refuel()
- turtle.select(16)
- richtung=true
- run=true
- function fGRABEN()
- while turtle.detectUp() == true do
- turtle.digUp()
- end
- if turtle.detect() == true then
- turtle.dig()
- end
- turtle.forward()
- if turtle.detectDown() == true then
- turtle.placeDown()
- end
- end
- while run==true do
- for i=1,10 do
- fGRABEN()
- end
- if richtung==true then
- turtle.turnLeft()
- fGRABEN()
- turtle.turnLeft()
- richtung=false
- else
- turtle.turnRight()
- fGRABEN()
- turtle.turnRight()
- richtung=true
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement