Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mon = peripheral.wrap("back")
- local wmod = peripheral.wrap("top")
- wmod.closeAll()
- wmod.open(1) -- Energy
- wmod.open(2) -- Water
- wmod.open(3) -- Deuterium
- wmod.open(4) -- Tritium
- while true do
- mon.clear()
- mon.setCursorPos(1,1)
- mon.setBackgroundColor(colors.black)
- if redstone.testBundledInput("front", colors.white) == true then
- while redstone.testBundledInput("front", colors.orange) == true do
- mon.setBackgroundColor(colors.black)
- mon.clear()
- shell.run("monitor","back","tank")
- end
- while redstone.testBundledInput("front", colors.blue) == true do
- mon.setBackgroundColor(colors.black)
- mon.clear()
- shell.run("monitor","back","matrix")
- end
- end
- while redstone.getInput("left") == true do
- sleep(10)
- os.reboot()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment