SHOW:
|
|
- or go back to the newest paste.
| 1 | - | --1-red |
| 1 | + | --0-do not replace |
| 2 | - | --2-black |
| 2 | + | --1-netherrack |
| 3 | - | --3-white |
| 3 | + | |
| 4 | - | --4-glass |
| 4 | + | |
| 5 | myArt = {
| |
| 6 | - | {4,4,4,4,4,4,4,4},
|
| 6 | + | {0, 0, 0, 1, 0, 0, 0},
|
| 7 | - | {4,4,4,4,2,2,4,4},
|
| 7 | + | {0, 0, 1, 1, 1, 0, 0},
|
| 8 | - | {4,4,4,2,1,1,2,4},
|
| 8 | + | {0, 1, 1, 1, 1, 1 ,0},
|
| 9 | - | {4,4,2,1,3,1,2,4},
|
| 9 | + | {1, 1, 1, 1, 1, 1, 1},
|
| 10 | - | {4,2,1,1,1,2,4,4},
|
| 10 | + | {0, 1, 1, 1, 1, 1, 0},
|
| 11 | - | {4,4,2,1,1,1,2,4},
|
| 11 | + | {0, 1, 1, 1, 1, 1, 0},
|
| 12 | - | {4,4,4,2,1,1,2,4},
|
| 12 | + | {0, 0, 1, 1, 1, 0, 0},
|
| 13 | - | {4,4,4,4,2,2,4,4},
|
| 13 | + | {0, 0, 0, 1, 0, 0, 0}
|
| 14 | - | {4,4,4,4,4,4,4,4}
|
| 14 | + | } |
| 15 | - | } |
| 15 | + | |
| 16 | function buildline(line) | |
| 17 | for i = 1,#line do | |
| 18 | slot=line[i] | |
| 19 | - | turtle.select(slot) |
| 19 | + | if slot ~= 0 then |
| 20 | - | turtle.placeDown() |
| 20 | + | turtle.select(slot) |
| 21 | turtle.digDown() | |
| 22 | turtle.placeDown() | |
| 23 | end | |
| 24 | turtle.forward() | |
| 25 | end | |
| 26 | for i=1,#line do | |
| 27 | turtle.back() | |
| 28 | end | |
| 29 | turtle.turnRight() | |
| 30 | turtle.forward() | |
| 31 | turtle.turnLeft() | |
| 32 | end | |
| 33 | ||
| 34 | for i = 1,10 do | |
| 35 | line = myArt[i] | |
| 36 | buildline(line) | |
| 37 | end |