Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rs.setOutput("back",false)
- while true do
- local mon = peripheral.wrap("top")
- local bank = peripheral.wrap("bottom")
- local procent = bank.getEnergyStored()/bank.getMaxEnergyStored()*100
- if procent <= 60 then
- rs.setOutput("back",true)
- elseif procent >= 90 then
- rs.setOutput("back",false)
- end
- mon.setTextColor(colors.green)
- mon.setTextScale(5)
- mon.setCursorPos(1,1)
- mon.clear()
- mon.write(procent.."%")
- sleep(0)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement