bobmarley12345

fusionreactorstatuscode

Sep 24th, 2020 (edited)
1,169
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. mon = peripheral.wrap("bottom")
  2. fOn = "Fusion 1 ON"
  3. fOff = "Fusion 1 OFF"
  4.  
  5. while true do
  6.     if redstone.getInput("top") then
  7.         mon.setCursorPos(1,2)
  8.         mon.setTextScale(1.5)
  9.         mon.setBackgroundColor(colors.green)
  10.         mon.setTextColor(colors.white)
  11.         mon.clear()
  12.         mon.write(fOn)
  13.     else
  14.         mon.setCursorPos(1,2)
  15.         mon.setTextScale(1.5)
  16.         mon.setBackgroundColor(colors.red)
  17.         mon.setTextColor(colors.white)
  18.         mon.clear()
  19.         mon.write(fOff)
  20.     end
  21.  
  22.     sleep(1)
  23. end
RAW Paste Data