Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("(r)eceive or (t)transmit?")
- recortrans = read()
- if(recortrans == "r") then
- while 1<2 do
- if(rs.getInput("left") == false) then
- print("Placing down")
- turtle.placeDown()
- elseif(rs.getInput("left") == true) then
- print("Mining down")
- turtle.digDown()
- else
- print("WARNING: Received invalid command: "..msg)
- end
- sleep(1)
- end
- else
- state = true
- while 1<2 do
- print(state)
- read()
- state = not state
- rs.setOutput("back", state)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment