SHOW:
|
|
- or go back to the newest paste.
| 1 | while true do | |
| 2 | event = os.pullEvent() | |
| 3 | if(event == "redstone") then | |
| 4 | on = redstone.getInput("back")
| |
| 5 | - | else |
| 5 | + | if(on==true) then |
| 6 | - | on = false |
| 6 | + | e = 64 |
| 7 | while (e~=0) do | |
| 8 | - | |
| 8 | + | turtle.select(16) |
| 9 | - | if(on==true) then |
| 9 | + | turtle.dropDown() |
| 10 | - | turtle.select(16) |
| 10 | + | e = turtle.getItemCount(16) |
| 11 | - | turtle.dropDown() |
| 11 | + | end |
| 12 | - | turtle.dig() |
| 12 | + | turtle.dig() |
| 13 | - | else |
| 13 | + | else |
| 14 | - | placed = turtle.detect() |
| 14 | + | |
| 15 | - | if (placed==false) then |
| 15 | + | |
| 16 | end | |
| 17 | end | |
| 18 | end |