SHOW:
|
|
- or go back to the newest paste.
| 1 | local t = turtle | |
| 2 | local error = 0 | |
| 3 | ||
| 4 | function openDoor() | |
| 5 | t.select(2) | |
| 6 | if(t.getItemCount(2) > 0) then | |
| 7 | print("Error: ItemCount slot 2 > 0")
| |
| 8 | error = 5 | |
| 9 | return | |
| 10 | end | |
| 11 | rs.setOutput("top",true)
| |
| 12 | sleep(0.05) | |
| 13 | rs.setOutput("top",false)
| |
| 14 | t.transferTo(3) | |
| 15 | end | |
| 16 | ||
| 17 | function closeDoor() | |
| 18 | ||
| 19 | end |