Advertisement
infiniteblock

Untitled

Sep 4th, 2021
1,260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  1. local sides = peripheral.getNames()
  2. local storageCell = {}
  3. for _, side in pairs(sides) do
  4.   if peripheral.getType(side) == "thermalexpansion:storagecell" then
  5.     table.insert(storageCell, peripheral.wrap(side))
  6.     end
  7.     end
  8.   for , cell in pairs(storageCell) do
  9.     local j = cell.getEnergyCapacity()
  10.     x = 1
  11.     if x == 1 then
  12. print(j)
  13. end
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement