Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- turtle.refuel()
- turtle.select(2)
- local frontFinished = 0
- function buildFront(width, height)
- local i = 0
- local j = 0
- if frontFinished == 0 then
- turtle.forward()
- turtle.turnRight()
- turtle.forward()
- turtle.forward()
- turtle.turnRight()
- while i < height/2 do
- while j < width do
- turtle.place()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- j = j + 1
- print("placed block ", j+1)
- end
- turtle.up()
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- while j > 0 do
- turtle.place()
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- j = j - 1
- end
- i = i + 1
- end
- frontFinished = 1
- end
- end
- buildFront(10, 6)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement