Glitchies

Untitled

Mar 30th, 2014
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. cell = peripheral.wrap("cofh_thermalexpansion_energycell_1")
  2. cellStored = cell.getEnergyStored("cofh_thermalexpansion_energycell_1")
  3. cellFull = cell.getMaxEnergyStored("cofh_thermalexpansion_energycell_1")
  4. cellPercent = math.floor(100*cellStored/cellFull)
  5.  
  6. print(tonumber(cellStored))
  7. print(cellFull)
  8. -- Better format
  9. print(tonumber(cellStored).."/"..cellFull.." "..cellPercent.."%")
Advertisement
Add Comment
Please, Sign In to add comment