Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function getMilk()
- for i = 1, 16 do
- local item = turtle.getItemDetail(i)
- if item and item.name == "minecraft:bucket" then
- turtle.select(i)
- for j = 1, item.count do
- turtle.place()
- end
- end
- local item = turtle.getItemDetail(i)
- if item and item.name == "minecraft:milk_bucket" then
- turtle.select(i)
- turtle.dropDown()
- end
- end
- end
- getMilk()
- while true do
- os.pullEvent("turtle_inventory")
- getMilk()
- end
Add Comment
Please, Sign In to add comment