Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local s = "back"
- local o = peripheral.wrap(s)
- while true do
- local l = o.getEnergyStored() / o.getEnergyCapacity()
- print(l)
- rs.setOutput(s, l < 0.8)
- sleep(0.5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement