Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function checkLog()
- if turtle.getItemDetail() then
- amount = turtle.getItemDetail().count
- end
- failLog = "minecraft:stripped_acacia_log"
- goodLog = "minecraft:acacia_log"
- hasblock, data = turtle.inspectDown()
- if hasblock then
- if data.name == failLog then
- turtle.digDown()
- print("cleaned out Trash Log")
- turtle.select(2)
- turtle.drop()
- turtle.select(1)
- else
- print("nice and beautiful " .. data.name)
- os.sleep(2)
- end
- if amount ~= nil then
- print(amount .. " logs left")
- if amount < 64 then
- turtle.suckUp(64-amount)
- print("got " .. 64-amount .. " more Logs")
- end
- else
- turtle.suckUp()
- print("I was all out")
- end
- else
- turtle.select(1)
- turtle.placeDown()
- print("New ACACACACACA")
- os.sleep(2)
- end
- end
- while true do
- checkLog()
- end
Add Comment
Please, Sign In to add comment