Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function startPeon()
- turtle.up()
- turtle.forward()
- end
- function digPlace()
- turtle.detectDown()
- turtle.digDown()
- turtle.select(2)
- turtle.placeDown()
- turtle.forward()
- end
- function switchLeft()
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- end
- function switchRight()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- end
- function digLane()
- while turtle.detectDown() do
- digPlace()
- end
- while not turtle.detectDown() do
- turtle.down()
- turtle.turnLeft()
- turtle.turnLeft()
- end
- end
- function goHome()
- turtle.turnRight()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.turnLeft()
- end
- startPeon()
- digLane()
- switchLeft()
- startPeon()
- digLane()
- switchRight()
- startPeon()
- digLane()
- switchLeft()
- startPeon()
- digLane()
- switchRight()
- startPeon()
- digLane()
- switchLeft()
- startPeon()
- digLane()
- switchRight()
- startPeon()
- digLane()
- switchLeft()
- startPeon()
- digLane()
- switchRight()
- goHome()
- sleep(1800)
- while true do
- shell.run("wheatfarm")
- end
Add Comment
Please, Sign In to add comment