Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("You have " .. tostring(turtle.getFuelLevel()) .. " Fuel Left")
- term.write("How much do you want: ")
- amount = tonumber(read())
- while (turtle.getFuelLevel() < amount) do
- turtle.place()
- turtle.placeUp()
- turtle.select(2)
- turtle.placeUp()
- turtle.refuel()
- turtle.select(1)
- term.clear()
- term.setCursorPos(1, 1)
- print(tostring(turtle.getFuelLevel() / amount * 100) .. "%"
- )
- end
- print("Done")
- sleep(1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement