Advertisement
Calyndir

startup Farmland 1.1

Aug 14th, 2022 (edited)
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.54 KB | None | 0 0
  1. slotstick = 1
  2. slotseed = 2
  3. slotred = 3
  4.  
  5. while true do
  6.    
  7.     name, meta = turtle.inspect()
  8.    
  9.    if meta == 7 then
  10.         turtle.dig()
  11.     end
  12.    
  13.     if turtle.getItemCount(slotstick) > 0 then
  14.             turtle.select(slotstick)
  15.             turtle.place(slotstick)
  16.     end
  17.    
  18.     if turtle.getItemCount(slotseed) > 0 then
  19.             turtle.select(slotseed)
  20.             turtle.place(slotseed)
  21.     end
  22.    
  23.     if turtle.getItemCount(slotred) > 0 then
  24.             turtle.select(slotred)
  25.             turtle.dropUp()
  26.     end
  27. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement