mojira.dev
MC-87611

Chains of Conditional Command Blocks don't work properly

Summary

If you have multiple conditional chain command blocks in a row then as soon as the condition is true on the first activation of the chain all of the chain command blocks execute, but when the condition goes back to false, the second command block in line gets executed on more time when you power the chain again, the third even two times more often than expected, the fourth three times, and so on.

Exact bug reproduction

Setup some command blocks exactly like in the attachment picture (

[media]

).
All the Chain command blocks are Always Active, the Impulse command block Needs Redstone.

If you power the Impulse command block (by pressing the button), while standing away from the command block with /testfor, nothing should happen.

Now stand close to the block with the /testfor and press the button.

[@] 1
[@] 2
[@] 3
[@] 4

As expected, and working like in 15w35b (and before), all of the chain of command block executed.

Now step back from the /testfor command block and press the button.

[@] 2
[@] 3
[@] 4

The /say 1 command block didn't fire just like one would expected, but surprisingly the other three did.

Continue by pressing the button again.

[@] 3
[@] 4

and again...

[@] 4

and again...

...this last time we finally get no new chat output anymore.

One can clearly see the pattern here, and this works not as intended as well as breaking a lot of use cases for conditional chain command blocks.

How it was in other versions

In the version 15w35b after staying away from the /testfor command block you would immediately get no more feedback in chat from pressing the buttons.

In 15w25c you get close to the /testfor command blocks and press the button twice, getting

[@] 1

after the second click, and then on the next click

[@] 1
[@] 2

and so on, and the decativation would be like in 15w35e.

In 15w35d everything behaves exactly like in 15w35e.

Linked issues

Attachments

Comments 4

I am having the exact same issue, also still a problem in 35e

This might be considered as spam / advertising. This actually dismantled half of my command blocks 😛 as well as my 1 second clock
https://www.reddit.com/r/redstone/comments/3impqc/1_second_clock_without_scoreboards_and/?ref=share&ref_source=link

PictureMinecraftChainBug: All Chain commands have those 2 Commands in them. Hope this helps.

I guess that actually you only need 2 commandblocks. Will update soon.

Frank Steffahn

michael

Unconfirmed

Minecraft 15w35d, Minecraft 15w35e

Minecraft 15w36a

Retrieved