SHOW:
|
|
- or go back to the newest paste.
| 1 | print("durchmesser?")
| |
| 2 | a = read() | |
| 3 | print("breite?")
| |
| 4 | b = read() | |
| 5 | print("hoehe?")
| |
| 6 | c = read() | |
| 7 | ||
| 8 | function hoch() | |
| 9 | for i=1,c do | |
| 10 | turtle.digUp() | |
| 11 | turtle.up() | |
| 12 | end | |
| 13 | end | |
| 14 | ||
| 15 | function runter() | |
| 16 | for i=1,c do | |
| 17 | turtle.digDown() | |
| 18 | turtle.down() | |
| 19 | end | |
| 20 | end | |
| 21 | ||
| 22 | function hin() | |
| 23 | for i=1,a do | |
| 24 | ||
| 25 | turtle.dig() | |
| 26 | turtle.digDown() | |
| 27 | turtle.down() | |
| 28 | turtle.dig() | |
| 29 | turtle.select(1) | |
| 30 | turtle.place() | |
| 31 | turtle.up() | |
| 32 | turtle.select(2) | |
| 33 | turtle.place() | |
| 34 | sleep(15) | |
| 35 | turtle.dig() | |
| 36 | turtle.down() | |
| 37 | turtle.select(1) | |
| 38 | turtle.dig() | |
| 39 | turtle.up() | |
| 40 | turtle.forward() | |
| 41 | ||
| 42 | end | |
| 43 | turtle.turnRight() | |
| 44 | turtle.dig() | |
| 45 | turtle.digDown() | |
| 46 | turtle.down() | |
| 47 | turtle.dig() | |
| 48 | turtle.select(1) | |
| 49 | turtle.place() | |
| 50 | turtle.up() | |
| 51 | turtle.select(2) | |
| 52 | turtle.place() | |
| 53 | sleep(15) | |
| 54 | turtle.dig() | |
| 55 | turtle.down() | |
| 56 | turtle.select(1) | |
| 57 | turtle.dig() | |
| 58 | turtle.up() | |
| 59 | turtle.forward() | |
| 60 | turtle.turnRight() | |
| 61 | end | |
| 62 | ||
| 63 | function zurueck() | |
| 64 | for i=1,a do | |
| 65 | ||
| 66 | turtle.dig() | |
| 67 | turtle.digDown() | |
| 68 | turtle.down() | |
| 69 | turtle.dig() | |
| 70 | turtle.select(1) | |
| 71 | turtle.place() | |
| 72 | turtle.up() | |
| 73 | turtle.select(2) | |
| 74 | turtle.place() | |
| 75 | sleep(15) | |
| 76 | turtle.dig() | |
| 77 | turtle.down() | |
| 78 | turtle.select(1) | |
| 79 | turtle.dig() | |
| 80 | turtle.up() | |
| 81 | turtle.forward() | |
| 82 | ||
| 83 | end | |
| 84 | turtle.turnLeft() | |
| 85 | turtle.dig() | |
| 86 | turtle.digDown() | |
| 87 | turtle.down() | |
| 88 | turtle.dig() | |
| 89 | turtle.select(1) | |
| 90 | turtle.place() | |
| 91 | turtle.up() | |
| 92 | turtle.select(2) | |
| 93 | turtle.place() | |
| 94 | sleep(15) | |
| 95 | turtle.dig() | |
| 96 | turtle.down() | |
| 97 | turtle.select(1) | |
| 98 | turtle.dig() | |
| 99 | turtle.up() | |
| 100 | turtle.forward() | |
| 101 | turtle.turnLeft() | |
| 102 | end | |
| 103 | ||
| 104 | function gesammt() | |
| 105 | hoch() | |
| 106 | for i=1,b do | |
| 107 | hin() | |
| 108 | zurueck() | |
| 109 | end | |
| 110 | runter() | |
| 111 | end | |
| 112 | ||
| 113 | gesammt() |