Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local checkInterval = 60 -- seconds
- local lastCheck = os.clock()
- while true do
- turtle.attack()
- sleep(0.1)
- if os.clock() - lastCheck >= checkInterval then
- for slot = 1, 16 do
- turtle.select(slot)
- local item = turtle.getItemDetail()
- if item then
- if item.name == "minecraft:bone" then
- -- Turn around to drop behind
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.drop()
- turtle.turnLeft()
- turtle.turnLeft()
- else
- turtle.dropDown()
- end
- end
- end
- turtle.select(1)
- lastCheck = os.clock()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment