jaklsfjlsak

9/4/21 热力能量监测9nrAwCKB

Sep 5th, 2022
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 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
Add Comment
Please, Sign In to add comment