-
Bug
-
Resolution: Fixed
-
1.20.3, 1.20.4
-
None
-
Community Consensus
-
Commands, Data Packs
-
Normal
-
Platform
If a function containing /return fail is run in chat, it returns a success of 1.
How to reproduce:
The attached data pack contains a function named bugtest:fail that runs /return fail.
Run the function with an "execute store result" and an "execute store success".
Observed behavior:
In chat, the message "Function bugtest:fail returned 0" appears and the result is 0 but the success 1.
Expected behavior:
A message "Function bugtest:fail failed" or similar should appear and result and success should both be 0 indicating failure.
- relates to
-
MC-267444 Running /return from chat doesn't show a feedback message
- Open
-
MC-267802 Feedback of a function with /return fail is identical to /return 0, despite behaving differently
- Open
-
MC-268160 The success of "/function #tag" is inconsistent when the number of functions in the tag changes
- Open