SHOW:
|
|
- or go back to the newest paste.
| 1 | -- 1 - obsidian | |
| 2 | -- 2 - quartz | |
| 3 | ||
| 4 | - | shrek={
|
| 4 | + | shrek1={
|
| 5 | - | {1,1,1,1,1,1},
|
| 5 | + | {1,1,1,1,1,1},
|
| 6 | - | {2,0,0,0,0,1},
|
| 6 | + | {2,0,0,0,0,1},
|
| 7 | - | {2,0,0,0,0,0},
|
| 7 | + | {2,0,0,0,0,0},
|
| 8 | - | {2,0,0,0,0,1},
|
| 8 | + | {2,0,0,0,0,1},
|
| 9 | - | {1,1,1,1,1,1,},
|
| 9 | + | {1,1,1,1,1,1,},
|
| 10 | - | } |
| 10 | + | } |
| 11 | ||
| 12 | shrek2={
| |
| 13 | {2,3,3,3,3,1},
| |
| 14 | {1,0,0,0,0,3},
| |
| 15 | {1,0,0,0,0,0},
| |
| 16 | {1,0,0,0,0,3},
| |
| 17 | {2,3,3,3,3,1},
| |
| 18 | } | |
| 19 | function buildLine (colors) | |
| 20 | for i = 1,#colors do | |
| 21 | slot = colors[i] | |
| 22 | if slot~=0 then | |
| 23 | turtle.select(slot) | |
| 24 | turtle.placeDown() | |
| 25 | end | |
| 26 | turtle.forward() | |
| 27 | end | |
| 28 | turtle.turnRight() | |
| 29 | turtle.forward() | |
| 30 | turtle.turnLeft() | |
| 31 | for e = 1,#colors do | |
| 32 | turtle.back() | |
| 33 | end | |
| 34 | end | |
| 35 | ||
| 36 | function buildLayer(image) | |
| 37 | for i=1,#image do | |
| 38 | line=image[i] | |
| 39 | buildLine(line) | |
| 40 | end | |
| 41 | turtle.turnLeft() | |
| 42 | - | buildLayer(shrek) |
| 42 | + | |
| 43 | turtle.forward() | |
| 44 | end | |
| 45 | turtle.turnRight() | |
| 46 | turtle.up() | |
| 47 | end | |
| 48 | ||
| 49 | ||
| 50 | buildLayer(shrek1) | |
| 51 | buildLayer(shrek2) |