Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -------------------------------------------------------------------------------------------------------------------------
- --CODE-------------------------------------------------------------------------------------------------------------------
- -------------------------------------------------------------------------------------------------------------------------
- --Start height
- local args = {...}
- a = args[1]
- --Items to Ender-Chest---------------------------------------------------------------------------------------------------
- function Item()
- turtle.digUp()
- turtle.select(1)
- turtle.placeUp()
- for i=4,16,1 do
- turtle.select(i)
- turtle.dropUp()
- end
- turtle.select(1)
- turtle.digUp()
- end
- --Startcheck: Fuel-------------------------------------------------------------------------------------------------------
- function Start()
- shell.run("label set Filler")
- while turtle.getFuelLevel()<(64*a+10000) do
- turtle.select(2)
- turtle.placeUp()
- turtle.suckUp()
- shell.run("refuel all")
- turtle.select(2)
- turtle.digUp()
- end
- turtle.select(4)
- turtle.up()
- turtle.placeUp()
- turtle.select(1)
- turtle.down()
- print(" ")
- print("--------------------------------")
- print("Starting Filler!")
- print("--------------------------------")
- end
- --Move-------------------------------------------------------------------------------------------------------------------
- function Move()
- while turtle.forward()==false do
- sleep(1)
- end
- end
- --Build Flat-Ground------------------------------------------------------------------------------------------------------
- --Get Bricks
- function Bricks()
- while turtle.getItemSpace(4)>0 do
- turtle.select(3)
- turtle.placeUp()
- turtle.select(4)
- turtle.suckUp()
- turtle.select(3)
- turtle.digUp()
- turtle.select(4)
- end
- end
- --Building
- function D()
- for d=1,3,1 do
- Bricks()
- for c=1,2,1 do
- turtle.turnRight()
- turtle.placeDown()
- for r=1,15,1 do
- Move()
- turtle.placeDown()
- end
- turtle.turnLeft()
- Move()
- turtle.turnLeft()
- turtle.placeDown()
- for r=1,15,1 do
- Move()
- turtle.placeDown()
- end
- turtle.turnRight()
- Move()
- end
- end
- Bricks()
- turtle.turnRight()
- turtle.placeDown()
- for r=1,15,1 do
- Move()
- turtle.placeDown()
- end
- turtle.turnLeft()
- Move()
- turtle.turnLeft()
- turtle.placeDown()
- for r=1,15,1 do
- Move()
- turtle.placeDown()
- end
- turtle.turnRight()
- Move()
- turtle.turnRight()
- turtle.placeDown()
- for r=1,15,1 do
- Move()
- turtle.placeDown()
- end
- turtle.turnLeft()
- Move()
- turtle.turnLeft()
- turtle.placeDown()
- for r=1,15,1 do
- Move()
- turtle.placeDown()
- end
- turtle.turnLeft()
- for r=1,15,1 do
- Move()
- end
- turtle.turnLeft()
- turtle.turnLeft()
- Item()
- end
- -------------------------------------------------------------------------------------------------------------------------
- --Actions----------------------------------------------------------------------------------------------------------------
- -------------------------------------------------------------------------------------------------------------------------
- Start()
- while turtle.down()==true do
- turtle.down()
- end
- turtle.up()
- for i=1,a,1 do
- D()
- turtle.up()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement