Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cell = peripheral.wrap("cofh_thermalexpansion_energycell_1")
- -- net = peripheral.wrap("top")
- --methods = net.callRemote("cofh_thermalexpansion_energycell_1", "getEnergyStored", "unknown")
- stored = cell.getEnergyStored("unknown")
- max = cell.getMaxEnergyStored("unknown")
- print(tostring(stored).."/"..tostring(max).."="..tostring(stored/max).."%")
- if (stored/max > 0.95) then
- print("off")
- else
- print("on")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement