Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local version = "1.0a"
- local sorter = peripheral.wrap("top")
- local chestDir = 2
- local turtleDir = 0
- local function doScreen(str)
- term.clear()
- term.setCursorPos(1,1)
- write("Cell Provider Turtle - v")
- print(version)
- print("------------------------------")
- print()
- print(str)
- end
- while true do
- turtle.select(1)
- if turtle.suckUp() then
- doScreen("Incoming cell detected. Swapping...")
- turtle.select(2)
- turtle.dig()
- turtle.dropUp()
- turtle.select(1)
- turtle.place()
- os.sleep(10)
- end
- doScreen("Waiting for incoming cell...")
- os.sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment