SHOW:
|
|
- or go back to the newest paste.
| 1 | shell.run("clear")
| |
| 2 | - | print("How many blocks in front?")
|
| 2 | + | print("How many blocks in front BITCH?")
|
| 3 | - | front = read() |
| 3 | + | front = (20) |
| 4 | ||
| 5 | shell.run("clear")
| |
| 6 | - | print("How many blocks to the right?")
|
| 6 | + | print("How many blocks to the right BITCH?")
|
| 7 | - | right = read() |
| 7 | + | right = (19) |
| 8 | ||
| 9 | shell.run("clear")
| |
| 10 | - | print("ok, will do master!")
|
| 10 | + | print("Time to get Schwifty in here!")
|
| 11 | ||
| 12 | front = front - 1 | |
| 13 | right = right - 1 | |
| 14 | ||
| 15 | turtle.forward() | |
| 16 | turtle.digDown() | |
| 17 | turtle.placeDown() | |
| 18 | ||
| 19 | function line() | |
| 20 | for i=1,front do | |
| 21 | turtle.forward() | |
| 22 | turtle.digDown() | |
| 23 | turtle.placeDown() | |
| 24 | end | |
| 25 | end | |
| 26 | ||
| 27 | LR = 0 | |
| 28 | ||
| 29 | function square() | |
| 30 | for i=1,right do | |
| 31 | ||
| 32 | LR = LR + 1 | |
| 33 | ||
| 34 | if LR == 1 then | |
| 35 | line() | |
| 36 | turtle.turnRight() | |
| 37 | turtle.forward() | |
| 38 | turtle.turnRight() | |
| 39 | turtle.digDown() | |
| 40 | turtle.placeDown() | |
| 41 | elseif LR == 2 then | |
| 42 | line() | |
| 43 | turtle.turnLeft() | |
| 44 | turtle.forward() | |
| 45 | turtle.turnLeft() | |
| 46 | turtle.digDown() | |
| 47 | turtle.placeDown() | |
| 48 | LR = 0 | |
| 49 | end | |
| 50 | end | |
| 51 | end | |
| 52 | ||
| 53 | square() | |
| 54 | line() | |
| 55 | ||
| 56 | turtle.turnRight() | |
| 57 | ||
| 58 | if LR == 0 then | |
| 59 | turtle.turnRight() | |
| 60 | for i=1,front do | |
| 61 | turtle.forward() | |
| 62 | end | |
| 63 | turtle.turnRight() | |
| 64 | end | |
| 65 | ||
| 66 | for i=1,right do | |
| 67 | turtle.forward() | |
| 68 | end | |
| 69 | ||
| 70 | turtle.turnLeft() | |
| 71 | turtle.forward() | |
| 72 | turtle.turnRight() | |
| 73 | turtle.turnRight() | |
| 74 | ||
| 75 | m = 1 | |
| 76 | ||
| 77 | for i=1,15 do | |
| 78 | m = m + 1 | |
| 79 | turtle.select(m) | |
| 80 | turtle.dropDown() | |
| 81 | end | |
| 82 | ||
| 83 | turtle.select(1) | |
| 84 | shell.run("clear")
| |
| 85 | - | print("I'm done master!") |
| 85 | + | print("I'm done BITCH! Time TO GET HIHG BITCH!") |