Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --place turtle in position
- turtle.up()
- turtle.forward()
- while turtle.detectDown() do
- turtle.select(1)
- -- this part of the code moves the turtle forward
- turtle.back()
- -- this part of the code checks if the first inventory slot is the same as what's below
- if turtle.compareUp() == true then
- turtle.digDown()
- end
- --this part of the code checks the second inventory slot
- turtle.select(2)
- if turtle.compareDown() = true then
- turtle.digDown()
- end
- --this part of the code checks the third inventory slot
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement