Advertisement
Guest User

cell

a guest
Sep 1st, 2014
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.41 KB | None | 0 0
  1. m = peripheral.wrap("back")
  2. m.setTextScale(1)
  3.  
  4. cell1 = peripheral.wrap("cofh_thermalexpansion_energycell_7")
  5. cell2 = peripheral.wrap("cofh_thermalexpansion_energycell_2")
  6. cell3 = peripheral.wrap("cofh_thermalexpansion_energycell_3")
  7. cell4 = peripheral.wrap("cofh_thermalexpansion_energycell_4")
  8. cell5 = peripheral.wrap("cofh_thermalexpansion_energycell_5")
  9. cell6 = peripheral.wrap("cofh_thermalexpansion_energycell_6")
  10.  
  11. stored1 = cell.getEnergyStored("cofh_thermalexpansion_energycell_7")
  12. stored2 = cell.getEnergyStored("cofh_thermalexpansion_energycell_2")
  13. stored3 = cell.getEnergyStored("cofh_thermalexpansion_energycell_3")
  14. stored4 = cell.getEnergyStored("cofh_thermalexpansion_energycell_4")
  15. stored5 = cell.getEnergyStored("cofh_thermalexpansion_energycell_5")
  16. stored6 = cell.getEnergyStored("cofh_thermalexpansion_energycell_6")
  17.  
  18. storedmax1 = cell.getMaxEnergyStored("cofh_thermalexpansion_energycell_7")
  19. storedmax1 = cell.getMaxEnergyStored("cofh_thermalexpansion_energycell_2")
  20. storedmax1 = cell.getMaxEnergyStored("cofh_thermalexpansion_energycell_3")
  21. storedmax1 = cell.getMaxEnergyStored("cofh_thermalexpansion_energycell_4")
  22. storedmax1 = cell.getMaxEnergyStored("cofh_thermalexpansion_energycell_5")
  23. storedmax1 = cell.getMaxEnergyStored("cofh_thermalexpansion_energycell_6")
  24.  
  25. m.setCursorPos(2,2)
  26. m.write(tonumber(stored1).."/"..storedmax1)
  27. m.setCursorPos(12,2)
  28. m.write(tonumber(stored2).."/"..storedmax2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement