Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- reader = peripheral.wrap("back")
- reader.setInsertCardLight = true
- redstone.setOutput("right", true)
- redstone.setOutput("left", false)
- p1,p2,p3 = os.pullEvent("mag_swipe")
- print("Card data: "..p2)
- if p2 == "ACCESSCARD" then
- redstone.setOutput("right", false)
- redstone.setOutput("left", true)
- redstone.setOutput("bottom", true)
- sleep(4)
- redstone.setOutput("bottom",false)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement