Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Farmmer
- 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 == "4Forward" then
- turtle.forward()
- end
- if mgs == "4Back" then
- turtle.back()
- end
- if mgs == "4TurnLeft" then
- turtle.turnLeft()
- end
- if mgs == "4TurnRight" then
- turtle.turnRight()
- end
- if mgs == "4Up" then
- turtle.up()
- end
- if mgs == "4Down" then
- turtle.down()
- end
- if mgs == "4Dig" then
- turtle.dig()
- end
- if mgs == "4DigDown" then
- turtle.digDown()
- end
- if mgs == "4Place" then
- turtle.place()
- end
- if mgs == "4PlaceDown" then
- turtle.placeDown()
- end
- if mgs == "4Drop" then
- for n=1,16 do
- unloaded = unloaded + turtle.getItemCount(n)
- turtle.select(n)
- turtle.drop()
- end
- collected = 0
- turtle.select(1)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment