SHOW:
|
|
- or go back to the newest paste.
| 1 | - | -- TerraTurtle v1 by Saereth |
| 1 | + | |
| 2 | - | -- Usage: Place the turtle 2 blocks above your terrasteel plate. Fill the turtles inventory with cobble except |
| 2 | + | local s |
| 3 | - | -- for the first three slots. In those slots put 1 manasteel, manapearl and manadiamond. They will act as place holders |
| 3 | + | local sInfo |
| 4 | - | -- Now simply pipe items into the turtle via pipes or ME interface |
| 4 | + | local tank |
| 5 | - | -- run a redstone line/conduit to the right of the turtle with comperator signal from the amalgamation plate |
| 5 | + | local amount |
| 6 | - | -- this will pause the turtle while terrasteel is actively being crafted. |
| 6 | + | tank = 0 |
| 7 | - | -- Enjoy! You can also encase this just dont block the 2 spaced directly under and in front of the turtle |
| 7 | + | s = peripheral.wrap("back")
|
| 8 | - | -- or the items might "drop" through blocks and off the plate. |
| 8 | + | sInfo = s.getTankInfo("WEST")
|
| 9 | if sInfo[1]["contents"]["name"] == "draconium" then | |
| 10 | tank = 1 | |
| 11 | - | if redstone.getAnalogInput("right") < 1 then
|
| 11 | + | else if sInfo[2] not nil and sInfo[2]["contents"]["name"] == "draconium" then |
| 12 | - | if turtle.getItemCount(1) > 1 and turtle.getItemCount(2) > 1 and turtle.getItemCount(3) > 1 then |
| 12 | + | tank = 2 |
| 13 | - | turtle.select(1) |
| 13 | + | else if sInfo[3] not nil and sInfo[3]["contents"]["name"] == "draconium" then |
| 14 | - | turtle.dropDown(1) |
| 14 | + | tank = 3 |
| 15 | - | sleep(.5) |
| 15 | + | end |
| 16 | - | turtle.select(2) |
| 16 | + | |
| 17 | - | turtle.dropDown(1) |
| 17 | + | if tank ~= 0 |
| 18 | - | sleep(.5) |
| 18 | + | amount = sInfo[tank]["contents"]["amount"] |
| 19 | - | turtle.select(3) |
| 19 | + | |
| 20 | - | turtle.dropDown(1) |
| 20 | + | if amount < 1152 then |
| 21 | - | sleep(.5) |
| 21 | + | redstone.setOutput("left",true)
|
| 22 | - | end |
| 22 | + | else |
| 23 | - | end |
| 23 | + | redstone.setOutput("left",false)
|
| 24 | end | |
| 25 | ||
| 26 | sleep(2) | |
| 27 | end |