Laine_prikol

RedBoardControlSever

Feb 10th, 2017
160
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. redstone = component.proxy(component.list("redstone")())
  2. modem = component.proxy(component.list('modem')())
  3. modem.open(57)
  4. while true do
  5.   name, _, sender, _, _, message = computer.pullSignal(2)
  6.   if name == 'modem_message' then
  7.     if message == 'RSOutputFront' then
  8.       redstone.setOutput(3, 15)
  9.   end
  10.       if message == 'RSOutputFrontOFF' then
  11.       redstone.setOutput(3, 0)
  12.   end
  13.       if message == 'RSOutputLeft' then
  14.       redstone.setOutput(5, 15)
  15.   end
  16.       if message == 'RSOutputLeftOFF' then
  17.       redstone.setOutput(5, 0)
  18.   end
  19.       if message == 'RSOutputRight' then
  20.       redstone.setOutput(4, 15)
  21.   end
  22.       if message == 'RSOutputRightOFF' then
  23.       redstone.setOutput(4, 0)
  24.   end
  25.       if message == 'RSOutputBack' then
  26.       redstone.setOutput(2, 15)
  27.   end
  28.       if message == 'RSOutputBackOFF' then
  29.       redstone.setOutput(2, 0)
  30.   end
  31.       if message == 'STOP' then
  32.       modem.close()
  33.       redstone.setOutput(2, 0)
  34.       redstone.setOutput(3, 0)
  35.       redstone.setOutput(4, 0)
  36.       redstone.setOutput(5, 0)
  37.   end
  38. end
  39. end
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×