Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function fuckinGetItem(itemName)
- for slot = 1, 16, 1 do
- item = turtle.getItemDetail(slot)
- if (item ~= nil) then
- if (item["name"] == itemName) then
- return slot
- end
- end
- end
- end
- local isBlock, joeMama = turtle.inspect()
- if (isBlock ~= nil) then
- local bruh = joeMama["state"]["age"]
- end
- local seed = fuckinGetItem("minecraft:wheat_seeds")
- local wheat = fuckinGetItem("minecraft:wheat")
- local meal = fuckinGetItem("minecraft:bone_meal")
- local plantAmount = 0
- function placeMeal(meal)
- if (meal ~= nil) then
- local plantAmount = 0
- while (plantAmount <= 2 ) do
- turtle.select(meal)
- turtle.place()
- plantAmount = plantAmount + 1
- if (plantAmount > 2) then
- turtle.dig()
- turtle.select(seed)
- if (turtle.getItemCount(seed) > 0) then
- turtle.dropDown(turtle.getItemCount(seed) - 1)
- end
- turtle.place()
- turtle.select(wheat)
- turtle.dropDown()
- plantAmount = 0
- end
- end
- end
- end
- function doFunny(boneMeal)
- if (isBlock == nil) then
- turtle.select(seed)
- turtle.place()
- end
- if (boneMeal ~= nil) then
- while (plantAmount <= 3) do
- -- fuckin ungrown seed, do the uhh mealing
- print("not grown - bone mealing")
- local wheatSeed = fuckinGetItem("minecraft:wheat_seeds")
- local daWheat, daData = turtle.inspect()
- turtle.select(boneMeal)
- turtle.place()
- plantAmount = plantAmount + 1
- if (daData["state"]["age"] == 7) then
- print("completed - mining")
- -- Bone meal complete, break shit
- turtle.dig()
- plantAmount = 0
- turtle.select(wheatSeed)
- turtle.place()
- print("no seed - placing (completed - reseting loop)")
- end
- end
- else
- print("NO BONE MEAL BRUH")
- end
- end
- doFunny(meal)
- -- ADD SHIT LIST
- -- AYO FIRST
- --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