Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)
- local x = 0
- print("Operation Started!")
- while x == 0 do
- if turtle.getFuelLevel() < 60 then
- x = 1
- print("No more fuel!")
- end
- turtle.select(1)
- for i = 1, 3 do
- turtle.dig()
- turtle.forward(1)
- end
- turtle.turnLeft()
- for i = 1, 2 do
- turtle.dig()
- turtle.forward(1)
- end
- turtle.turnLeft()
- for i = 1, 2 do
- turtle.dig()
- turtle.forward(1)
- end
- turtle.turnLeft()
- turtle.dig()
- turtle.turnRight()
- if turtle.drop(8) == false then
- x = 1
- print("No more space for livingrock!")
- end
- turtle.turnLeft()
- turtle.select(2)
- turtle.place()
- turtle.turnRight()
- for i = 1, 2 do
- turtle.back()
- turtle.place()
- end
- turtle.turnRight()
- for i = 1, 2 do
- turtle.back()
- turtle.place()
- end
- turtle.turnRight()
- for i = 1, 3 do
- turtle.back()
- turtle.place()
- end
- turtle.turnLeft()
- turtle.turnLeft()
- if turtle.suck(8) == false then
- x = 1
- print("No more stone!")
- end
- turtle.turnLeft()
- turtle.turnLeft()
- sleep(60)
- end
- print("An error has occured and")
- print("the program has shut down!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement