This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Matt64091's profile picture

How do you make it so you put in a keycard and it outputs a redstone signal?

Started by Matt64091, 10 August 2012 - 02:12 AM
Matt64091 #1
Posted 10 August 2012 - 04:12 AM
I am playing Tekkit with my friends and I can't figure out how to make a program where you enter a floppy disk in (a specific one) and it will output a redstone signal (to open a door say).
Lyqyd #2
Posted 10 August 2012 - 04:16 AM
You would use the peripheral API to check the label of the disk, or the FS api to check a file on the disk, or some combination thereof, then use the redstone API to output your signal. There are probably even tutorials for this basic idea in the tutorials section.
Cranium #3
Posted 10 August 2012 - 04:31 AM
And there are several examples of this concept in the Programs section. Take a look at other peoples' code, and you'll learn a lot from it!