I've got a complicated problem which I've been trying to solve for hours now.
I will try to explain the setup best I can.
We have a set of drawbridges on the side of our base, which raise and lower based on the daylight sensor, this is easy enough. But we want to add a manual toggle button to raise and lower as we need to. The problem is of course is it remembers the last state. If we close it up during the day, it will open at night, but we want it closed at night and open during the day.
We are using a redstone pulse, with a t-flipflop currently to get the button and daylight sensors to work using variables, but our brains are fried.
In short, we need it to raise when the daylight sensor goes off, no matter what, if its up it stays up, if its down it goes up and visa versa for daytime too but also be toggled. If I toggle it up during the day, when night comes it will stay up and not go down which it currently does. Any help on this would be appreciated.
I will try to explain the setup best I can.
We have a set of drawbridges on the side of our base, which raise and lower based on the daylight sensor, this is easy enough. But we want to add a manual toggle button to raise and lower as we need to. The problem is of course is it remembers the last state. If we close it up during the day, it will open at night, but we want it closed at night and open during the day.
We are using a redstone pulse, with a t-flipflop currently to get the button and daylight sensors to work using variables, but our brains are fried.
In short, we need it to raise when the daylight sensor goes off, no matter what, if its up it stays up, if its down it goes up and visa versa for daytime too but also be toggled. If I toggle it up during the day, when night comes it will stay up and not go down which it currently does. Any help on this would be appreciated.