SHOW:
|
|
- or go back to the newest paste.
| 1 | - | -- 0 - air |
| 1 | + | -- 1 - white |
| 2 | - | -- 1 - black |
| 2 | + | -- 2 - blue |
| 3 | - | -- 2 - red |
| 3 | + | |
| 4 | art = {
| |
| 5 | {1,2,2,2,1},
| |
| 6 | - | art1 = {
|
| 6 | + | {2,0,0,0,2},
|
| 7 | - | {1, 2, 2, 1},
|
| 7 | + | {2,0,0,0,2},
|
| 8 | - | {2, 0, 0, 2},
|
| 8 | + | {2,0,0,0,2},
|
| 9 | - | {2, 0, 0, 2},
|
| 9 | + | {1,2,2,2,1},
|
| 10 | - | {1, 2, 2, 1},
|
| 10 | + | |
| 11 | ||
| 12 | art2 = {
| |
| 13 | {1,0,0,0,1},
| |
| 14 | - | art2 = {
|
| 14 | + | {0,0,0,0,0},
|
| 15 | - | {2, 0, 0, 2},
|
| 15 | + | {0,0,0,0,0},
|
| 16 | - | {0, 0, 0, 0,},
|
| 16 | + | {0,0,0,0,0},
|
| 17 | - | {0, 0, 0, 0,},
|
| 17 | + | {1,0,0,0,1},
|
| 18 | - | {2, 0, 0, 2},
|
| 18 | + | |
| 19 | ||
| 20 | function buildLine(line) | |
| 21 | for element = 1,#line do | |
| 22 | slot = line[element] | |
| 23 | if slot ~= 0 then | |
| 24 | turtle.select(slot) | |
| 25 | turtle.placeDown() | |
| 26 | - | function buildline(line) |
| 26 | + | end |
| 27 | - | for element = 1,#line do |
| 27 | + | turtle.forward() |
| 28 | - | slot = line[element] |
| 28 | + | end |
| 29 | - | if slot ~= 0 then |
| 29 | + | |
| 30 | - | turtle.select(slot) |
| 30 | + | for w = 1,#line do |
| 31 | - | turtle.placeDown() |
| 31 | + | turtle.back() |
| 32 | - | end |
| 32 | + | |
| 33 | - | turtle.forward() |
| 33 | + | end |
| 34 | ||
| 35 | - | for w = 1,#line do |
| 35 | + | function buildImage(image) |
| 36 | - | turtle.back() |
| 36 | + | |
| 37 | buildLine(image[stroka]) | |
| 38 | - | end |
| 38 | + | turtle.turnRight() |
| 39 | turtle.forward() | |
| 40 | turtle.turnLeft() | |
| 41 | end | |
| 42 | - | function buildImage(image) |
| 42 | + | turtle.turnLeft() |
| 43 | for storka = 1,#image do | |
| 44 | - | buildline(image[stroka]) |
| 44 | + | turtle.forward() |
| 45 | - | turtle.turnRight() |
| 45 | + | end |
| 46 | - | turtle.forward() |
| 46 | + | turtle.turnRight() |
| 47 | - | turtle.turnLeft() |
| 47 | + | end |
| 48 | ||
| 49 | - | turtle.turnLeft() |
| 49 | + | buildImage(art) |
| 50 | - | for stroka = 1,#image do |
| 50 | + |