Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("back");
- while true do
- term.clear()
- term.setCursorPos(1, 1)
- print("Acces restreind au roi et sa cour:")
- input = read("*")
- if input == "Alberto" then
- term.setTextColor(colors.green)
- rednet.send(1, true);
- term.write("Bienvenue !")
- term.setTextColor(colors.white)
- redstone.setOutput("left", true)
- sleep(5)
- redstone.setOutput("left", false)
- else
- term.setTextColor(colors.red)
- rednet.send(1, false);
- term.write("Mauvais mot de passe")
- term.setTextColor(colors.white)
- sleep(3)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement