Can a redstone latch in Minecraft Bedrock Edition be supplemented with a toggle function?

[BACK]
Can a redstone latch in Minecraft Bedrock Edition be supplemented with a toggle function?
Posted On: April 3, 2023

SR latches and T-flip-flops are trivial circuitry in Minecraft redstone, but it appears that there is little to be found for a circuit that combines both, allowing for both SR and T functionality.


I envision an SR-T latch to have set, reset, and toggle inputs respectively, but all connected to the same memory cell. This means that the output can be controlled by setting it, resetting it, and toggling it all at once. Just like an SR latch, pressing S or R when the cell is already in that state should do nothing.


All of my circuitry so far has been "unclean" implementations, either a bodged wiring to add a toggle to an SR latch, or bodged wiring to add SR inputs to a T-flip-flop. What is the best way to go about making such a latch?


See also: Same question for Java Edition (originally one question; separated upon request from others).


Question from user KnowledgeIsPower at gaming.stackexchange.com.


Answer:

The primary mechanism you're going to want is an RS latch and some AND gates. This will operate as a regular RS latch when you press the On or Off button, and as a Toggle when you press Toggle. This works by routing the toggle signal to the appropriate end of your RS latch, turning it on or off based on the current state of the RS latch.


I feel like I've been here before. Anyway. As it turns out there are quite a few differences in how Minecraft Bedrock Edition redstone works that I don't fully understand, which makes my Java Edition answer inoperative in Bedrock edition. However, with some small tweaking, it can be made to work.


The main tweak is a monostable circuit on the Toggle line:.


This circuit uses a sticky piston to, in one game tick, send a redstone pulse and cut it off. This causes the Toggle input to only be on for 1 tick. This prevents the mechanism from cycling more than once when the toggle button is pressed. Without this, the pistons will switch back and forth repeatedly until the signal turns off, which is not what we want.


From here, only minor tweaks are required to the original Java mechanism (Bedrock edition has different rules about when redstone dust connects to pistons, so a few more redstone repeaters were required):.


As in my previous answer, there are sticky pistons underneath the gold blocks which act as AND gates, and a redstone repeater underneath the diamond block to keep the signal from the repeater on the Reset line from being directly connected to the Output line. .


Unfortunately, due to the monostable circuit, this build is quite a bit bulkier in Bedrock edition, coming in at 9x4 on Bedrock (vs 5x4 on Java). 


Answer from user Unionhawk at gaming.stackexchange.com.



[BACK]
Can a redstone latch in Minecraft Bedrock Edition be supplemented with a toggle function?
Posted On: April 3, 2023

SR latches and T-flip-flops are trivial circuitry in Minecraft redstone, but it appears that there is little to be found for a circuit that combines both, allowing for both SR and T functionality.


I envision an SR-T latch to have set, reset, and toggle inputs respectively, but all connected to the same memory cell. This means that the output can be controlled by setting it, resetting it, and toggling it all at once. Just like an SR latch, pressing S or R when the cell is already in that state should do nothing.


All of my circuitry so far has been "unclean" implementations, either a bodged wiring to add a toggle to an SR latch, or bodged wiring to add SR inputs to a T-flip-flop. What is the best way to go about making such a latch?


See also: Same question for Java Edition (originally one question; separated upon request from others).


Question from user KnowledgeIsPower at gaming.stackexchange.com.


Answer:

The primary mechanism you're going to want is an RS latch and some AND gates. This will operate as a regular RS latch when you press the On or Off button, and as a Toggle when you press Toggle. This works by routing the toggle signal to the appropriate end of your RS latch, turning it on or off based on the current state of the RS latch.


I feel like I've been here before. Anyway. As it turns out there are quite a few differences in how Minecraft Bedrock Edition redstone works that I don't fully understand, which makes my Java Edition answer inoperative in Bedrock edition. However, with some small tweaking, it can be made to work.


The main tweak is a monostable circuit on the Toggle line:.


