Activate clock only when command block output is true

Activate clock only when command block output is true - From below of aged metal clock tower located in city center with high towers

I'm trying to activate a clock when a player looks south. I got the command for it, but when I try to make a comparator clock even if I'm not looking south the comparator clock is still going, so how do I make a clock that will only activate when the command block output is true. I'm using a comparator to test if it is true, then a repeater to extend to 16 redstone then with that 16 redstone I use it to activate a comparator clock but when I'm not looking south the very 1st comparator doesn't turn off.



Best Answer

Try this:

enter image description here

Where the command block contains your command (and will also need to be being activated by a clock or something).

If that does not work, there is likely something wrong with your command, and you'll need to tell us it.




Pictures about "Activate clock only when command block output is true"

Activate clock only when command block output is true - Cute little girl playing with wooden blocks at table near window at home
Activate clock only when command block output is true - Set of red dice stacked together on wooden table placed on sunny terrace in daylight
Activate clock only when command block output is true - Black and white side view full body sporty swimmer in swimming suit and goggles standing on block in track start position preparing to dive in outside pool



How do you set time with a command block?

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 do you make a command block always active?

A command block in "Always Active" mode is always activated. The default state is "Needs Redstone", which means that it runs only when powered. When activated, a command block will try to execute its command. depending on the command block's type: a command block ("Impulse") will try to execute its command once.



Minecraft Bedrock - How To STOP Command Block CHAT ENTIRELY! - PS4, MCPE, Xbox, Windows \u0026 Switch




More answers regarding activate clock only when command block output is true

Answer 2

In 1.9, this can very easily (and less laggily) be done with conditional command blocks. If you want to activate a number of command blocks based on one condition, you should use a setup like this:

Conditional repeating command block

The first (impulse, orange) command block contains the condition, and should be activated whenever you want to check if the player is facing south (can be a repeating command block if you want to constantly check).

The next (repeating, indigo) command block is set to Conditional, which means that it will only activate, and thus only activate the chain command blocks that it's pointing into, when the condition in the block behind it is met. This and the chain command blocks should contain the actual commands you want to activate when the condition is met.

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

Images: Samson Katt, Tatiana Syrikova, Matthias Groeneveld, Heart Rules