aynoblo

turtle farm weath

Apr 10th, 2020
353
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.68 KB | None | 0 0
  1. while true do
  2.     turtle.turnLeft()
  3.     --Bonemeal
  4.     turtle.select(1)
  5.     turtle.suck()
  6.     turtle.select(2)
  7.     turtle.suckDown()
  8.     turtle.turnRight()
  9.     while turtle.getItemCount(1)>=2 do
  10.         turtle.select(2)
  11.         turtle.place()
  12.         turtle.select(1)
  13.         for i=1,5 do
  14.             turtle.place()
  15.         end
  16.         turtle.dig()
  17.     end
  18.     if turtle.getItemDetail(1).name == "minecraft:bone_meal" then
  19.         turtle.turnLeft()
  20.         turtle.select(1)
  21.         turtle.drop()
  22.         turtle.turnRight()
  23.     end
  24.     turtle.turnRight()
  25.     for i=1,16 do
  26.         turtle.select(i)
  27.         if turtle.getItemCount()~=0 then
  28.             if turtle.getItemDetail().name =="minecraft:wheat" then
  29.                 turtle.drop()
  30.             else
  31.                 turtle.dropDown()
  32.             end
  33.         end
  34.     end
  35.     turtle.turnLeft()
  36. end
Advertisement
Add Comment
Please, Sign In to add comment