Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function LINE()
- if turtle.getFuelLevel() < 10 then
- turtle.select(1)
- turtle.refuel()
- end
- for i = 0, 8 do
- turtle.suckDown()
- turtle.forward()
- end
- turtle.suckDown()
- end
- local function SIFT()
- local run = 1
- while run == 1 do
- local scrap, message = rednet.receive()
- if message == "siftForItems" then
- turtle.up()
- for o = 0, 3 do
- LINE()
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- LINE()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- end
- LINE()
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- LINE()
- turtle.turnRight()
- LINE()
- turtle.down()
- elseif message == "endTurtle" then
- run = 0
- rednet.close("right")
- textutils.slowPrint("Console ended program.")
- elseif message == "endBoth" then
- run = 0
- rednet.close("right")
- textutils.slowPrint("Console ended program.")
- end
- end
- end
- print("-------------------------")
- textutils.slowPrint("SifTur receiving")
- textutils.slowPrint("Ready for input")
- print("-------------------------")
- SIFT()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement