Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("buildSupport.lua")
- os.loadAPI("userInput.lua")
- length = tonumber(userInput.getUserInput("Length: "))
- width = tonumber(userInput.getUserInput("Width: "))
- height = tonumber(userInput.getUserInput("Height: "))
- orientation = width % 2
- turtle.up()
- turtle.forward()
- for i = 1, height do
- buildSupport.buildFloor(width, length)
- if orientation == 1 then
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.up()
- else
- turtle.turnRight()
- turtle.up()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement