SHOW:
|
|
- or go back to the newest paste.
1 | - | local args = {...} |
1 | + | |
2 | turtle.refuel(1) | |
3 | - | vajatszam = args[1] + 0 |
3 | + | |
4 | - | magassag = args[2] + 0 |
4 | + | |
5 | - | hossz = args[3] + 0 |
5 | + | function lepes() |
6 | for i=0,2 do | |
7 | turtle.dig() | |
8 | turtle.up() | |
9 | end | |
10 | turtle.dig() | |
11 | turtle.forward() | |
12 | i=0 | |
13 | - | function lepes(m) |
13 | + | for i=0,2 do |
14 | - | for i=0,m-1 do |
14 | + | |
15 | turtle.down() | |
16 | end | |
17 | turtle.dig() | |
18 | turtle.forward() | |
19 | - | turlte.forward() |
19 | + | |
20 | ||
21 | - | for i=0,m-1 do |
21 | + | |
22 | i=0 | |
23 | j=0 | |
24 | ||
25 | for i=0,31 do | |
26 | - | turlte.forward() |
26 | + | lepes() |
27 | end | |
28 | ||
29 | turtle.turnRight() | |
30 | lepes() | |
31 | ||
32 | - | for i=0,h/2 do |
32 | + | for j=0,2 do |
33 | - | lepes(magassag-1) |
33 | + | |
34 | turtle.up() | |
35 | end | |
36 | - | lepes(1) |
36 | + | |
37 | - | for j=0,magassag-2 do |
37 | + | |
38 | turtle.forward() | |
39 | turtle.turnRight() | |
40 | turtle.down() | |
41 | turtle.down() | |
42 | turtle.down() | |
43 | ||
44 | - | turtle.down(magassag-1) |
44 | + | for i=0,31 do |
45 | - | for i=0,h/2 do |
45 | + | lepes() |
46 | - | lepes(magassag-1) |
46 | + | |
47 | turtle.turnLeft() | |
48 | turtle.forward() | |
49 | - | turtle.forward(3) |
49 | + | |
50 | turtle.forward() | |
51 | turtle.turnLeft() | |
52 | end | |
53 | ||
54 | i=0 | |
55 | - | for i=0,vajatszam-1 do |
55 | + | |
56 | vajat() | |
57 | ||
58 | print("Kész") |