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]

Hiring a builder in X4 Foundations Hiring a builder in X4 Foundations

Posted On: April 9, 2023
I have gotten to the part in the questline where. the player unlocks the station in Grand Exchange 1. and I can't find a builder on any main station, wharf, or shipyard, I haven't spotte...[More]


Can you delete or overwrite HM moves in Pokemon RGBY? Can you delete or overwrite HM moves in Pokemon RGBY?

Posted On: February 26, 2023
Is there any way to remove HM moves from a Pokemon in the first generation games? This includes learning and overwriting the HM or using a move deleter. Question from user zero298 at gaming.stackex...[More]


What dialogue choice do you regret choosing? What dialogue choice do you regret choosing?

Posted On: December 17, 2024
Question from user andyyhs at BaldursGate3 at reddit.com.Answer:letting Laezel go on her own to Crèche on my first playthrough and then she turned to shadow Laezel and I wasnt able to get her back. h...[More]


If I leave a Minecraft Realm will my signs disappear or still be there? If I leave a Minecraft Realm will my signs disappear or still be there?

Posted On: April 12, 2023
I wrote some notes on sign, if I leave that Minecraft Realm will my signs disappear or still be there? Question from user pickle at gaming.stackexchange.com. Answer: If this one below is the ...[More]


Is GoldenEye Source free? Is GoldenEye Source free?

Posted On: March 23, 2023
I can't tell if you have to buy anything to play GoldenEye: Source. Is it free? Are there any good tutorials on getting this up and running? Question from user slim at gaming.stackexchange.com....[More]


How to create a free items server in Terraria? How to create a free items server in Terraria?

Posted On: March 7, 2024
I mean like those servers that have chests full of items that never become empty.I am not a game programmer but I think it shouldn't be that hard and I can try it myself.I think they use the TShock se...[More]


Can I install an old DirectX version without affecting the latest version? Can I install an old DirectX version without affecting the latest version?

Posted On: May 25, 2023
I'm attempting to run RetroArch for an old game , but it requires DirectX 9.0c. Will installing DirectX 9.0c overwrite or delete the current version I have installed (v12)? If so, can I subsequ...[More]


Can I disable DLC in Dead Cells? Can I disable DLC in Dead Cells?

Posted On: April 6, 2023
I purchased Dead Cells on Steam with all the DLC and am finding the experience to be overwhelming. Can I disable the DLC to only play with the original content? If yes, how would disabling the DLC imp...[More]


Can you change your crew name? Can you change your crew name?

Posted On: April 28, 2024
Near the start of the campaign of Need for Speed Carbon on PS3, you are asked to pick a crew logo and name. Is it possible to change the crew name later on?Question from user Stevoisiak at gaming.stac...[More]


Is there any way in Minecraft to detect who deposited a diamond into a chest using command blocks? Is there any way in Minecraft to detect who deposited a diamond into a chest using command blocks?

Posted On: April 26, 2024
So far, I've been able to detect when a diamond is placed into a chest's inventory but how can I detect who placed that diamond?I'd prefer not to use the nearest player because someone else could pote...[More]