Advertisement
RDS_YES

autofarmer

Nov 9th, 2022 (edited)
894
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.13 KB | None | 0 0
  1. local block, data = turtle.inspect()
  2. if block then
  3.     if data.name == "minecraft:acacia_slab" then
  4.         turtle.turnRight()
  5.     end
  6. end
  7. term.clear()
  8. while true do
  9.     sleep(0)
  10.     local blockd, datad = turtle.inspectDown()
  11.     if blockd then
  12.         turtle.digDown()
  13.     end
  14.     turtle.forward()
  15.     local block, data = turtle.inspect()
  16.     if block then
  17.         if data.name == "minecraft:chest" then
  18.             for i = 1,16 do
  19.                 turtle.select(i)
  20.                 local start, reason = turtle.drop()
  21.                 if start == false and reason == "No space for items" then
  22.                     while true do
  23.                         sleep(0)
  24.                         term.clear()
  25.                         print("trying...")
  26.                         start, reason = turtle.drop()
  27.                         if start == true then break end
  28.                     end
  29.                 end
  30.             end
  31.             turtle.turnRight()
  32.             turtle.turnRight()
  33.         elseif data.name == "minecraft:acacia_planks" then
  34.             turtle.turnRight()
  35.             turtle.turnRight()
  36.         end
  37.     end
  38. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement