SHOW:
|
|
- or go back to the newest paste.
| 1 | args={...}
| |
| 2 | ||
| 3 | local args[1] = z | |
| 4 | local x = 0 | |
| 5 | local m = 0 | |
| 6 | - | function bloodbrick() |
| 6 | + | |
| 7 | function a() | |
| 8 | if turtle.getItemCount(1) > 0 then | |
| 9 | turtle.select(1) | |
| 10 | elseif turtle.getItemCount(2) > 0 then | |
| 11 | turtle.select(2) | |
| 12 | elseif turtle.getItemCount(3) > 0 then | |
| 13 | turtle.select(3) | |
| 14 | elseif turtle.getItemCount(4) > 0 then | |
| 15 | turtle.select(4) | |
| 16 | end | |
| 17 | turtle.placeDown() | |
| 18 | - | function abyssal() |
| 18 | + | |
| 19 | ||
| 20 | function b() | |
| 21 | if turtle.getItemCount(5) > 0 then | |
| 22 | turtle.select(5) | |
| 23 | elseif turtle.getItemCount(6) > 0 then | |
| 24 | turtle.select(6) | |
| 25 | elseif turtle.getItemCount(7) > 0 then | |
| 26 | turtle.select(7) | |
| 27 | elseif turtle.getItemcount(8) > 0 then | |
| 28 | turtle.select(8) | |
| 29 | end | |
| 30 | - | function fence() |
| 30 | + | turtle.placeDown() |
| 31 | end | |
| 32 | ||
| 33 | function c() | |
| 34 | if turtle.getItemCount(9) > 0 then | |
| 35 | turtle.select(9) | |
| 36 | elseif turtle.getItemCount(10) > 0 then | |
| 37 | turtle.select(10) | |
| 38 | elseif turtle.getItemcount(11) > 0 then | |
| 39 | turtle.select(11) | |
| 40 | elseif turtle.getItemCount(12) > 0 then | |
| 41 | turtle.select(12) | |
| 42 | - | function quarried() |
| 42 | + | |
| 43 | turtle.placeDown() | |
| 44 | end | |
| 45 | ||
| 46 | function d() | |
| 47 | if turtle.getItemCount(13) > 0 then | |
| 48 | turtle.select(13) | |
| 49 | elseif turtle.getItemCount(14) > 0 then | |
| 50 | turtle.select(14) | |
| 51 | elseif turtle.getItemCount(15) > 0 then | |
| 52 | turtle.select(15) | |
| 53 | elseif turtle.getItemCount(16) > 0 then | |
| 54 | turtle.select(16) | |
| 55 | end | |
| 56 | turtle.placeDown() | |
| 57 | end | |
| 58 | ||
| 59 | function up() | |
| 60 | - | for i = 1, z do |
| 60 | + | |
| 61 | - | up() |
| 61 | + | |
| 62 | - | abyssal() |
| 62 | + | |
| 63 | - | turtle.placeDown() |
| 63 | + | |
| 64 | - | up() |
| 64 | + | |
| 65 | - | quarried() |
| 65 | + | while z < 170 do |
| 66 | - | turtle.placeDown() |
| 66 | + | up() |
| 67 | - | up() |
| 67 | + | a() |
| 68 | - | fence() |
| 68 | + | |
| 69 | - | turtle.placeDown() |
| 69 | + | up() |
| 70 | - | up() |
| 70 | + | b() |
| 71 | - | turtle.placeDown() |
| 71 | + | |
| 72 | - | up() |
| 72 | + | up() |
| 73 | - | turtle.placeDown() |
| 73 | + | c() |
| 74 | - | up() |
| 74 | + | |
| 75 | - | up() |
| 75 | + | for y = 1, 4 do |
| 76 | - | up() |
| 76 | + | up() |
| 77 | d() | |
| 78 | end | |
| 79 | ||
| 80 | ||
| 81 | while x % 2 ~= 0 do | |
| 82 | up() | |
| 83 | end | |
| 84 | m = m + 1 | |
| 85 | shell.run("clear")
| |
| 86 | print( "I am at layer" .. m ) | |
| 87 | end |