Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- redstone.setOutput("top", true)
- while true do
- print("Key")
- term.write(">")
- psw = tonumber(read("*"))
- if psw == 1 then
- redstone.setOutput("top", false)
- sleep(5)
- redstone.setOutput("top", true)
- end
- if redstone.getInput("bottom") then
- redstone.setOutput("top", false)
- sleep(5)
- redstone.setOutput("top", true)
- end
- term.clear()
- term.setCursorPos(1,1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement