Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)
- print("+-------------------------------------+")
- print("| Please place fuel in the lower- |")
- print("| right slot. |")
- print("| Place building materials in the |")
- print("| remaining slots. |")
- print("+-------------------------------------+")
- sleep(1)
- print("How big of a square do you want? ")
- sqrSize = read()
- function plcColumn()
- for i = 1, sqrSize[1] do
- turtle.forward()
- turtle.placeDown()
- end
- end
- --Even Column Placement
- function aa()
- turtle.placeDown()
- plcColumn()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- end
- --Odd Column Placement
- function ab()
- turtle.placeDown()
- plcColumn()
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- end
- if sqrSize %2 == 0 then
- isEven = true
- else
- isEven = false
- end
- --print(isEven)
- --Test for isEven ^
- function fltSqr()
- if isEven == true then
- for i = 1, sqrSize[1]/2 do
- aa()
- ab()
- end
- else
- for i = 1, sqrSize[1]/2 do
- aa()
- ab()
- end
- aa()
- end
- end
- function bldWall()
- for i = 1,4 do
- plcColumn()
- turtle.turnLeft()
Advertisement
Add Comment
Please, Sign In to add comment