Not a member of Pastebin yet?
                        Sign Up,
                        it unlocks many cool features!                    
                - if turtle.detectDown() then
 - print("A base has already been built.")
 - return
 - end
 - function checkFuel()
 - if turtle.getFuelLevel() < 1 then
 - print("Turtle does not have enough fuel!")
 - return
 - else
 - print("Beginning to build base!")
 - end
 - end
 - function checkStoneBricks()
 - if turtle.getItemCount(1) < 1 then
 - turtle.select(2)
 - turtle.transferTo(1, 64)
 - end
 - if turtle.getItemCount(1) < 1 then
 - turtle.select(3)
 - turtle.transferTo(1, 64)
 - end
 - if turtle.getItemCount(1) < 1 then
 - turtle.select(4)
 - turtle.transferTo(1, 64)
 - end
 - if turtle.getItemCount(1) < 1 then
 - turtle.select(5)
 - turtle.transferTo(1, 64)
 - end
 - if turtle.getItemCount(1) < 1 then
 - turtle.select(6)
 - turtle.transferTo(1, 64)
 - end
 - turtle.select(1)
 - end
 - function buildBottom()
 - turtle.forward()
 - turtle.turnRight()
 - turtle.forward()
 - turtle.down()
 - for i=1,4 do
 - for i2=1,20 do
 - turtle.placeDown()
 - turtle.forward()
 - checkStoneBricks()
 - end
 - turtle.turnLeft()
 - end
 - turtle.up()
 - turtle.back()
 - turtle.turnLeft()
 - turtle.back()
 - end
 - function quickLoop()
 - for i=1,15 do
 - turtle.placeDown()
 - turtle.forward()
 - checkStoneBricks()
 - end
 - end
 - function buildFinal()
 - for i=1,2 do turtle.forward() end
 - turtle.turnRight()
 - for i=1,2 do turtle.forward() end
 - for i=1,2 do turtle.down() end
 - for i=1,7 do
 - quickLoop()
 - turtle.turnLeft()
 - turtle.forward()
 - turtle.turnLeft()
 - quickLoop()
 - turtle.turnRight()
 - turtle.forward()
 - turtle.turnRight()
 - end
 - for i=1,2 do turtle.up() end
 - for i=1,2 do turtle.back() end
 - turtle.turnLeft()
 - for i=1,15 do turtle.back() end
 - end
 - function buildTurtleBase()
 - turtle.select(16)
 - turtle.placeUp()
 - turtle.turnLeft()
 - turtle.place()
 - turtle.turnRight()
 - turtle.turnRight()
 - turtle.place()
 - turtle.turnLeft()
 - for i=1,2 do turtle.back() end
 - turtle.down()
 - turtle.select(14)
 - turtle.place()
 - turtle.up()
 - for i=1,2 do turtle.forward() end
 - turtle.select(16)
 - turtle.turnLeft()
 - turtle.turnLeft()
 - turtle.place()
 - turtle.turnLeft()
 - turtle.turnLeft()
 - end
 - function dirtSetup()
 - for i=1,8 do turtle.forward() end
 - turtle.turnRight()
 - for i=1,8 do turtle.forward() end
 - turtle.select(15)
 - turtle.placeDown()
 - turtle.turnLeft()
 - turtle.forward()
 - turtle.placeDown()
 - turtle.turnRight()
 - turtle.forward()
 - turtle.placeDown()
 - turtle.turnRight()
 - turtle.forward()
 - turtle.placeDown()
 - turtle.turnRight()
 - for i=1,9 do turtle.forward() end
 - turtle.turnRight()
 - for i=1,8 do turtle.back() end
 - end
 - function pipeSetup()
 - turtle.forward()
 - turtle.up()
 - turtle.turnLeft()
 - turtle.forward()
 - turtle.turnRight()
 - turtle.select(9)
 - for i=1,8 do
 - turtle.placeDown()
 - turtle.forward()
 - end
 - turtle.turnRight()
 - turtle.back()
 - turtle.down()
 - for i=1,4 do
 - turtle.digDown()
 - turtle.place()
 - turtle.down()
 - end
 - turtle.digDown()
 - turtle.down()
 - for i=1,2 do
 - turtle.forward()
 - end
 - for i=1,8 do
 - turtle.digUp()
 - turtle.placeUp()
 - turtle.dig()
 - turtle.forward()
 - end
 - turtle.dig()
 - turtle.forward()
 - for i=1,2 do
 - turtle.digUp()
 - turtle.up()
 - end
 - for i=1,2 do
 - turtle.placeDown()
 - turtle.up()
 - end
 - turtle.select(10)
 - turtle.up()
 - turtle.back()
 - turtle.place()
 - for i=1,2 do
 - turtle.up()
 - end
 - for i=1,8 do turtle.back() end
 - turtle.turnLeft()
 - for i=1,8 do turtle.back() end
 - print("Pipes placed.")
 - end
 - checkFuel()
 - checkStoneBricks()
 - for i=1,17 do
 - turtle.placeDown()
 - turtle.forward()
 - checkStoneBricks()
 - end
 - turtle.turnRight()
 - for i=1,17 do
 - turtle.placeDown()
 - turtle.forward()
 - checkStoneBricks()
 - end
 - turtle.turnRight()
 - for i=1,17 do
 - turtle.placeDown()
 - turtle.forward()
 - checkStoneBricks()
 - end
 - turtle.turnRight()
 - for i=1,17 do
 - turtle.placeDown()
 - turtle.forward()
 - checkStoneBricks()
 - end
 - turtle.turnRight()
 - print("Frame built.")
 - print("Awaiting next process.")
 - buildBottom()
 - buildFinal()
 - buildTurtleBase()
 - dirtSetup()
 - -- pipeSetup()
 
Advertisement
 
                    Add Comment                
                
                        Please, Sign In to add comment