SHOW:
|
|
- or go back to the newest paste.
| 1 | local tArgs = {...}
| |
| 2 | - | local x=1 |
| 2 | + | local x = 1 |
| 3 | - | local y=1 |
| 3 | + | local y = tonumber(tArgs[1]) |
| 4 | - | local z=1 |
| 4 | + | local z = 1 |
| 5 | local diam1 = tonumber(tArgs[1]) | |
| 6 | - | local diam = tonumber(tArgs[1])*2 |
| 6 | + | local diam2 = tonumber(tArgs[1]) |
| 7 | ||
| 8 | function Place() | |
| 9 | - | while x>0 do |
| 9 | + | while diam1>0 do |
| 10 | - | turtle.select(1) |
| 10 | + | while x>=0 do |
| 11 | - | turtle.placeDown() |
| 11 | + | turtle.placeDown() |
| 12 | turtle.forward() | |
| 13 | - | x=x-1 |
| 13 | + | x=x-1 |
| 14 | end | |
| 15 | - | x=z+1 |
| 15 | + | x=z+2 |
| 16 | - | turtle.turnLeft() |
| 16 | + | turtle.turnLeft() |
| 17 | - | while y>0 do |
| 17 | + | |
| 18 | - | turtle.select(1) |
| 18 | + | turtle.turnLeft() |
| 19 | - | turtle.placeDown() |
| 19 | + | while x>=0 do |
| 20 | turtle.placeDown() | |
| 21 | - | y=y-1 |
| 21 | + | turtle.forward() |
| 22 | x=x-1 | |
| 23 | - | y=z+1 |
| 23 | + | end |
| 24 | - | z=z+1 |
| 24 | + | x=z+4 |
| 25 | - | turtle.turnLeft() |
| 25 | + | z=z+4 |
| 26 | - | end |
| 26 | + | turtle.turnRight() |
| 27 | turtle.forward() | |
| 28 | - | for i = 1, diam do |
| 28 | + | turtle.turnRight() |
| 29 | diam1=diam1-2 | |
| 30 | end | |
| 31 | turtle.forward() | |
| 32 | z=diam2-2 | |
| 33 | while diam2>0 do | |
| 34 | turtle.placeDown() | |
| 35 | turtle.forward() | |
| 36 | y=y-1 | |
| 37 | end | |
| 38 | y=z-2 | |
| 39 | turtle.turnLeft() | |
| 40 | turtle.forward() | |
| 41 | turtle.turnLeft() | |
| 42 | turtle.forward() | |
| 43 | while y>0 do | |
| 44 | turtle.placeDown() | |
| 45 | turtle.forward() | |
| 46 | y=y-1 | |
| 47 | end | |
| 48 | y=z-2 | |
| 49 | z=z-4 | |
| 50 | turtle.turnRight() | |
| 51 | turtle.forward() | |
| 52 | turtle.turnRight() | |
| 53 | turtle.forward() | |
| 54 | diam2=diam2-2 | |
| 55 | end | |
| 56 | ||
| 57 | for i = 1,1 do | |
| 58 | Place() | |
| 59 | end |