Advertisement
yassine18299

farming 1

Jun 29th, 2019
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.51 KB | None | 0 0
  1. ble=1
  2. local function find_(x)
  3.   for i = 3,16 do
  4.     turtle.select(i)
  5.     if turtle.compareTo(x) then
  6.       return i
  7.     end
  8.   end
  9. end
  10. local function pose(x)
  11.     S=find_(x)
  12.     if S==0 then
  13.         turtle.select(x)
  14.     else
  15.         turtle.select(S)
  16.     end
  17.     turtle.digDown()
  18.     turtle.placeDown()
  19. end
  20. local function Fble()
  21.     turtle.forward()
  22.     for i=1,2 do
  23.         for i=1,33 do
  24.             pose(ble)
  25.             turtle.forward()
  26.         end
  27.         turtle.turnRight()
  28.         pose(ble)
  29.         turtle.forward()
  30.         turtle.turnRight()
  31.     end
  32.     turtle.back()
  33. end
  34. Fble()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement