Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function row (c)
- control = c%2
- -- even
- if control ==1 then
- treer()
- move()
- end
- --odd
- if control ==0 then
- treel()
- move()
- end
- for i=0,3,1 do
- if control ==0 then
- treel()
- move()
- treel()
- move()
- c=c+1
- end
- if control ==1 then
- treer()
- move()
- treer()
- move()
- c=c+1
- end
- control = c%2
- end
- if control ==0 then
- treer()
- move()
- end
- --odd
- if control ==1 then
- treel()
- move()
- end
- end
- function treer ()
- for i=0,7,1 do
- turtle.dig()
- turtle.up()
- end
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- for i=0,7,1 do
- turtle.dig()
- turtle.down()
- end
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- for i=0,7,1 do
- turtle.dig()
- turtle.up()
- end
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- for i=0,7,1 do
- turtle.dig()
- turtle.down()
- end
- end
- function treel ()
- for i=0,7,1 do
- turtle.dig()
- turtle.up()
- end
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- for i=0,7,1 do
- turtle.dig()
- turtle.down()
- end
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- for i=0,7,1 do
- turtle.dig()
- turtle.up()
- end
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- for i=0,7,1 do
- turtle.dig()
- turtle.down()
- end
- end
- function move ()
- turtle.back()
- turtle.back()
- turtle.back()
- turtle.turnRight()
- turtle.turnRight()
- end
- row(1)
- row(2)
- row(3)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement