Advertisement
wxyzsupermod

Place Bridge Support

Jul 19th, 2016
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. StepUp = 0
  2. ForwardCount = 0
  3. SlotNum = 1
  4. Stop = 0
  5. while Stop == 0 do
  6. turtle.select(SlotNum)
  7. ItemCount = turtle.getItemCount(SlotNum)
  8. if ItemCount == 0 then
  9. SlotNum = Slotnum + 1
  10. end
  11. if ForwardCount == 5 then
  12. while StepUp < 6 do
  13. turtle.up()
  14. turtle.forward()
  15. turtle.placeDown()
  16. StepUp = StepUp + 1
  17. end
  18. while StepUp >= 6 do
  19. turtle.forward()
  20. turtle.down()
  21. turtle.placeDown()
  22. StepUp = StepUp - 1
  23. end
  24. ForwardCount = 0
  25. end
  26. while ForwardCount < 6 do
  27. turtle.forward(ForwardCount)
  28. ForwardCount = ForwardCount + 1
  29. end
  30. if SlotNum == 16 then
  31. Stop = 1
  32. end
  33. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement