Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Logger
- local unloaded = 0
- local collected = 0
- sleep(1)
- rednet.open("right")
- while true do
- term.clear()
- term.setCursorPos(1, 1)
- print("Ready to Receve Commands")
- local id, mgs, dis = rednet.receive()
- if mgs == "3Forward" then
- turtle.forward()
- end
- if mgs == "3Back" then
- turtle.back()
- end
- if mgs == "3TurnLeft" then
- turtle.turnLeft()
- end
- if mgs == "3TurnRight" then
- turtle.turnRight()
- end
- if mgs == "3Up" then
- turtle.up()
- end
- if mgs == "3Down" then
- turtle.down()
- end
- if mgs == "3Dig" then
- turtle.dig()
- end
- if mgs == "3DigUp" then
- turtle.digUp()
- end
- if mgs == "3DigDown" then
- turtle.digDown()
- end
- if mgs == "3Place" then
- turtle.place()
- end
- if mgs == "3PlaceDown" then
- turtle.placeDown()
- end
- if mgs == "3PlaceUp" then
- turtle.placeUp()
- end
- if mgs == "3Drop" then
- for n=1,16 do
- unloaded = unloaded + turtle.getItemCount(n)
- turtle.select(n)
- turtle.drop()
- end
- collected = 0
- turtle.select(1)
- end
- if mgs == "3Cut" then
- turtle.dig()
- turtle.forward()
- while turtle.detectUp() do
- turtle.digUp()
- turtle.up()
- end
- while not turtle.detectDown() do
- turtle.down()
- end
- rednet.broadcast("LDone")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment