I don't know how to code a door lock. :(/>. I am new to Computercraft.
Can someone give me codes please.
It must have
The redstone signal on the left hand side (that's what side the door is).
Must last for 5 seconds.
THANK YOU!
You didn't have to make a completely new topic…
Try looking for help/code on the CC Wiki. The link is up the top of the page.
You need to change your argument separators from fullstops to commas (`"left". true` => `"left", true`) and "fales" to "false".
Please don't create topics with all-capitals titles - in future, please search the Wiki or the Tutorials section.
You need to change your argument separators from fullstops to commas (`"left". true` => `"left", true`) and "fales" to "false".
Please don't create topics with all-capitals titles - in future, please search the Wiki or the Tutorials section.
tryYou need to change your argument separators from fullstops to commas (`"left". true` => `"left", true`) and "fales" to "false".
Please don't create topics with all-capitals titles - in future, please search the Wiki or the Tutorials section.
It didn't work. Here is my new code.
[sql]while true do
term.clear()
term.setCursorPos(1. 1)
print("Please Enter The Password")
input = read("*")
if input == "My Password" then
print("Yay!")
sleep(2)
print("The Password Was Correct! :D/>/>/>")
sleep(2)
print("Opening Door For You! Wait 5 seconds")
sleep(5)
redstone.setOutput("left", true)
sleep(5)
redstone.setOutput("left", false)
else
print("Sorry")
sleep("The Password Was Rong. D:")
sleep(2)
print("Can Not Open Door For You.")
sleep(5)
end
end[/sql]
term.setCursorPos(1,1)
and giving the error it says here will helptryYou need to change your argument separators from fullstops to commas (`"left". true` => `"left", true`) and "fales" to "false".
Please don't create topics with all-capitals titles - in future, please search the Wiki or the Tutorials section.
It didn't work. Here is my new code.
[sql]while true do
term.clear()
term.setCursorPos(1. 1)
print("Please Enter The Password")
input = read("*")
if input == "My Password" then
print("Yay!")
sleep(2)
print("The Password Was Correct! :D/>/>/>/>/>")
sleep(2)
print("Opening Door For You! Wait 5 seconds")
sleep(5)
redstone.setOutput("left", true)
sleep(5)
redstone.setOutput("left", false)
else
print("Sorry")
sleep("The Password Was Rong. D:")
sleep(2)
print("Can Not Open Door For You.")
sleep(5)
end
end[/sql]and giving the error it says here will helpterm.setCursorPos(1,1)
no problem!tryYou need to change your argument separators from fullstops to commas (`"left". true` => `"left", true`) and "fales" to "false".
Please don't create topics with all-capitals titles - in future, please search the Wiki or the Tutorials section.
It didn't work. Here is my new code.
[sql]while true do
term.clear()
term.setCursorPos(1. 1)
print("Please Enter The Password")
input = read("*")
if input == "My Password" then
print("Yay!")
sleep(2)
print("The Password Was Correct! :D/>/>/>/>/>/>")
sleep(2)
print("Opening Door For You! Wait 5 seconds")
sleep(5)
redstone.setOutput("left", true)
sleep(5)
redstone.setOutput("left", false)
else
print("Sorry")
sleep("The Password Was Rong. D:")
sleep(2)
print("Can Not Open Door For You.")
sleep(5)
end
end[/sql]and giving the error it says here will helpterm.setCursorPos(1,1)
THANK YOU! IT WORKS NOW!