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

Forked commands can run /return multiple times

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.21.2
    • None
    • Unconfirmed
    • (Unassigned)

      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:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: