Advertisement
ecco7777

floor placer

May 30th, 2015
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.51 KB | None | 0 0
  1. c=peripheral.wrap("right")
  2. while true do
  3. if turtle.detect()== true then
  4. if c.getFacing()== 3 then
  5. turtle.turnLeft()
  6. turtle.forward()
  7. turtle.turnLeft()
  8. else
  9. if c.getFacing()==1 then
  10. turtle.turnRight()
  11. turtle.forward()
  12. turtle.turnRight()
  13. end
  14. end
  15. end
  16. if turtle.getItemCount(1)>=1 then
  17. turtle.select(1)
  18. turtle.placeDown()
  19. turtle.forward()
  20. end
  21. if turtle.getItemCount(1)<=0 then
  22. turtle.select(2)
  23. turtle.placeUp()
  24. turtle.select(1)
  25. turtle.suckUp()
  26. turtle.select(2)
  27. turtle.digUp()
  28. turtle.select(1)
  29. end
  30. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement