Advertisement
lewisholcombe

Power status

Mar 8th, 2013
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.10 KB | None | 0 0
  1. mon=peripheral.wrap("back")
  2. mon.clear()
  3. mon.setCursorPos(1,1)
  4. mon.setTextScale(3)
  5. print"Coal Generators: "
  6. print"Geothermal Generators: "
  7. print"Wind Mills: "
  8. print"Water Mills: "
  9. print"Solar Panels: "
  10. print"HV Solar Arrays: "
  11. print"MV Solar Arrays: "
  12. print"LV Solar Arrays: "
  13. while true do
  14.     mon.setCursorPos(1,1)
  15.     mon.setTextScale(3)
  16.     os.pullEvent("redstone")
  17.     local rsnpt = rs.getBundledInput("right")
  18.     print("Coal Generators:"..(colors.test(rsnpt,colors.grey) and " On" or " Off"))
  19.     print("Geothermal Generators: "..(colors.test(rsnpt,colors.pink) and " On" or " Off"))
  20.     print("Wind Mills: "..(colors.test(rsnpt,colors.lime) and " On" or " Off"))
  21.     print("Water Mills: "..(colors.test(rsnpt,colors.yellow) and " On" or " Off"))
  22.     print("Solar Panels: "..(colors.test(rsnpt,colors.cyan) and " On" or " Off"))
  23.     print("HV Solar Arrays: "..(colors.test(rsnpt,colors.magenta) and " On" or " Off"))
  24.     print("MV Solar Arrays: "..(colors.test(rsnpt,colors.orange) and " On" or " Off"))
  25.     print("LV Solar Arrays: "..(colors.test(rsnpt,colors.white) and " On" or " Off"))
  26. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement