SHOW:
|
|
- or go back to the newest paste.
1 | term.clear() | |
2 | print("Was Tiefe diese?:") | |
3 | tiefe = tonumber(io.read()) | |
4 | print("Was Breite diese?:") | |
5 | breite = tonumber(io.read()) | |
6 | print("Was Höhe diese?:") | |
7 | hoehe = tonumber(io.read()) | |
8 | if turtle.getFuelLevel() < 60 then | |
9 | turtle.select(16) | |
10 | turtle.refuel() | |
11 | end | |
12 | turtle.select(1) | |
13 | turtle.up() | |
14 | for h=1,hoehe,1 do | |
15 | for i=1,2,1 do | |
16 | for t=1,tiefe,1 do | |
17 | if turtle.getItemCount(turtle.getSelectedSlot()) == 0 then | |
18 | turtle.select(turtle.getSelectedSlot()+1) | |
19 | end | |
20 | turtle.placeDown() | |
21 | turtle.forward() | |
22 | end | |
23 | turtle.turnRight() | |
24 | for b=1,breite,1 do | |
25 | if turtle.getItemCount(turtle.getSelectedSlot()) == 0 then | |
26 | turtle.select(turtle.getSelectedSlot()+1) | |
27 | end | |
28 | turtle.placeDown() | |
29 | turtle.forward() | |
30 | end | |
31 | turtle.turnRight() | |
32 | end | |
33 | turtle.up() | |
34 | end | |
35 |