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

Scheduled functions appear to run /tellraw and /reload out of order

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.20.2, 23w41a
    • None
    • Confirmed
    • Commands, Data Packs
    • Normal
    • Platform

      When running a schedule function that contains /tellraw and /reload, the order of execution is incorrect.

      /tellraw written before /reload is executed after /reload.

      Steps to Reproduce:

      1. [Step 1]
        • Start a new world, with a datapack that contains this function:
        • tellraw @a {"translate": "commands.reload.success"}
          reload
          
      1. [Step 2]
        • Run /schedule function f 1 from the chat field.

      Observed Results:

      The message "Reloading!" is displayed after reloading.

      (There is a delay before it is displayed.)

      Scheduled function 'minecraft:f' in 1 tick(s) at gametime 3158
      Reloading!
      

      Expected Results:
      The message "Reloading!" should be displayed before reloading.

      (It is displayed immediately.)

      This is how it works in 1.20.1.

       

      Screenshots/Videos attached: [please attach an image or short video]

      Notes:

            Unassigned Unassigned
            a_happin a_happin
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              CHK: