SHOW:
|
|
- or go back to the newest paste.
1 | while true do | |
2 | reader = peripheral.wrap("back") | |
3 | reader.setInsertCardLight = true | |
4 | redstone.setOutput("right", true) | |
5 | redstone.setOutput("left", false) | |
6 | p1,p2,p3 = os.pullEvent("mag_swipe") | |
7 | - | if p2 == "#Elevator Access#" then |
7 | + | |
8 | if p2 == "ACCESSCARD" then | |
9 | - | sleep(3) |
9 | + | |
10 | - | redstone.setOutput("right",true) |
10 | + | redstone.setOutput("left", true) |
11 | redstone.setOutput("bottom", true) | |
12 | sleep(4) | |
13 | redstone.setOutput("bottom",false) | |
14 | end | |
15 | end |