Advertisement
Guest User

sssss

a guest
May 26th, 2016
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. local foundChest = false
  2. repeat
  3. local move = true;
  4. while move do
  5. if forward() == false then
  6. move = false
  7. end
  8. end
  9. local success, data = turtle.inspectDown()
  10. if data.name == "minecraft:chest" then
  11. foundChest = true
  12. else
  13. turtle.turnRight()
  14. end
  15. until foundChest == true
  16. turtle.turnRight()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement