FriedToes

aaaaaaaupdat

Jun 7th, 2021 (edited)
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.36 KB | None | 0 0
  1. function fuckinGetItem(itemName)
  2. for slot = 1, 16, 1 do
  3. item = turtle.getItemDetail(slot)
  4. if (item ~= nil) then
  5. if (item["name"] == itemName) then
  6. return slot
  7. end
  8. end
  9. end
  10. end
  11.  
  12. local isBlock, joeMama = turtle.inspect()
  13.  
  14. if (isBlock ~= nil) then
  15. local bruh = joeMama["state"]["age"]
  16. end
  17.  
  18. local seed = fuckinGetItem("minecraft:wheat_seeds")
  19. local wheat = fuckinGetItem("minecraft:wheat")
  20. local meal = fuckinGetItem("minecraft:bone_meal")
  21. local plantAmount = 0
  22.  
  23. function placeMeal(meal)
  24. if (meal ~= nil) then
  25. local plantAmount = 0
  26. while (plantAmount <= 2 ) do
  27. turtle.select(meal)
  28. turtle.place()
  29. plantAmount = plantAmount + 1
  30. if (plantAmount > 2) then
  31. turtle.dig()
  32. turtle.select(seed)
  33. if (turtle.getItemCount(seed) > 0) then
  34. turtle.dropDown(turtle.getItemCount(seed) - 1)
  35. end
  36. turtle.place()
  37. turtle.select(wheat)
  38. turtle.dropDown()
  39. plantAmount = 0
  40. end
  41. end
  42. end
  43. end
  44. function doFunny(boneMeal)
  45. if (isBlock == nil) then
  46. turtle.select(seed)
  47. turtle.place()
  48. end
  49. if (boneMeal ~= nil) then
  50. while (plantAmount <= 3) do
  51. -- fuckin ungrown seed, do the uhh mealing
  52. print("not grown - bone mealing")
  53. local wheatSeed = fuckinGetItem("minecraft:wheat_seeds")
  54. local daWheat, daData = turtle.inspect()
  55. turtle.select(boneMeal)
  56. turtle.place()
  57. plantAmount = plantAmount + 1
  58. if (daData["state"]["age"] == 7) then
  59. print("completed - mining")
  60. -- Bone meal complete, break shit
  61. turtle.dig()
  62. plantAmount = 0
  63. turtle.select(wheatSeed)
  64. turtle.place()
  65. print("no seed - placing (completed - reseting loop)")
  66. end
  67. end
  68. else
  69. print("NO BONE MEAL BRUH")
  70. end
  71. end
  72. doFunny(meal)
  73.  
  74. -- ADD SHIT LIST
  75. -- AYO FIRST
  76. --add command in turtle that allows you to set a certain amount of wheat to plant(ex: "wheat 16" if the required materials are met(*amount* TIMES 3(it takes 3 per wheat)))
Add Comment
Please, Sign In to add comment