Mojira Archive
MC-265843

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

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:

Unresolved

a_happin

2023-10-16, 02:10 AM

2023-11-13, 04:33 PM

1

4

Confirmed

Normal

Platform

Commands, Data Packs

1.20.2, 23w41a

-