something that can detect the redstone pulse from a pressureplate to send a pulse to a door, keeping it open until the pressureplate is ran over again.
run over plate -> door opens
run over plate again -> door closes
I managed to create something that will listen to the pressureplate and output RS but I have no idea how to make it toggle the door to stay open
my patience is running out and googlefu isn't returning anything useful
local component = require("component")
local sd = require("sides")
local rs = require("component.redstone")
if rs.getInput(sd.front) == 15 then
print("Opening door")
rs.setOutput(sd.right, 15)
else
print("Closing door")
rs.setOutput(sd.right, 0)
end
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
something that can detect the redstone pulse from a pressureplate to send a pulse to a door, keeping it open until the pressureplate is ran over again.
run over plate -> door opens
run over plate again -> door closes
I managed to create something that will listen to the pressureplate and output RS but I have no idea how to make it toggle the door to stay open
my patience is running out and googlefu isn't returning anything useful
Link to post
Share on other sites