mojira.dev
MC-145442

Player does not receive chat and title output produced by functions in #minecraft:load

The output generated by functions that produce chat output (/say, /tellraw) and are placed in the #minecraft:load tag for functions, is not visible for the player when opening a world. The same goes for /title.

This is not the case when executing /reload, everything works properly then.

When a function tagged with #minecraft:load schedules another function with a delay of 1 to 3 ticks, its chat and title output will also not be visible for the player. When the scheduled function is scheduled with a delay of 4 ticks, it does work. However, the latter only holds when you reload the world (by quitting to title and opening the world again). I'm not sure if this is consistent across systems, because I guess that it involves the JVM warming up.

I've attached an example datapack to reproduce this issue.

Attachments

Comments 2

Almost definitely intended. The world needs to be up and running before the player client can connect.

Agreed. The integrated server starts first, then the client/player connects.

You can't rely on chat output anyways if you are running a (dedicated) server, and you can never know if somone will use the datapack/map on a server.

Jochem Broekhoff

(Unassigned)

Confirmed

Commands

Minecraft 19w09a, Minecraft 19w11b, Minecraft 19w12a, 1.15 Pre-Release 2

Retrieved