Not a member of Pastebin yet?
                        Sign Up,
                        it unlocks many cool features!                    
                - function refill()
 - turtle.turnRight()
 - turtle.turnRight()
 - turtle.select(1)
 - while turtle.getItemCount(15) < 64 do
 - turtle.suck()
 - end
 - turtle.turnLeft()
 - turtle.turnLeft()
 - turtle.select(15)
 - end
 - function horizontal()
 - checkBlocks()
 - for i = 1, x do
 - for i = 1, 3 do
 - turtle.up()
 - turtle.place()
 - end
 - turtle.up()
 - end
 - for i = 1, (x*4) do
 - turtle.down()
 - end
 - end
 - function checkBlocks()
 - if turtle.getItemCount(s) < 5 then
 - s = s - 1
 - turtle.select(s)
 - end
 - end
 - function footnhead()
 - for i = 1, x do
 - checkBlocks()
 - turtle.place()
 - for i = 1, 4 do
 - turtle.up()
 - end
 - turtle.place()
 - end
 - turtle.turnRight()
 - turtle.forward()
 - turtle.turnLeft()
 - for i = 1, x do
 - turtle.place()
 - for i = 1, 4 do
 - turtle.down()
 - end
 - turtle.place()
 - end
 - end
 - function depth()
 - checkBlocks()
 - turtle.turnRight()
 - turtle.forward()
 - turtle.turnLeft()
 - turtle.forward()
 - turtle.forward()
 - turtle.turnLeft()
 - for i = 1, y do
 - for i = 1, z do
 - footnhead()
 - turtle.up()
 - for i = 1, 3 do
 - turtle.forward()
 - end
 - turtle.down()
 - turtle.turnLeft()
 - turtle.forward()
 - turtle.turnRight()
 - end
 - footnhead()
 - turtle.up()
 - for i = 1, z * 3 do
 - turtle.back()
 - end
 - turtle.turnRight()
 - turtle.forward()
 - turtle.forward()
 - turtle.turnLeft()
 - turtle.forward()
 - turtle.turnLeft()
 - turtle.down()
 - for i = 1, z do
 - horizontal()
 - turtle.turnRight()
 - turtle.forward()
 - turtle.turnLeft()
 - footnhead()
 - turtle.turnRight()
 - turtle.forward()
 - turtle.turnLeft()
 - end
 - horizontal()
 - turtle.turnRight()
 - for i = 1, z * 3 + 1 do
 - turtle.back()
 - end
 - end
 - end
 - function portal()
 - for i = 1, z do
 - horizontal()
 - turtle.turnRight()
 - turtle.forward()
 - turtle.turnLeft()
 - footnhead()
 - turtle.turnRight()
 - turtle.forward()
 - turtle.turnLeft()
 - end
 - horizontal()
 - depth()
 - turtle.turnRight()
 - turtle.forward()
 - turtle.turnLeft()
 - for i = 1, y * 4 do
 - turtle.forward()
 - end
 - turtle.forward()
 - turtle.turnLeft()
 - turtle.forward()
 - turtle.turnLeft()
 - end
 - s = 15
 - print("Enter height: ")
 - x = io.read()
 - print("Enter width: ")
 - z = io.read()
 - print("Enter depth: ")
 - y = io.read()
 - if turtle.getItemCount(1) < x*8 then
 - refill()
 - end
 - turtle.select(15)
 - portal()
 
Advertisement
 
                    Add Comment                
                
                        Please, Sign In to add comment