Advertisement
Guest User

cell

a guest
Nov 27th, 2014
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | None | 0 0
  1. cell = peripheral.wrap("cofh_thermalexpansion_energycell_1")
  2. -- net = peripheral.wrap("top")
  3.  
  4. --methods = net.callRemote("cofh_thermalexpansion_energycell_1", "getEnergyStored", "unknown")
  5.  
  6. stored = cell.getEnergyStored("unknown")
  7. max = cell.getMaxEnergyStored("unknown")
  8.  
  9. print(tostring(stored).."/"..tostring(max).."="..tostring(stored/max).."%")
  10.  
  11. if (stored/max > 0.95) then
  12. print("off")
  13. else
  14. print("on")
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement