Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- turtle.refuel()
- FlipFlop = false
- function mineLine(int)
- for i=int, 1, -1 do
- turtle.digForward()
- turtle.digDown()
- turtle.forward()
- end
- end
- function newLine()
- if (FlipFlop == false) then
- FlipFlop = true
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- else
- FlipFlop = false
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- end
- end
- function alternateFlipFlop()
- if (FlipFlop == false) then
- FlipFlop = true
- else
- FlipFlop = false
- end
- end
- function quary(x, y)
- while(true) do
- if y, 1, -1 do
- mineLine(x)
- newLine()
- end
- alternateFlipFlop()
- end
- end
- while(true) do
- quary(5, 5)
- turtle.digDown()
- turtle.down()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement