Tommo5261

dynamoSystem

Oct 25th, 2020 (edited)
838
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. fuelStatus = "Off"
  2. dynamoStatus = "Off"
  3. redstone.setOutput("back",false)
  4. redstone.setOutput("top",false)
  5. while true do
  6.   term.clear()
  7.   term.setCursorPos(1,1)
  8.   print("== Compression Dynamo System ==")
  9.   print("Commands listed below will toggle systems")
  10.   print("(1) - Fuel Delivery - " .. fuelStatus)
  11.   print("(2) - Dynamo Status - " .. dynamoStatus)
  12.   print("")
  13.   option = read()
  14.   if option == "1" then
  15.     if fuelStatus == "Off" then
  16.       redstone.setOutput("back",true)
  17.       fuelStatus = "On"
  18.       texutils.slowPrint("Enabled fuel delivery system")
  19.       sleep(2)
  20.     else
  21.       redstone.setOutput("back",false)
  22.       fuelStatus = "Off"
  23.       textutils.slowPrint("Disabled fuel delivery system")
  24.       sleep(2)
  25.     end
  26.   elseif option == "2" then
  27.     if dynamoStatus == "Off" then
  28.       redstone.setOutput("top",true)
  29.       dynamoStatus = "On"
  30.       textutils.slowPrint("Enabled all dynamos")
  31.       sleep(2)
  32.     else
  33.       redstone.setOutput("top",false)
  34.       dynamoStatus = "Off"
  35.       textutils.slowPrint("Enabled all dynamos")
  36.       sleep(2)
  37.     end
  38.   else
  39.     textutils.slowPrint("Unknown command")
  40.     sleep(2)
  41.   end
  42. 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.

×