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()
- print("How tall (On the inside) do you want it? ")
- sqrTall = read()
- function plcColumn()
- for i = 1, sqrSize 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/2 do
- aa()
- ab()
- end
- else
- for i = 1, sqrSize/2 do
- aa()
- ab()
- end
- aa()
- end
- end
- function bldWall()
- for i = 1,4 do
- plcColumn()
- turtle.turnLeft()
- turtle.up()
- end
- end
- slotNum = 1
- itemCount = turtle.getItemCount(slotNum)
- print(slotNum)
- print(itemCount)
- while true do
- for i = 1, 15 do
- if itemCount == 0 then
- slotNum = slotNum + 1
- turtle.select(slotNum)
- end
- end
- end
- fltSqr()
- matSlot()
- turtle.up()
- for i = 1, sqrTall do
- bldWall()
- matSlot()
- end
- fltSqr()
- matSlot()
Advertisement
Add Comment
Please, Sign In to add comment