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

Scheduling a macro function silently fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.20.4, 24w07a
    • None
    • Plausible
    • Commands, Data Packs
    • Low
    • Platform

      When scheduling a function with macro commands, the game doesn't return an error. It is silently ignored. And because there is no way to pass macro arguments to the scheduled function (see MC-268322), you cannot schedule the function. Just to be clear here, the bug is that it doesn't show an error when you try to schedule the macro function, I'm not asking for any new features.

      How to reproduce:

      1. Create a macro function in a data pack
        $say WAHHH $(data)
        
      2. Run the function without arguments
        /function <id>
        
      3. Notice that you get an error: "Failed to instantiate function"
      4. Try to schedule the function without arguments
        /schedule function <id> 1s
        
      5. Notice that you get no error, but after a second the function did not run.

            Unassigned Unassigned
            Misoloo [Helper] Misode
            Votes:
            4 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              CHK: