Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local sides = peripheral.getNames()
- local storageCell = {}
- for _, side in pairs(sides) do
- if peripheral.getType(side) == "thermalexpansion:storagecell" then
- table.insert(storageCell, peripheral.wrap(side))
- end
- end
- for , cell in pairs(storageCell) do
- local j = cell.getEnergyCapacity()
- x = 1
- if x == 1 then
- print(j)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement