Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function find_slot()
- for i = 1, 16 do
- if turtle.getItemSpace(i) > 0 then
- turtle.select(i)
- return
- end
- end
- end
- while true do
- local is_block, data = turtle.inspect()
- if is_block then
- if data.state and data.state.age == 7 then
- find_slot()
- turtle.dropUp()
- turtle.dig()
- end
- else
- turtle.place()
- end
- turtle.turnRight()
- sleep()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement