SHOW:
|
|
- or go back to the newest paste.
| 1 | --red1 | |
| 2 | --oranje2 | |
| 3 | --ylow3 | |
| 4 | --green4 | |
| 5 | --blou5 | |
| 6 | ||
| 7 | - | colors={1,4,2,5,5,4,2,1}
|
| 7 | + | colors1={4,4,4,4,1,1,1,4,4}
|
| 8 | colors2={4,4,4,1,2,2,2,1,4}
| |
| 9 | - | for i = 1,8 do |
| 9 | + | |
| 10 | - | slot = colors[i] |
| 10 | + | function buildLine (colors) |
| 11 | - | turtle.select(slot) |
| 11 | + | for i = 1,#colors do |
| 12 | - | turtle.placeDown() |
| 12 | + | slot = colors[i] |
| 13 | - | turtle.forward() |
| 13 | + | turtle.select(slot) |
| 14 | turtle.placeDown() | |
| 15 | - | turtle.turnRight() |
| 15 | + | turtle.forward() |
| 16 | - | turtle.forward() |
| 16 | + | end |
| 17 | - | turtle.turnLeft() |
| 17 | + | turtle.turnRight() |
| 18 | - | for e = 1,8 do |
| 18 | + | turtle.forward() |
| 19 | - | turtle.back() |
| 19 | + | turtle.turnLeft() |
| 20 | - | end |
| 20 | + | for e = 1,#colors do |
| 21 | turtle.back() | |
| 22 | end | |
| 23 | end | |
| 24 | buildLine (colors1) | |
| 25 | buildLine (colors2) | |
| 26 | ||
| 27 | ||
| 28 | ||
| 29 |