Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- pastebin get hVaHX6CG HoneyFarmer
- Inventory = require("fkt_inventory")
- local function getHoneyLevel()
- suc, item = turtle.inspect()
- if suc and (item.name == "minecraft:bee_nest" or item.name == "minecraft:beehive") then
- honeyLevel = item.state.honey_level
- if honeyLevel then
- return true, honeyLevel
- else
- print("Block has no honey level.")
- return false, None
- end
- end
- print("No Bee Nest or Beehive infront of turtle.")
- return false, None
- end
- while true do
- suc, honeyLevel = getHoneyLevel()
- if suc and honeyLevel == 5 then
- strShears = "minecraft:shears"
- while not Inventory.selectItem(strShears) do
- turtle.select(1)
- if not turtle.suckUp() then
- print("Pls restock the shears in the chest above.")
- read()
- end
- end
- turtle.place()
- else
- sleep(5)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment