Akuba

Auto Refill

Dec 26th, 2018
240
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.26 KB | None | 0 0
  1. for n=1,16 do
  2.     local nCount = turtle.getItemCount(n)
  3.     if nCount > 0 then
  4.         turtle.select(n)           
  5.         for n=0,nCount do
  6.             if turtle.getFuelLevel() < 20000 then
  7.                 turtle.refuel(1)
  8.             end
  9.         end
  10.         print( "Fuel: "..turtle.getFuelLevel() )
  11.     end
  12. end
  13. turtle.select(1)
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment