Advertisement
Ezteyh

pain aqm2

Aug 19th, 2022
683
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.64 KB | None | 0 0
  1. function select_bucket()
  2.     local item = turtle.getItemDetail(6)
  3.     if (item["name"] == "minecraft:bucket") then
  4.         turtle.select(6)
  5.         turtle.placeDown()
  6.         turtle.select(1)
  7.     elseif (item["name"] == "minecraft:water_bucket") then
  8.         turtle.select(1)
  9.     end
  10. end
  11.  
  12. function init_wheat()
  13.     turtle.suck(3)
  14.     local count == turtle.getItemCount(1)
  15.     if count == 3 then
  16.         turtle.select(1)
  17.         turtle.transferTo(2,1)
  18.         turtle.transferTo(3,1)
  19.         turtle.craft()
  20.         turtle.dropUp()
  21.     else
  22.         turtle.select(1)
  23.     end
  24. end
  25.  
  26. while 1 do
  27.     select_bucket()
  28.     init_wheat()
  29. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement