Advertisement
Terrah

Turtle

Feb 22nd, 2016
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  1. local function EatFuel()
  2.  
  3.     local item;
  4.  
  5.     for n=1,16 do
  6.         turtle.select(n);
  7.         item = turtle.getItemDetail();
  8.         if item and turtle.refuel(item.count) then
  9.             print("ate "..tostring(item.count).." "..tostring(item.name));
  10.         end
  11.     end
  12.  
  13.     turtle.select(1);
  14. end
  15.  
  16. EatFuel();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement