Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local energy = "left"
- local capBanks = 1
- local reactor = "back"
- ---------------------
- r = peripheral.wrap(reactor)
- e = peripheral.wrap(energy)
- maxd = e.getMaxEnergyStored()
- max = maxd * capBanks
- function on()
- r.setActive(true)
- end
- function off()
- r.setActive(false)
- end
- on()
- while true do
- atm = e.getEnergyStored(energy) * capBanks
- while atm < max do
- atm = e.getEnergyStored(energy) * capBanks
- sleep(0.1)
- shell.run("clear")
- print("Current Level: "..atm)
- print("Max Level: "..max)
- on()
- end
- off()
- end
Advertisement
Add Comment
Please, Sign In to add comment