Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function RCslave()
- while true do
- local event, side, sendChan, replyChan, message, distance = os.pullEvent(modem_message)
- if message == "job" then
- shell.run("cottonFarmer")
- end
- if message == "refuel" then
- shell.run("refuelTurtle")
- end
- end
- end
- -- start up the program and run it until we die
- modem = peripheral.wrap("right")
- modem.open(1)
- textutils.slowPrint("TurtleReceive Initiated.")
- RCslave()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement