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

Scheduled functions are part of weather in profile results

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.16.5, 21w20a, 1.17.1 Pre-release 1, 1.18, 1.19.2, 1.19.3 Pre-release 2, 1.20.4
    • None
    • Confirmed
    • Commands, Data Packs

      The bug

      Commands that run from a scheduled function are listed under "weather" in profile results obtained with /debug start. In contrary, commands that run from the tick.json function tag are listed under "commandFunctions" > "minecraft:tick". Adding new "scheduledFunction" > "<function name>" profile path to match this behavior should be a simple fix.

      Reproduction steps

      1. Create a new world with default generation
      2. Put the attached datapack MC-226038.zip in the datapacks folder of the world
      3. Reopen the world or run /reload
      4. Press F3 + L to start profiling
      5. While still profiling, execute
        /schedule function mc-226038:test 1s append
        
      6. Once profiling has finished inspect the report, or upload it to https://misode.github.io/report/
        The commands of the function are listed under weather

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

              Created:
              Updated:
              CHK: