Mojira Archive
MC-277797

Forked commands can run /return multiple times for the same function

This command can cause the function to return multiple times. (You need at least 2 entities in your world.)

execute as @e run return 0

Given that functions normally have a single return value, this seems like an unintended behavior.

You can use the attached datapack and run /function returnbug:t

Unresolved

Triton365

2024-10-23, 12:49 PM

2025-01-24, 05:27 PM

1

1

Confirmed

Commands

1.21.2, 1.21.3, 1.21.4, 25w04a

-