thatparadox

REtherTurtleNexus

Jun 24th, 2013
82
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. rednet.open("right")
  2. re = peripheral.wrap("left")
  3. display = 53
  4.  
  5. while true do
  6.   x,y = rednet.receive()
  7.   if x == display then
  8.     print(y)
  9.     turtle.drop()
  10.     if y == 1 then
  11.       re.setFreq(4242)
  12.     elseif y == 2 then
  13.       re.setFreq(4243)
  14.       print("sent to 2")
  15.     elseif y == 3 then
  16.       re.setFreq(4244)
  17.     end
  18.   re.set(true)
  19.   os.sleep(1)
  20.   re.set(false)
  21.   turtle.suck()
  22.   end
  23. end
RAW Paste Data