mojira.dev
MC-131773

Comparators from command blocks no longer output results properly

Using /execute if entity @e or /execute unless entity @e without "run" subcommands (which is a replacement for testfor commands) no longer gives off an output relative to result and will be successful in command blocks regardless of result.

Has the same issue for /execute if:unless block

Commands such as {color:#59afe1}/data get{color} no longer have the practical output of "result" using comparators.

Commands such as /scoreboard players get no longer have the practical output of "result" using comparators.

Additionally, using comparators  with things like /difficulty and /scoreboard players get no longer gives an output of "result", which was useful with doing complex calculations and computing using command blocks and comparators.

Linked issues

Comments 5

As a side note I must say that command blocks are INCREDIBLY less useful now as you can use result for so many more things then success. Like doing complex calculations using comparators or having a redstone output on a command block equal to difficulty or a scoreboard.  They also just don't act as expected.

Suggested fix:
Add "ResultCount:" nbt for command blocks and have comparators pull output values from "ResultCount:" instead of "SuccessCount:".

Secondary suggested fix:
Add a gui button to command blocks to allow players to toggle between "result" and "success" as the output for "SuccessCount"

After discussion inside team, we decided to keep success count as comparator output (i.e. 1.12 behavior)  - there seems to be no significant loss in functionality, since all arithmetic or logic operations can still be performed with scoreboards only.

 

On the other hand, `/execute if|unless` will fail where it previously returned 0. It will restore previous conditional triggering behavior.

MukiTanuki

boq

Confirmed

command, command_block, comparator, output, result, testfor, testforblock

Minecraft 1.13-pre3

Minecraft 1.13-pre4

Retrieved