Thunder7102

refuel

May 24th, 2015
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.25 KB | None | 0 0
  1. --[[
  2.         Simple refuel script that goes through all parts of inventory that
  3.         can be refueled and takes care of them at once.
  4. ]]
  5.  
  6. for i=1,16 do
  7.     if turtle.getItemCount(i) > 0 then
  8.         turtle.select(i)
  9.         turtle.refuel(turtle.getItemCount(i))
  10.     end
  11. end
Advertisement
Add Comment
Please, Sign In to add comment