Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local euSense = sensor.wrap("top") --# change to sensor side.
- while true do
- local total, totalCap = 0, 0
- for target in pairs(euSense.getTargets()) do
- if target.Capacity == 10000000 then
- total = total + target.Stored
- totalCap = totalCap + target.Capacity
- end
- end
- print(total.." / "..totalCap)
- sleep(0.5)
- end
Add Comment
Please, Sign In to add comment