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]

A single Microsoft account, but two Xbox consoles: I would like to use a different unlock pattern A single Microsoft account, but two Xbox consoles: I would like to use a different unlock pattern

Posted On: December 3, 2023
I have a single Microsoft account (2FA enabled), but two consoles (Xbox S and the big X). One console is for the kids and one for me. I want to use a different unlock pattern or somehow make sure t...[More]


I get huge FPS drops when I move my mouse in certain games I get huge FPS drops when I move my mouse in certain games

Posted On: May 19, 2023
As the title says, I am getting huge FPS drop in some games. Currently, I'm having issues in:. Apex Legends. Marauders. 7 Days to Die. What's happening is, when I'm not movi...[More]


How can I recognize wanted criminals in Godlike Burger? How can I recognize wanted criminals in Godlike Burger?

Posted On: October 17, 2023
There's this event in Godlike Burger where your restaurant may sometimes be visited by wanted criminals that you can kill for a money reward. Problem is, I don't see any distinguishable marks ...[More]


What do I get for collecting the golden coins in Bowsers Fury? What advantages does it have? What do I get for collecting the golden coins in Bowsers Fury? What advantages does it have?

Posted On: December 20, 2023
When I play Super Mario 3D World, I get an extra life for every 100 coins I've collected. In Bowser's Fury there are also plenty of coins I can collect. But I don't see a counter for Ma...[More]


Does renaming a pokemon to its original name count as a nickname? Does renaming a pokemon to its original name count as a nickname?

Posted On: June 15, 2023
Basically what I actually want to know is, if I rename a Pokémon to its original name and trade it, will the traded Pokémon evolve with its proper evolved Pokémon name or retain i...[More]


Emulation problems with Paper Mario Emulation problems with Paper Mario

Posted On: March 24, 2023
Has anyone successfully emulated PaperMario for N64? I'm using Project64 1.6 on Windows 7. Using Jabo's video plugin there is lots of flickering which was really annoying so I tried Glid...[More]


What happens if I defeat an enemy and run out of HP at the same time? What happens if I defeat an enemy and run out of HP at the same time?

Posted On: January 18, 2023
What happens if I defeat an enemy and run out of HP at the same time? For example, if you use a self damaging attack like Boomerang or if you take damage form attacking an enemy with Thorns. Questi...[More]


Where is Eluned in the final stages of Song of the Elves? Where is Eluned in the final stages of Song of the Elves?

Posted On: June 27, 2023
I'm at the final boss battle of Song of the Elves, but my teleport crystal is out of charges. I looked for Eluned in Lletya, where she has been throughout the quest, but she's not here. I trie...[More]


What is the Eraser Trick in StarCraft? What is the Eraser Trick in StarCraft?

Posted On: July 4, 2023
What is the eraser trick mentioned in this StarCraft video? Note: This is referring to the 1998 game, not the current game. Question from user C. Ross at stackexchange. Answer: Here's ...[More]


How to test if The Digital Deluxe Edition is active in Baldurs Gate 3? How to test if The Digital Deluxe Edition is active in Baldurs Gate 3?

Posted On: September 29, 2023
I bought The Digital Deluxe Edition with the game. Then, I refunded the game, but not The Digital Deluxe Edition - it was my silent protest against it not working properly on SteamDeck despite its &qu...[More]