Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-277797

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.21.2, 1.21.3
    • None
    • Confirmed
    • Commands

      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

            Unassigned Unassigned
            Triton365 Triton365
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              CHK: