SHOW:
|
|
- or go back to the newest paste.
| 1 | while true do | |
| 2 | - | rs.getInput("right")
|
| 2 | + | event, p1 = os.getPullEvent("redstone")
|
| 3 | - | rs.getInput("bottom")
|
| 3 | + | if p1 = "right" then |
| 4 | - | sleep(0.1) |
| 4 | + | if !rs.getInput("bottom") then
|
| 5 | - | if rs.getInput("right")== true then
|
| 5 | + | rs.setOutput("bottom", true)
|
| 6 | - | if rs.getInput("bottom")==false then
|
| 6 | + | else |
| 7 | - | rs.setOutput("bottom", true)
|
| 7 | + | rs.setOutput("bottom", false)
|
| 8 | - | else |
| 8 | + | end |
| 9 | - | rs.setOutput("bottom", false)
|
| 9 | + | |
| 10 | end |