Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local energy = "bottom"
- local bundCable = "right"
- ---------------------
- e = peripheral.wrap(energy)
- max = e.getMaxEnergyStored(energy)
- function on()
- rs.setBundledOutput(bundCable, colors.white)
- end
- function off()
- rs.setBundledOutput(bundCable, 0)
- end
- on()
- while true do
- atm = e.getEnergyStored(energy)
- while atm < max do
- atm = e.getEnergyStored(energy)
- 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