This circuit uses a sticky piston to, in one game tick, send a redstone pulse and cut it off. This causes the Toggle input to only be on for 1 tick. This prevents the mechanism from cycling more than once when the toggle button is pressed. Without this, the pistons will switch back and forth repeatedly until the signal turns off, which is not what we want.


From here, only minor tweaks are required to the original Java mechanism (Bedrock edition has different rules about when redstone dust connects to pistons, so a few more redstone repeaters were required):.


As in my previous answer, there are sticky pistons underneath the gold blocks which act as AND gates, and a redstone repeater underneath the diamond block to keep the signal from the repeater on the Reset line from being directly connected to the Output line. .


Unfortunately, due to the monostable circuit, this build is quite a bit bulkier in Bedrock edition, coming in at 9x4 on Bedrock (vs 5x4 on Java). 


Answer from user Unionhawk at gaming.stackexchange.com.



[BACK]

BG3 Community, things just got out hand BG3 Community, things just got out hand

Posted On: May 20, 2024
So the BG3 twitter is in the middle of a drama because you should not get the Astarion scars as a tattoo as it is considered disrespectful and/or downright racist towards the black community because t...[More]


How does Natures Fury work in Diablo IV? How does Natures Fury work in Diablo IV?

Posted On: August 11, 2023
Nature's Fury is a Druid skill which reads as follows:. Casting an Earth skill has a 20% chance to trigger a free Storm skill of the same category. In addition, casting a Storm skill has a 2...[More]


What Hogwarts tips do you wish you'd known when you started? What Hogwarts tips do you wish you'd known when you started?

Posted On: March 26, 2023
For example, I had to Google how to jump on my broom after the flying class as don't recall it saying to hold LB and press B. (Edit: this was after I purchased the broom and had been playing for a...[More]


Can I empty a soul gem in Skyrim? Can I empty a soul gem in Skyrim?

Posted On: May 1, 2023
I have several Grand Soul Gems filled with Petty Souls, which seems like a waste of a Grand Soul Gem. Is there a way to EMPTY the Soul Gem so I can refill it with a larger soul? I have the Dawng...[More]


What *exactly* is the action - event that fixes your choice of Grimm Troupe quest? What *exactly* is the action - event that fixes your choice of Grimm Troupe quest?

Posted On: February 16, 2023
I recently found out that there are 2 options of the final portion of the Grimm Troupe content. Fight the Nightmare King. Help Brumm banish the Troupe. My wife and I have 2 saves, we've b...[More]


What are the chances of each music disc drop from creepers in Minecraft? What are the chances of each music disc drop from creepers in Minecraft?

Posted On: February 19, 2023
i play version 1.19.3 with some friends and we use music disks as our currency, i was wondering out of all the discs that creepers can drop what are the chances / percentages for each? we want to use ...[More]


Replacing Water Blocks With Lava in Minecraft Replacing Water Blocks With Lava in Minecraft

Posted On: February 20, 2023
In Minecraft (Bedrock), I'm trying to replace water blocks with lava using a /fill command, e.g., on a region already containing water (note: this command covers the entire water region, there'...[More]


How to get past the old man in Viridian City in Pokemon Leaf Green? How to get past the old man in Viridian City in Pokemon Leaf Green?

Posted On: March 20, 2024
It's been a while since I last played Pokémon Leaf green.I am playing it with my nephew and he asked me how to get to first Gym (Brock) to get the Boulder badge.Here is the problem:.An old man is lyi...[More]


Is there a key for the map icons in Hollow Knight? Is there a key for the map icons in Hollow Knight?

Posted On: December 12, 2023
I bought lots of markers for my map from the nice bug lady in Dirtmouth but I can't actually remember what most of them are for and there doesn't seem to be a key or legend that I can see on t...[More]


Steam Invalid SSL Certificate Steam Invalid SSL Certificate

Posted On: June 12, 2023
For the past few months I have been having an issue with Steam, and I have finally decided to ask about it. I've looked up solutions but none of them work, and nobody else has seemed to have had t...[More]