Not a member of Pastebin yet?
                        Sign Up,
                        it unlocks many cool features!                    
                - q = 1
 - if q == 1 then
 - local i = 1
 - local slotNum = 1
 - --Function
 - function wall()
 - turtle.forward()
 - while turtle.getItemCount(slotNum) == 0 do
 - slotNum = slotNum + 1
 - turtle.select(slotNum)
 - end
 - turtle.placeDown()
 - end
 - --
 - --------------------------
 - write("How high should the walls be: ")
 - x = tonumber(io.read())
 - print()
 - write("How wide should the walls be: ")
 - z = tonumber(io.read()) - 1
 - print()
 - write("How long should the walls be: ")
 - t = tonumber(io.read()) - 1
 - turtle.up()
 - turtle.select(1)
 - turtle.forward()
 - --walls
 - for f=1,x do -- Repeats everything "x" times (Height)
 - for a=1,t do
 - wall()
 - end
 - turtle.turnRight()
 - for b=1,z do
 - wall()
 - end
 - turtle.turnRight()
 - for c=1,t do
 - wall()
 - end
 - turtle.turnRight()
 - for d=1,z do
 - wall()
 - end
 - turtle.turnRight()
 - turtle.up()
 - end
 - --Turtle going down when finished
 - turtle.back()
 - while not turtle.detectDown() do
 - turtle.down()
 - end
 - end
 - term.clear()
 - term.setCursorPos(1,1)
 - ------------------------------------------
 
Advertisement
 
                    Add Comment                
                
                        Please, Sign In to add comment