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

Door Open [Radius]

Started by Aggermor, 26 May 2014 - 09:42 PM
Aggermor #1
Posted 26 May 2014 - 11:42 PM
I need help with something for a server that has no door protection, but block protection, meaning the door cannot be griefed but it can be opened. so I need a new "door"



while player at <location / coords> == <username> do
	emitRedstoneSignal(back)
end



I need the program to check while a player is standing on a coord to then emit a redstone signal through the back of the computer.
CCJJSax #2
Posted 27 May 2014 - 09:55 PM
This isn't really possible with just computercraft. And the way it is is rediculously annoying. basically with just computercraft the only way I can see this working is with a grid of tripwires and a whole bunch of and gates. or stick a bunch of pressure plates and see what level of rs signal is being inputed to the computer.

However if you get openPeripherals, there is something called a sensor that can track entities and players.
Edited on 27 May 2014 - 07:56 PM
BlockSmith #3
Posted 27 May 2014 - 11:22 PM
Try one of the password programs that disallows the CTRL + T/CTRL + R options. I'd suggest staying away from the ones that use a disk as a keycard as it is easy to use a floppy to break a program operation.
apemanzilla #4
Posted 27 May 2014 - 11:56 PM
Try one of the password programs that disallows the CTRL + T/CTRL + R options. I'd suggest staying away from the ones that use a disk as a keycard as it is easy to use a floppy to break a program operation.
CTRL + R and CTRL + S cannot be disabled in any way, shape or form.

The only way at the current time to have a proximity based door lock is via rednet and pocket computers or external addons, I'm afraid.
BlockSmith #5
Posted 29 May 2014 - 07:31 AM
My mistake. I was talking about one that utilizes os.pullEventRaw()
oeed #6
Posted 29 May 2014 - 10:33 AM
Provided you're using 1.6, you could try Ultimate Door Lock program. It uses pocket computers and your proximity to open the door, meaning get close and it'll open.

Also, if it doesn't have door protection why not use an iron door or piston door?