I don't know whether or not this is intended to be this way, but i'll report it anyways just to be sure.
When you place an impulse command block and put a command in it and then activate it, it works. But if you keep it powered and you change it from impulse to repeat, it wont trigger. It will trigger once it is turned off and turned on again.
Additional description from @unknown:
To clarify the description a bit, this occurs both if the block is set to "Needs Redstone" and is receiving power, and also if it's set to "Always Active". It's also worth noting that this is not fixed by updating the block, the setting must actually be changed back to Needs Redstone, then back to Always Active.
This bug also occurs with impulse mode. Set it to Chain and Always Active and type in a command. Then change it to impulse. The command will not be run until it is changed to and from Needs Redstone.
Linked issues
is duplicated by 16
relates to 2
Attachments
Comments 18
Here's an extract of MC-156789, it's a duplicate post, but it has a lot of information about the problem:
Here is a list of commands in repeating command blocks that does not work:
(Boosts) If you are in a certain team and crouch and that your boost score is 0, you get an effect:
Command#.1 (Repeat): /effect give @a[team=Speedster,scores={Crouch=1..,Boost=0}] minecraft:speed 8 13 true
Command#.2 (Chained): /scoreboard players set @a[team=Speedster,scores={Crouch=1..,Boost=0}] Crouch 0
Commands that says when the boosts are on or off (the "Boost" scoreboard is affected by eating rotten flesh): (these 4 commands run in a loop)
Command #.1 (Repeat) /tellraw @a[scores={Boost=3}] {"text":"Boosts ON!","color":"dark_green"}
Command#.2 (Chained): /scoreboard players set @a[scores={Boost=3}] Boost 0
Command #.1 (Repeat): tellraw @a[scores={Boost=1}] {"text":"Boosts OFF!","color":"dark_red"}
Command #.2 (Chained): scoreboard players set @a[scores={Boost=1}] Boost 2
Here is a list of commands in repeating command blocks that does work:
If you walk on light blue concrete, you get a speed boost:
(Repeat): /execute at @a if block ~ ~-1 ~ minecraft:light_blue_concrete run effect give @p[distance=..3] minecraft:speed 1 15
Mobs have special effects:
(Repeat): /execute at @e[type=creeper] run effect give @e[distance=0..1,type=creeper] minecraft:blindness 10 0 true
From what I could see right now, the only commands on repeat that does not seem to work are the one that needs a specific criteria/another scoreboard objective to be activated (for exemple, having {boost=0} or {crouch=1..}).
Also, the bug is still happening in Snapshot 19w35a
Have you tried placing a block next to it after changing it to repeat? This issue may be related to quasi connectivity and working as intended.
Ok I think I know what's happening:
When changing command block options (well, for now on: impulse to repeat mode), they don't consider their new options until they are redstone updated.
Also, if you do this and the command block is set to "Always active", you need to put it to "needs redstone", press done and set it back again to "Always active" to consider his new state.