Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- ComputerCraft script to display fuel stats
- -- Written by al@inventwithpython.com
- io.write(tostring(turtle.getFuelLevel()))
- io.write(' / ')
- io.write(tostring(turtle.getFuelLimit()))
- io.write(' ')
- local amt = 100 * turtle.getFuelLevel() / turtle.getFuelLimit()
- print(tostring(amt) .. '%')
- if amt < 100 then
- print('Space left: ' .. tostring(turtle.getFuelLimit() - turtle.getFuelLevel()))
- end
Add Comment
Please, Sign In to add comment