Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getCharge()
- chargep = math.floor(((computer.energy() / computer.maxEnergy()) * 100)
- return chargep
- end
- if getCharge() < 100 then
- print("Charge low")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement