SHOW:
|
|
- or go back to the newest paste.
| 1 | rednet.open("right")
| |
| 2 | w = peripheral.wrap("left")
| |
| 3 | ||
| 4 | - | local function buildWither() |
| 4 | + | local function buildOneWither() |
| 5 | -- start poistion up/forward/left/right | |
| 6 | turtle.up() | |
| 7 | turtle.up() | |
| 8 | turtle.up() | |
| 9 | turtle.up() | |
| 10 | turtle.up() | |
| 11 | turtle.up() | |
| 12 | - | turtle.place() |
| 12 | + | |
| 13 | -- up 7 | |
| 14 | turtle.forward() | |
| 15 | turtle.forward() | |
| 16 | - | turtle.place() |
| 16 | + | |
| 17 | turtle.forward() | |
| 18 | turtle.forward() | |
| 19 | -- up 7 for 5 | |
| 20 | - | turtle.place() |
| 20 | + | |
| 21 | - | turtle.down() |
| 21 | + | |
| 22 | turtle.placeDown() | |
| 23 | - | turtle.place |
| 23 | + | -- up 8 for 5 |
| 24 | turtle.up() | |
| 25 | turtle.turnLeft() | |
| 26 | turtle.forward() | |
| 27 | - | turtle.place() |
| 27 | + | turtle.placeDown() |
| 28 | turtle.back() | |
| 29 | turtle.placeDown() | |
| 30 | turtle.back() | |
| 31 | - | turtle.place() |
| 31 | + | turtle.placeDown() |
| 32 | - | turtle.down() |
| 32 | + | -- up 9 for 5 right 1 |
| 33 | turtle.up() | |
| 34 | turtle.turnRight() | |
| 35 | - | turtle.place |
| 35 | + | |
| 36 | turtle.select(2) | |
| 37 | turtle.placeDown() | |
| 38 | turtle.back() | |
| 39 | turtle.placeDown() | |
| 40 | turtle.back() | |
| 41 | turtle.placeDown | |
| 42 | rednet.broadcast("oneWitherBuilt")
| |
| 43 | -- up 10 for 5 left 1 | |
| 44 | end | |
| 45 | - | buildWither() |
| 45 | + | |
| 46 | -- put stuff here to make him wait for the nether star | |
| 47 | ||
| 48 | ||
| 49 | while true do | |
| 50 | local event id, msg = rednet.receive() | |
| 51 | if msg == "blastProtOn" then | |
| 52 | buildOneWither() | |
| 53 | end | |
| 54 | break | |
| 55 | end | |
| 56 | ||
| 57 | -- and put what he does with the nether star here |