Advertisement
TechManDylan

Cyl

Mar 27th, 2013
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if turtle.getFuelLevel() < 1000 then
  2. turtle.select(16)
  3. turtle.refuel(64)
  4. end
  5. local BuildLength = 0
  6. function AntiObstruct()
  7. if turtle.detectDown() then
  8.   turtle.digDown()
  9. end
  10. function PlaceBlock()
  11. turtle.placeDown()
  12. turtle.forward
  13. end
  14. function roundCorner()
  15. turtle.forward()
  16. turtle.turnRight()
  17. turtle.forward()
  18. turtle.turnLeft()
  19. end
  20. function BuildCylinder()
  21. if(BuildLength < 10) then PlaceBlock() else
  22. roundCorner()
  23. if(BuildLength < 2) then PlaceBlock() else
  24. roundCorner()
  25. if(BuildLength < 1) then PlaceBlock() else
  26. roundCorner()
  27. if(BuildLength < 2) then PlaceBlock() else
  28. roundCorner()
  29. if(BuildLength < 10) then PlaceBlock() else
  30. roundCorner()
  31. turtle.select(1) -- building cylinder
  32. term.clear()
  33. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement