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 getItem = tonumber(turtle.getItemCount(1))
- function AntiObstruct()
- if turtle.detectDown() then
- turtle.digDown()
- end
- end
- function PlaceBlock()
- turtle.placeDown()
- turtle.forward()
- end
- function roundCorner()
- turtle.forward()
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- end
- function BuildCylinder()
- BuildLength = 0
- if (getItem < 1) then
- print("Place materials in slot 1 to start building.")
- else
- turtle.select(1)
- end
- if (BuildLength < 10) then
- PlaceBlock()
- BuildLength + 1
- else
- roundCorner()
- BuildLength - 10
- end
- if (BuildLength < 2) then
- PlaceBlock()
- BuildLength + 1
- else
- roundCorner()
- BuildLength - 2
- end
- if (BuildLength < 1) then
- PlaceBlock()
- BuildLength + 1
- else
- roundCorner()
- BuildLength - 1
- end
- if (BuildLength < 2) then
- PlaceBlock()
- BuildLength + 1
- else
- roundCorner()
- BuildLength - 2
- end
- if (BuildLength < 10) then
- PlaceBlock()
- BuildLength + 1
- else
- roundCorner()
- BuildLength - 10
- end
- term.clear()
- BuildCylinder()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement