Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local side = "right" -- right for everything except wheat/carrot
- function str1()
- for i=0,11 do
- turtle.place()
- turtle.forward()
- end
- end
- function str2()
- for i=0,11 do
- turtle.dig()
- turtle.forward()
- end
- end
- while true do
- if (side == "right") then
- sleep(5) -- allows for easy debugging
- turtle.forward()
- turtle.turnRight()
- turtle.forward()
- turtle.digDown()
- turtle.turnLeft()
- str2()
- turtle.turnRight()
- turtle.forward()
- turtle.digDown()
- turtle.turnRight()
- str2()
- turtle.turnLeft()
- turtle.forward()
- turtle.digDown()
- turtle.turnLeft()
- str2()
- turtle.turnLeft()
- for i=0,2 do
- turtle.forward()
- end
- turtle.turnLeft()
- for i=0,11 do
- turtle.forward()
- end
- turtle.turnLeft()
- turtle.turnLeft()
- sleep(5)
- print("Preparing Materials..")
- turtle.select(1)
- turtle.forward()
- turtle.turnRight()
- turtle.forward()
- turtle.placeDown()
- turtle.turnLeft()
- str1()
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- str1()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- str1()
- turtle.turnLeft()
- for i=0,2 do
- turtle.forward()
- end
- turtle.turnLeft()
- for i=0,11 do
- turtle.forward()
- end
- sleep(1200)
- elseif (side == "left") then
- sleep(5) -- allows for easy debugging
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- turtle.digDown()
- turtle.turnRight()
- str2()
- turtle.turnLeft()
- turtle.forward()
- turtle.digDown()
- turtle.turnLeft()
- str2()
- turtle.turnRight()
- turtle.forward()
- turtle.digDown()
- turtle.turnRight()
- str2()
- turtle.turnRight()
- for i=0,2 do
- turtle.forward()
- end
- turtle.turnRight()
- for i=0,11 do
- turtle.forward()
- end
- turtle.turnRight()
- turtle.turnRight()
- sleep(5)
- print("Preparing Materials..")
- turtle.select(1)
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- turtle.placeDown()
- turtle.turnRight()
- str1()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- str1()
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- str1()
- turtle.turnRight()
- for i=0,2 do
- turtle.forward()
- end
- turtle.turnLeft()
- for i=0,11 do
- turtle.forward()
- end
- sleep(1200)
- else
- print("Invalid side")
- return
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement