Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local bone_counter = 0
- while true do
- turtle.attack()
- if turtle.getItemCount(16) > 0 then
- for q = 1, 16 do
- turtle.select(q)
- local item_detail = turtle.getItemDetail(q)
- if item_detail then
- if string.find(item_detail.name, "bone") == nil then
- turtle.turnRight()
- turtle.drop(64)
- turtle.turnLeft()
- else
- bone_counter = bone_counter + turtle.getItemCount()
- turtle.dropUp(turtle.getItemCount())
- print("bones: " .. bone_counter)
- end
- end
- end
- turtle.select(1)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement