Password doors (Customizable!) (ComputerCraft) *

View/post tutorials for use on our Tekkit server

Password doors (Customizable!) (ComputerCraft) *

Postby Disy » 15 Jul 2012, 23:26

Hi, I made this tutorial today for those of you who want to protect your things
without other people getting into them, without the support of a plugin! I will
teach you how to make a medium level password door with computercraft.
Abilities:
*Pretty hack proof password door.
*Custom passwords.
*Custom messages.
*Custom timing.
*Fully automatic.
*Passwords are 100% case sensitive.
*Self reset.

INSTRUCTIONS:
1. create a computer. Here is the recipe:
Image
2. Place the computer next to your door, or where you want the output (Redstonesignal) to go.
3. look at the computer, is it on the left, right, top or bottom, from where the door is, or where you want the current
going? This will be need in the coding!
4. right click the computer, and type 'edit startup' without the '.
5. now copy this code into your computer!
oldPull = os.pullEvent
os.pullEvent = os.pullEventRaw
while true do
term.clear()
term.setCursorPos(1,1)
print (" DisyTech: Security Doors")
print ("
Any message goes here")
write ("Password: ")

if read ("*") == "Password" then
print ("Loading")
sleep(
1)
print ("Correct!")
redstone.setOutput("
right", true)
sleep(5)
redstone.setOutput("right", false)
term.clear()
term.setCursorPos(1,1)
break
else
print ("Loading")
sleep(1)
print ("Incorrect!")
sleep(1)
end
end
os.reboot()
os.pullEvent = oldPull

6. hold Control+S, then press enter.
7. Now press and hold Control+T
8. Then type reboot, and the computer will
now work!
KEY:
Blue: Do not change! Green: Feel free to change!

Tips for if you want to customize it!
The 'sleep(1)' things are timers, the number on the end is the time it waits in seconds. you can change that
to any number of seconds.
The redstone.setOutput("right", true) can have the 'right' change to the direction you found in step 2.
both the true and false need to be the same with the direction!
the 'if read("*")' is to decide what the symbol your text written is. This is to cover your writing like this, On equals **. You can
change that to any symbol you want, or if you don't want the symbol at all, and want the text to show up as text, change it to
io.read() instead. the word 'Password' is just where you can type the password to be any password you want. It will be the password
you must enter to gain access to the door!

COMING SOON!
*Administrator password, that not only opens the door, but has access to the main console menu (where I typed edit startup).
the reason normal password, and normal players can't get into that section is to stop them from hacking the program.

I hope you enjoyed my tutorial, and if you have any questions or errors that show up
please give me a comment below so I may help you as soon as possible! :)
Last edited by Disy on 03 Apr 2014, 03:21, edited 9 times in total.
Reason: Removed Sticky - Linked to in a general post.
Contact Information - (Email: disycraft@gmail.com) (Skype: disymc)
Left CC (for the most part) - April 23rd 2014 | Moderator of 3 years on Build + Modded
Image
User avatar
Disy
GOD LIKE
  
Build:Ultra
Survival:Ultra
FTB:Ultra
 
Build portfolio
 
Posts:3172
Joined:01 Aug 2011, 02:32
Location:Seattle, USA

Re: Disy's Tekkit Password Doors! -Tutorial-

Postby jeterman900 » 15 Jul 2012, 23:52

disy i was going to use your tutorial but how to make computer in minecraft???
Image

Veteran on Build
User avatar
jeterman900
Diamond Miner
  
 
Posts:202
Joined:10 Jul 2012, 19:59
Location:East Coast

Re: Disy's Tekkit Password Doors! -Tutorial-

Postby Disy » 15 Jul 2012, 23:54

jeterman900 wrote:disy i was going to use your tutorial but how to make computer in minecraft???

It's on our tekkit server.
Here's the link to the download of the launcher, and the information.
i'll post the recipe for a computer now.
Contact Information - (Email: disycraft@gmail.com) (Skype: disymc)
Left CC (for the most part) - April 23rd 2014 | Moderator of 3 years on Build + Modded
Image
User avatar
Disy
GOD LIKE
  
Build:Ultra
Survival:Ultra
FTB:Ultra
 
Build portfolio
 
Posts:3172
Joined:01 Aug 2011, 02:32
Location:Seattle, USA

Re: Disy's Tekkit Password Doors! -Tutorial-

Postby Ironpenguin12 » 16 Jul 2012, 12:01

Nice job disy I will use this nice tut on it.
(me no want people taking diamonds from me)
Image
User avatar
Ironpenguin12
Diamond Miner
  
Build:Ultra
 
Posts:200
Joined:12 May 2012, 18:49
Location:Where penguins are

Re: Disy's Tekkit Password Doors! -Tutorial-

Postby Echoed » 16 Jul 2012, 14:08

Yay :D Thanks Disy. I wish I could just use copy paste, because that took FOREVER to type, and I had to type it out 3 times in total, because something went wrong the first 2 times. But hey, it works now :) Thanks :D
Thanks for the 3 years guys, it was fun. Time to move on.
User avatar
Echoed
Bedrock Miner
  
Build:Ultra
FTB:Ultra
 
Posts:547
Joined:10 Aug 2011, 16:12
Location:Johannesburg

Re: Disy's Tekkit Password Doors! -Tutorial-

Postby IIIIISteveIIIII » 16 Jul 2012, 15:17

Thanks Disy!! So useful on how to do this. I need a computer on my safe house.

Steve
IIIIISteveIIIII
BANNED
  
Build:BANNED
Survival:BANNED
FTB:BANNED
SkyBlock:BANNED
 
Posts:441
Joined:21 Jan 2012, 08:50
Location:Oxfordshire

Re: Disy's Tekkit Password Doors! -Tutorial-

Postby Terrowin » 16 Jul 2012, 15:39

Disy wrote:oldPull = os.pullEvent
os.pullEvent = os.pullEventRaw
while true do
term.clear()
term.setCursorPos(1,1)
print (" DisyTech: Security Doors")
print ("
Please enter the password.")
write ("Password: ")

if read ("*") == "Password" then
print ("Loading")
sleep(
1)
print ("Correct!")
redstone.setOutput("
right", true)
sleep(5)
redstone.setOutput("right", false)
term.clear()
term.setCursorPos(1,1)
break
else
print ("Loading")
sleep(1)
print ("Incorrect!")
sleep(1)
end
end
os.reboot()
os.pullEvent = oldPull


Blue: Do not change! Green: Feel free to change!
[/quote]

Disy Tech : Security Doors.
Always have to quote yourself :P
Terrowin,
Long time CC Player ((21/04/12 - ??/??/??))
Ex-Survival Moderator ((23/6/12 - ??/??/??))

Skype - jakeee.a ======== Steam - Terrofail

<3
Image
User avatar
Terrowin
GOD LIKE
  
Build:Ultra
FTB:Ultra
 
Build portfolio
 
Posts:1407
Joined:21 Apr 2012, 20:21
Location:The staff server!

Re: Disy's Tekkit Password Doors! -Tutorial-

Postby Caralel » 16 Jul 2012, 15:47

:o Disy, i love you.
User avatar
Caralel
Bedrock Miner
  
Build:Ultra
Survival:Ultra
FTB:Ultra
SkyBlock:Ultra
 
Build portfolio
 
Posts:970
Joined:16 Apr 2012, 20:03
Location:Oompa Loompa Land

Re: Disy's Tekkit Password Doors! -Tutorial-

Postby xoEliminator » 16 Jul 2012, 15:53

Fankuuuuu Disy!:D
Image
User avatar
xoEliminator
Bedrock Miner
  
Build:Ultra
FTB:Ultra
 
Build portfolio
 
Posts:823
Joined:08 Aug 2011, 15:07
Location:Ermm... Moderating Build?

Re: Disy's Tekkit Password Doors! -Tutorial-

Postby Disy » 16 Jul 2012, 16:34

Your welcome guys!

Haha terrowin, i've got to leave my mark somewhere! :P
Contact Information - (Email: disycraft@gmail.com) (Skype: disymc)
Left CC (for the most part) - April 23rd 2014 | Moderator of 3 years on Build + Modded
Image
User avatar
Disy
GOD LIKE
  
Build:Ultra
Survival:Ultra
FTB:Ultra
 
Build portfolio
 
Posts:3172
Joined:01 Aug 2011, 02:32
Location:Seattle, USA

Next

Return to Tekkit Tutorials

Who is online

Users browsing this forum: No registered users and 1 guest