Guest User

startup

a guest
Feb 10th, 2014
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.30 KB | None | 0 0
  1. while true do
  2. reader = peripheral.wrap("back")
  3. reader.setInsertCardLight = true
  4. redstone.setOutput("right", true)
  5. p1,p2,p3 = os.pullEvent("mag_swipe")
  6. print("Card data: "..p2)
  7. if p2 == "#Elevator Access#" then
  8. redstone.setOutput("right", false)
  9. sleep(3)
  10. redstone.setOutput("right",true)
  11. end
  12. end
Advertisement
Add Comment
Please, Sign In to add comment