mojira.dev
MC-254439

/execute with more than one if/unless parameter produces no output if test fails

When using an execute command with more than one if/unless parameter, if the test fails, no output is printed to the chat or command block output field. I found the issue in 1.18.2 and tested it again in 1.19.1-rc2, with the following command (assuming one or both of the parameters are false):

/execute if block 0 0 0 minecraft:diamond_block if data storage minecraft:example {0: {running: true}}

"commandBlockOutput" and "sendCommandFeedback" are both set to true.

Expected behaviour: Red "Test failed" message is printed to the chat upon execution.

Actual behaviour: No output is generated, as if the command hadn't executed at all.

Steps to reproduce: Run the above command in a new world (where a failed test would be expected).

Comments 1

Can confirm it in 23w04a

redfoxofdeath

(Unassigned)

Community Consensus

Platform

Low

Commands

1.19.1 Release Candidate 2, 23w04a

Retrieved