Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-254439

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.19.1 Release Candidate 2, 23w04a
    • None
    • Community Consensus
    • Commands
    • Low
    • Platform

      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).

            Unassigned Unassigned
            redfoxofdeath redfoxofdeath
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              CHK: