Advertisement
guerre10

Beebot

Aug 6th, 2022
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. --place turtle in position
  2.  
  3. turtle.up()
  4. turtle.forward()
  5.  
  6. while turtle.detectDown() do
  7. turtle.select(1)
  8. -- this part of the code moves the turtle forward
  9. turtle.back()
  10.  
  11. -- this part of the code checks if the first inventory slot is the same as what's below
  12. if turtle.compareUp() == true then
  13. turtle.digDown()
  14. end
  15.  
  16. --this part of the code checks the second inventory slot
  17. turtle.select(2)
  18. if turtle.compareDown() = true then
  19. turtle.digDown()
  20. end
  21.  
  22. --this part of the code checks the third inventory slot
  23.  
  24.  
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement