I just recently downloaded computer craft mod and it is amazing! Ive been coding for about 6 years so when i saw you can code games IN minecraft i had a nerdgasem to the max xD. But i was wondering if some people could give me links to computer craft programs becuase you can add you own in and i saw some videos with lock programs and such. SO that will help alot!!
That's really not it, you need something like this:
print("")
write"Hello user. Please input password: "
write("")
password = read("*")
if password == "password" then
print("Password correct, please enter the door")
redstone.setOutput("right",true )
sleep(4)
redstone.setOutput("right",false )
else
print("Incorrect password. Please try again.")
sleep(1)
end
os.reboot()
You can change "right" to "left" and "password" to the password you want. Hope this helped for a simple lock, if you want one with a username PM me, it's fairly simple as well.
Thanks diamonds to you
You can change "right" to "left" and "password" to the password you want. Hope this helped for a simple lock, if you want one with a username PM me, it's fairly simple as well.
Please support my cute little dragons! Please click on them so they can mature!