Advertisement
Guest User

nuclearcontrol

a guest
Jul 17th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.13 KB | None | 0 0
  1. sSide = "back"
  2. local x = 0
  3. while true do
  4. sleep(5)
  5. print("Waiting for depletion")
  6. if redstone.testBundledInput(sSide, colors.black)==true then
  7. redstone.setBundledOutput(sSide, colors.yellow)
  8.  print("Dump Cycle")
  9.  repeat
  10.   redstone.setBundledOutput(sSide, colors.combine(colors.red, colors.yellow))
  11.   sleep(0.5)
  12.   redstone.setBundledOutput(sSide, colors.yellow)
  13.   sleep(0.5)
  14.   x=x+1
  15.  until x == 54
  16. x = 0
  17.  print("Single Cell")
  18.  repeat
  19.   redstone.setBundledOutput(sSide, colors.combine(colors.green, colors.yellow))
  20.   sleep(0.5)
  21.   redstone.setBundledOutput(sSide, colors.yellow)
  22.   sleep(0.5)
  23.   x=x+1
  24.  until x == 1
  25. x = 0
  26.  print("Ice Cycle")
  27.  repeat
  28.   redstone.setBundledOutput(sSide, colors.combine(colors.blue, colors.yellow))
  29.   sleep(0.5)
  30.   redstone.setBundledOutput(sSide, colors.yellow)
  31.   sleep(0.5)
  32.   x=x+1
  33.  until x == 7
  34. x = 0
  35.  print("Final Uranium Cycle")
  36.  repeat
  37.   redstone.setBundledOutput(sSide, colors.combine(colors.green, colors.yellow))
  38.   sleep(0.5)
  39.   redstone.setBundledOutput(sSide, colors.yellow)
  40.   sleep(0.5)
  41.   x=x+1
  42.   until x == 46
  43.  print("Reload Complete")
  44. redstone.setBundledOutput(sSide, 0)
  45. end
  46. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement