A comparator in subtraction mode can update its output one redstone tick earlier than expected.
This happens when a weaker redstone signal is sent to the side input one redstone tick before a stronger redstone signal that is supposed to be the subtrahend. The weaker signal must be the one sent one redstone tick earlier. Otherwise, the resulting output would legitimately change, and this would not be a bug.
I would expect the following behavior (in redstone ticks):
The weaker redstone signal arrives at the side input of the comparator
The stronger redstone signal arrives; the comparator outputs (input - weak side input) (in the same redstone tick)
The comparator outputs (rear input - strong side input)
But the actual result is (again in redstone ticks):
The weaker redstone signal arrives at the side input of the comparator
The stronger redstone signal arrives; the comparator outputs (rear input - strong side input) (in the same redstone tick)
If you don't send a weaker signal one redstone tick earlier (as intended), the behavior is as expected (again in redstone ticks):
The stronger redstone signal arrives
The comparator outputs (rear input - strong side input)
Attachments
Comments 5
Hello @TNT_Feuerball ! Thank you for your report, and for providing the reproduction videos.
I have built this setup and can confirm the behavior you’re seeing, but we are curious about the “sometimes” in the title. I have also tried building similar setups, such as avoiding chunk borders or trying different orientations, but I have been unable to reproduce a situation where both outputs trigger at the same time, such as in your “expected behavior” section.
Would you be able to provide a setup that includes the weaker signal coming in first but the output happens on the following tick like you’re expecting it to?
I looked at it again and realized that I forgot to switch to subtraction mode when testing the one that didn’t work. So it actually happens every time. Sorry for that
Thank you for your report!
After consideration, the issue is being closed as Won't Fix.
Please note that this is not the same as Working as Intended, as this bug report correctly describes behavior in the game that might not be the intended or desirable behavior, but it will not be fixed right now. Sometimes, this is because the issue reported is minor and/or impossible to change without large architectural changes to the code base.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
A video of this behaviour: