Advertisement
DiamondQ2

SPAWN_Door

Jan 8th, 2013
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. print("Door Scanner. Press Control-T to terminate")
  2. local sPASS = "BuildCeption"
  3. while (1 == 1) do
  4. local e, p1 = os.pullEvent()
  5. if (e == "mag_swipe") then
  6. if (string.len(p1) > string.len(sPASS)) then
  7. if (string.sub(p1, 1, string.len(sPASS)) == sPASS) then
  8. redstone.setOutput("bottom", true)
  9. os.sleep(5)
  10. redstone.setOutput("bottom", false)
  11. end
  12. end
  13. end
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement