Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- turtle.select(1)
- turtle.refuel()
- turtle.select(2)
- function buildTable2D(building)
- local dir = false
- for i=#building, 1, -1 do
- dir = not dir
- turtle.up()
- local line = building[i]
- if dir then
- for i2=1, #line do
- if line[i2] == 1 then
- turtle.placeDown()
- end
- turtle.forward()
- end
- else
- for i2=#line, 1, -1 do
- if line[i2] == 1 then
- turtle.placeDown()
- end
- turtle.forward()
- end
- end
- turtle.forward()
- turtle.turnRight()
- turtle.turnRight()
- end
- end
- buildTable2D(
- {
- {1,0,0,1,1,1,1},
- {1,0,0,1,0,0,0},
- {1,0,0,1,0,0,0},
- {1,1,1,1,1,1,1},
- {0,0,0,1,0,0,1},
- {0,0,0,1,0,0,1},
- {1,1,1,1,0,0,1},
- }
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement