SHOW:
|
|
- or go back to the newest paste.
| 1 | while true do | |
| 2 | while not redstone.getInput("top") do
| |
| 3 | os.queueEvent("randomEvent")
| |
| 4 | os.pullEvent() | |
| 5 | end | |
| 6 | print("yes")
| |
| 7 | redstone.setOutput("left", true)
| |
| 8 | os.sleep(1) | |
| 9 | redstone.setOutput("left", false)
| |
| 10 | if redstone.getInput("left") then
| |
| 11 | redstone.setOutput("right", true)
| |
| 12 | os.sleep(10) | |
| 13 | redstone.setOutput("right", false)
| |
| 14 | else | |
| 15 | os.sleep(10) | |
| 16 | end | |
| 17 | ||
| 18 | ||
| 19 | ||
| 20 | ||
| 21 | ||
| 22 | ||
| 23 | end |