csmit195

Untitled

May 30th, 2017
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.34 KB | None | 0 0
  1. local euSense = sensor.wrap("top") --# change to sensor side.
  2. while true do
  3.   local total, totalCap = 0, 0
  4.   for target in pairs(euSense.getTargets()) do
  5.     if target.Capacity == 10000000 then
  6.       total = total + target.Stored
  7.           totalCap = totalCap + target.Capacity
  8.     end
  9.   end
  10.   print(total.." / "..totalCap)
  11.   sleep(0.5)
  12. end
Add Comment
Please, Sign In to add comment