mojira.dev
MC-301509

"execute if" does not provide failure feedback in chat when executing as an entity

When using a /execute if command, if the check fails, a red “Test failed” feedback message is shown in chat.

However when using it in combination with /execute as, the message does not show on failure, simply nothing is received in return.

Note that of the command succeeds it still prints “Test passed” to chat.

Example (assuming the player is standing in an air block):

/execute if block ~ ~ ~ minecraft:bedrock => “Test failed”

/execute if block ~ ~ ~ minecraft:air => “Test passed”

/execute as @s if block ~ ~ ~ minecraft:bedrock => no result in chat

/execute as @s if block ~ ~ ~ minecraft:air => “Test passed”

Linked issues

Comments 1

Thank you for your report!
We're actually already tracking this issue in MC-125823, so this ticket is being resolved and linked as a duplicate.

If you would like to add a vote or any additional information to the main ticket it would be appreciated.

Please be sure to use the search feature before creating a ticket to see if the issue has already been reported.

Quick Links:
📗 Tracker Guidelines | 🛠 Community Support | 📧 Mojang Support | 🔑 Account Support | ✍️ Feedback Discord

Alisa

(Unassigned)

Unconfirmed

(Unassigned)

1.21.8

Retrieved