How to reset a command block's status?

How to reset a command block's status? - Unrecognizable woman holding paw of dog

I'd like to use a comparator to act when e.g. a testforblock command block attached to a button triggers. But the comparator changes its state only when the button is pressed after the test result changes, while I'd like to have a short pulse if nothing changed, i.e.

previous command block state | new command block state | desired output
           on                |           off           |      off
           off               |           on            |      on
           on                |           on            |      briefly off, then on
           off               |           off           |      briefly on, then off

How can this be achieved?



Best Answer

Instead of making a machine, just set up another command block coming out of the comparator with this command:

/blockdata <Insert Coords> {SuccessCount:0}



Pictures about "How to reset a command block's status?"

How to reset a command block's status? - Side view of young woman in hoodie sitting on floor near sofa and playing with obedient brown Labrador while resting during free time
How to reset a command block's status? - Crop hacker silhouette typing on computer keyboard while hacking system
How to reset a command block's status? - Full body optimistic young female with curly hair smiling and teaching Beagle dog beg command on sunny summer day in countryside



How do you reset the command in minecraft?

If you want to clear all the dropped items within a specific radius, use the \u201c/kill @e[type=item, r=x]\u201d command. You'll need to replace x with the number of blocks you want to clear. For instance, \u201c/kill @e[type=item, r=10]\u201d will clear all the dropped items in a 10-block radius.

How do you clear the block command?

You can also set your Command Block up to be powered by Redstone. Selecting \u201cNeeds Redstone\u201d will make it only activate if the block has Redstone. Selecting \u201cAlways Active\u201d makes the command run regardless. Whatever command you want set up goes into the \u201cCommand Input\u201d section.



How To Reset Minigames And Give Players Weapons! (Minecraft Bedrock) // Command Block Tutorial




More answers regarding how to reset a command block's status?

Answer 2

In my case it is actually sufficient that an on-signal is reset after a short while, which can be simply achieved by splitting the input signal and additionally feeding it to the comparator's side.

Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Ivan Babydov, Ivan Babydov, Anete Lusina, Blue Bird