Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dist = 13
- d12 = 12
- function movetwo()
- turtle.forward()
- turtle.forward()
- end
- function movethree()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- end
- function cuttree()
- turtle.dig()
- turtle.forward()
- while turtle.detectUp() do
- turtle.digUp()
- turtle.up()
- end
- while not turtle.detectDown() do
- turtle.down()
- end
- end
- function back()
- turtle.turnLeft()
- turtle.turnLeft()
- for n=1, dist do
- turtle.forward()
- end
- end
- function home()
- turtle.turnLeft()
- for n=1, d12 do
- turtle.forward()
- end
- end
- function empty()
- for i=16,2,-1 do
- turtle.select(i)
- turtle.dropDown()
- end
- end
- function cutgrid()
- cuttree()
- movethree()
- cuttree()
- movethree()
- cuttree()
- movethree()
- cuttree()
- end
- function nextline()
- turtle.turnRight()
- movethree()
- turtle.forward()
- turtle.turnRight()
- end
- function planttree()
- turtle.forward()
- turtle.turnLeft()
- turtle.place()
- turtle.turnRight()
- end
- function plantline()
- planttree()
- movetwo()
- planttree()
- movetwo()
- planttree()
- movetwo()
- planttree()
- back()
- end
- function plantgrid()
- plantline()
- nextline()
- plantline()
- nextline()
- plantline()
- nextline()
- plantline()
- home()
- end
- cutgrid()
- back()
- nextline()
- cutgrid()
- back()
- nextline()
- cutgrid()
- back()
- nextline()
- cutgrid()
- back()
- home()
- empty()
- turtle.turnleft()
- turtle.select(1)
- plantgrid()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement