Mojira Archive
MC-264699

Functions return the output of commands only if the command doesn't start with return run

When runningĀ 

execute store result <storage location> int 1 run function <function location>

in a function the output will be stored for every command executed in the called function except for commands starting with "return run".

With the attached datapack applied when running the bug:main function the output is stored for the first 2 "random roll 0..100000" commands even though those commands aren't prepended with "return run" and the output of the last "random roll 0..100000" command isn't stored even though it is prepended with "return run"

Fixed

coehlrich

[Mojang] Bartosz Bok

2023-08-07, 03:38 AM

2023-10-11, 08:52 AM

2023-10-11, 08:52 AM

9

10

Community Consensus

Normal

Platform

Commands

23w31a

23w41a