Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Time = 0
- local TimeStunden = 0
- local TimeMinuten = 0
- local TimeSekunden = 0
- local Bundled = "back"
- local EnergyLevel = "Empty"
- local ReactorON = false
- local Storage = false
- term.setCursorPos(1, 1)
- function _print()
- term.clear()
- term.setCursorPos(1, 1)
- print(" _____________________________________")
- print(" ! !")
- print(" ! edit by XMaster96 !")
- print(" ! Reactor Control Computer !")
- print(" ! !")
- print(" !___________________________________!")
- print(" ")
- print(" ")
- print(" ")
- write(" Energy Storage : ")
- print(EnergyLevel)
- print(" ")
- if ReactorON then
- write(" Reactor is ") term.setTextColor(colors.lime) write("Online ") term.setTextColor(colors.white) --write("since ")
- -- write(TimeStunden) write(":") write(TimeMinuten)
- -- write(":") print(TimeSekunden)
- else
- write(" Reactor is ") term.setTextColor(colors.red) write("Offline") term.setTextColor(colors.white)
- end
- end
- function _rechne()
- if rs.testBundledInput(Bundled, 1) then
- EnergyLevel = "Empty"
- ReactorON = true
- Storage = false
- rs.setBundledOutput(Bundled, 8)
- end
- -- Time = Time + 10
- -- if Time > 60 then
- -- x = Time - 60
- -- else
- -- x = 0
- -- end
- -- TimeSekunden = (Time - x)
- -- TimeMinuten = math.floor((Time/60)+ 0.5)
- -- TimeStunden = math.floor((TimeMinuten/60)+ 0.5)
- if rs.testBundledInput(Bundled, 4) then
- EnergyLevel = "Full"
- ReactorON = false
- Storage = true
- rs.setBundledOutput(Bundled, 0)
- -- Time = 0
- end
- if rs.testBundledInput(Bundled, 16384) then
- EnergyLevel = "ME Empty"
- ReactorON = true
- rs.setBundledOutput(Bundled, 8)
- end
- if rs.testBundledInput(Bundled, 8192) and Storage then
- EnergyLevel = Full
- ReactotON = false
- rs.setBundledOutput(Bundled, 0)
- end
- end
- while true do
- _rechne()
- _print()
- sleep(2)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement