Shadows_Player

Menu

Jan 7th, 2022
1,275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.76 KB | None | 0 0
  1. mon = peripheral.wrap("back")
  2. local wmod = peripheral.wrap("top")
  3. wmod.closeAll()
  4. wmod.open(1) -- Energy
  5. wmod.open(2) -- Water
  6. wmod.open(3) -- Deuterium
  7. wmod.open(4) -- Tritium
  8. while true do
  9.  mon.clear()
  10.  mon.setCursorPos(1,1)
  11.  mon.setBackgroundColor(colors.black)
  12.  if redstone.testBundledInput("front", colors.white) == true then
  13.    while redstone.testBundledInput("front", colors.orange) == true do
  14.     mon.setBackgroundColor(colors.black)
  15.     mon.clear()
  16.     shell.run("monitor","back","tank")
  17.     end
  18.    while redstone.testBundledInput("front", colors.blue) == true do
  19.     mon.setBackgroundColor(colors.black)
  20.     mon.clear()
  21.     shell.run("monitor","back","matrix")
  22.     end
  23.  end
  24.   while redstone.getInput("left") == true do
  25.   sleep(10)
  26.   os.reboot()
  27.  end
  28. end
  29.  
Advertisement
Add Comment
Please, Sign In to add comment