Advertisement
OfficialStamper

botEndoflame.lua

Jan 30th, 2023 (edited)
761
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | Gaming | 0 0
  1. local sleepTime = 0.05
  2.  
  3. while true do
  4.     if turtle.getItemCount(16) < 1 then
  5.         for i = 0, 8, 4 do
  6.             for j = 1, 3 do
  7.                 if turtle.getItemCount(i+j) < 1 then
  8.                     turtle.select(i+j)
  9.                     while not turtle.suckUp(1) do
  10.                         os.sleep(2)
  11.                     end
  12.                 end
  13.             end
  14.         end
  15.         turtle.select(16)
  16.         turtle.craft(1)
  17.     end
  18.  
  19.     if rs.getAnalogInput('bottom') == 0 then
  20.         turtle.drop(1)
  21.     end
  22.  
  23.     os.sleep(sleepTime)
  24. end
  25.  
  26.  
  27.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement