Blackhome

HoneyFarmer

Dec 3rd, 2025 (edited)
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.97 KB | Gaming | 0 0
  1. -- pastebin get hVaHX6CG HoneyFarmer
  2.  
  3. Inventory = require("fkt_inventory")
  4.  
  5.  
  6. local function getHoneyLevel()
  7.     suc, item = turtle.inspect()
  8.     if suc and (item.name == "minecraft:bee_nest" or item.name == "minecraft:beehive") then
  9.         honeyLevel = item.state.honey_level
  10.         if honeyLevel then
  11.             return true, honeyLevel
  12.         else
  13.             print("Block has no honey level.")
  14.             return false, None
  15.         end
  16.     end
  17.     print("No Bee Nest or Beehive infront of turtle.")
  18.     return false, None
  19. end
  20.  
  21. while true do
  22.     suc, honeyLevel = getHoneyLevel()
  23.     if suc and honeyLevel == 5 then
  24.         strShears = "minecraft:shears"
  25.         while not Inventory.selectItem(strShears) do
  26.             turtle.select(1)
  27.             if not turtle.suckUp() then
  28.                 print("Pls restock the shears in the chest above.")
  29.                 read()
  30.             end
  31.         end
  32.         turtle.place()
  33.     else
  34.         sleep(5)
  35.     end
  36. end
Advertisement
Add Comment
Please, Sign In to add comment