Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if turtle.getFuelLevel() < 1000 then
- turtle.select(16)
- turtle.refuel(64)
- end
- local BuildLength = 0
- function AntiObstruct()
- if turtle.detectDown() then
- turtle.digDown()
- end
- function PlaceBlock()
- turtle.placeDown()
- turtle.forward
- end
- function roundCorner()
- turtle.forward()
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- end
- function BuildCylinder()
- if(BuildLength < 10) then PlaceBlock() else
- roundCorner()
- if(BuildLength < 2) then PlaceBlock() else
- roundCorner()
- if(BuildLength < 1) then PlaceBlock() else
- roundCorner()
- if(BuildLength < 2) then PlaceBlock() else
- roundCorner()
- if(BuildLength < 10) then PlaceBlock() else
- roundCorner()
- turtle.select(1) -- building cylinder
- term.clear()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement