Guest User

startup

a guest
Feb 28th, 2014
776
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.57 KB | None | 0 0
  1. mon = peripheral.wrap("front")
  2.  
  3. while true do
  4. rsStrength = rs.getAnalogInput("left")
  5.   if rs.getAnalogInput("left") < 14 then
  6.     rs.setOutput("bottom", true)
  7.     mon.setBackgroundColor(colors.green)
  8.     mon.write("BigReactor Active!")
  9.     mon.setCursorPos(1,2)
  10.     mon.write("RS Strength:" ..rsStrength)
  11.     sleep(10)
  12.   else
  13.     rs.setOutput("bottom", false)
  14.     mon.setBackgroundColor(colors.red)
  15.     mon.write("BigReactor Disabled!")
  16.     mon.setCursorPos(1,2)
  17.     mon.write("RS Strengtgh:" ..rsStrength)
  18.     sleep(10)
  19.   end
  20. mon.clear()
  21. mon.setCursorPos(1,1)
  22. end
Advertisement
Add Comment
Please, Sign In to add comment