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]

Where can I find pearls in Witcher 3? Where can I find pearls in Witcher 3?

Posted On: March 5, 2023
I am playing Witcher 3 from after patch 1.05. Is it possible to buy shells (pearls) from a merchant, or do I have to find them somewhere? Question from user Purple Rabbit at gaming.stackexchange...[More]


In Guild Wars 2, Is the area between Kessex Hills, Gendarran Fields and Lions Arch reachable? In Guild Wars 2, Is the area between Kessex Hills, Gendarran Fields and Lions Arch reachable?

Posted On: March 31, 2023
Well, I always thought it wasn't reachable since it's inhabited by the tengu, blocked off by the Dominion of Winds. But when I browsed through the explored map on the Guild Wars 2 Wiki, I foun...[More]


What is the maximum speed an AMX 40 can achieve over flat terrain in World Of Tanks? What is the maximum speed an AMX 40 can achieve over flat terrain in World Of Tanks?

Posted On: August 11, 2023
I've rebought my AMX-40 lately after reading a guide which tries to fix the issues with the tank (it's speed mostly) and I noticed that sometimes I can reach 26-7kmh on flat pavement surfaces ...[More]


Do weapons earn Freshness during a Splatfest? Do weapons earn Freshness during a Splatfest?

Posted On: January 11, 2023
The Freshness flag is representative of that weapon's highest Freshness rating:. According to the wikia:. If Fresh is reached with a weapon before dropping back down to Raw, it will still di...[More]


What game is this character in the Pixels movie from? What game is this character in the Pixels movie from?

Posted On: April 19, 2024
What is this arcade character from? (this is from the Pixels movie).Question from user Questwalker at gaming.stackexchange.com.Answer:This is one of the red-winged moth-looking enemies from Galaga.Scr...[More]


How do I check how much weapons have been strengthened by Material Grind? How do I check how much weapons have been strengthened by Material Grind?

Posted On: December 2, 2023
Kaela Kovalskia's Material Grind skill states:. Targets have a x% chance to drop an Ore Deposit, which may be destroyed with Hammer Swing to drop Ore. Gaining 10 of a type of Ore will strengthe...[More]


How well does the Nintendo Switch perform in terms of graphics compared to the Xbox One and PlayStation 4? How well does the Nintendo Switch perform in terms of graphics compared to the Xbox One and PlayStation 4?

Posted On: February 28, 2023
I'm interested in playing Hogwarts Legacy on Nintendo Switch. Since the Switch is a mobile console, I'm a little concerned the game's graphics might not as good as on the XBOX or PlaySt...[More]


Today I learned Today I learned

Posted On: August 29, 2023
That you can simply kill a dugbog by slicing its tongue. Question from user BoosterSeat3 at HogwartsLegacyGaming at reddit. Answer: Yeah! If you keep your eye on the dueling feats, they usual...[More]


In Assassins Creed 3, What is the best way to expose a ships powder stores? In Assassins Creed 3, What is the best way to expose a ships powder stores?

Posted On: April 16, 2023
On some of the ship missions, there is an optional objective of "sink ships by firing on their powder stores". I know how this works broadly - I've shot up some ships and got the spec...[More]


What do the checkmarks on caves mean in ToTK? What do the checkmarks on caves mean in ToTK?

Posted On: May 16, 2023
I've noticed that some cave icons on my map have checkmarks next to them while others don't. What does the checkmark symbol mean? Question from user scohe001 at gaming.stackexchange.com. ...[More]