mojira.dev
MC-212023

Teleporting and having a sound play at the new location in the same tick shows no subtitle

See title.
If you create a function that both teleports the player away, and plays a sound at the new location, the sound is played, but no subtitle shows.

Steps to reproduce:

  1. Create a data pack with a function containing

    teleport @s ~ ~50 ~
    execute at @s run playsound minecraft:entity.arrow.hit_player master @s ~ ~ ~ 1
  2. Enable subtitles in the settings and make sure master slider is turned on

  3. Run the playsound command by itself /playsound minecraft:entity.arrow.hit_player master @s ~ ~ ~ 1

  4. Observe how the subtitle shows up

  5. Run the function /function <name you gave the file>

  6. Notice how you hear the sound, but no subtitle shows up

Linked issues

Attachments

Comments 3

I can confirm this behavior in 1.19.1.

To make life much easier and to take away the trouble of creating a datapack in order to reproduce this, I've created one myself so you don't have to. In order to recreate the problem here, simply download the attached datapack and create a new world using it. Upon entering the world, you'll be prompted with the steps you need to take in order to reproduce the problem. Simply run the "mojira:mc-212023" function and observe the issue.

[media]

user-f2760

(Unassigned)

Confirmed

Platform

Low

Commands, Sound

20w51a, 21w03a, 21w13a, 1.17.1, 1.18.1, ..., 1.19.4, 1.20.1, 1.20.2, 23w43b, 1.21.4

Retrieved