Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Door Scanner. Press Control-T to terminate")
- local sPASS = "BuildCeption"
- while (1 == 1) do
- local e, p1 = os.pullEvent()
- if (e == "mag_swipe") then
- if (string.len(p1) > string.len(sPASS)) then
- if (string.sub(p1, 1, string.len(sPASS)) == sPASS) then
- redstone.setOutput("bottom", true)
- os.sleep(5)
- redstone.setOutput("bottom", false)
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement