mojira.dev
MC-267444

Running /return from chat doesn't show a feedback message

Similar to any other command, I would expect /return to show a feedback message in chat indicating its success and/or return values. Alternatively it should not be available in chat.

How to reproduce

  1. Run /return 4 or /return fail from chat

  2. ❌ No feedback message appears in chat

Relates to MC-267193

Linked issues

Comments 2

I think it's best if it's not made exclusive to functions, but the result would say something about it, for example:
"Returned 3. Run this in a function to end its execution, passing /execute if function"
and
"Returned failure. Run this in a function to end its execution, failing /execute if function."

This would aid new users quite a bit in understanding what it does, without needing to resort to the wiki or alike.

Can confirm in 23w51b

Misode

(Unassigned)

Confirmed

Platform

Low

Commands

23w16a, 1.20.4, 23w51b

Retrieved