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