SHOW:
|
|
- or go back to the newest paste.
| 1 | --0-do not replace | |
| 2 | --1-netherrack | |
| 3 | ||
| 4 | ||
| 5 | myArt = {
| |
| 6 | {0, 0, 0, 1, 0, 0, 0},
| |
| 7 | {0, 0, 1, 1, 1, 1, 0},
| |
| 8 | - | {0, 1, 1, 1, 1, 1 ,0},
|
| 8 | + | |
| 9 | {1, 1, 1, 1, 1, 1, 1},
| |
| 10 | {0, 1, 1, 1, 1, 1, 0},
| |
| 11 | {0, 1, 1, 1, 1, 1, 0},
| |
| 12 | {0, 0, 1, 1, 1, 0, 0},
| |
| 13 | {0, 0, 0, 1, 0, 0, 0}
| |
| 14 | } | |
| 15 | ||
| 16 | function buildline(line) | |
| 17 | for i = 1,#line do | |
| 18 | slot=line[i] | |
| 19 | - | if slot ~= 0 then |
| 19 | + | if slot ~= 0 then |
| 20 | - | turtle.select(slot) |
| 20 | + | turtle.select(slot) |
| 21 | - | turtle.digDown() |
| 21 | + | turtle.digDown() |
| 22 | - | turtle.placeDown() |
| 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 |