Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- function do_row()
- for position=1,22 do
- if turtle.back() == false then
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.dig()
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.back()
- end
- turtle.select(1)
- turtle.place()
- turtle.select(2)
- turtle.place()
- end
- end
- function right5()
- turtle.turnRight()
- for forward=1,5 do
- turtle.forward()
- end
- turtle.turnRight()
- end
- function left5()
- turtle.turnLeft()
- for forward=1,5 do
- turtle.forward()
- end
- turtle.turnLeft()
- end
- function bonemeal()
- turtle.select(2)
- turtle.suck()
- turtle.drop(turtle.getItemCount(2)-42)
- end
- function sapling()
- turtle.select(1)
- turtle.suck()
- turtle.drop(turtle.getItemCount(1)-42)
- end
- for first=1,2 do
- do_row()
- right5()
- bonemeal()
- sleep(1)
- do_row()
- left5()
- sapling()
- sleep(1)
- end
- sleep(5)
- for second=1,2 do
- do_row()
- left5()
- bonemeal()
- sleep(1)
- do_row()
- right5()
- sapling()
- sleep(1)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment