In recent 1.21.xx versions (first noticed in 1.21.40), the min_delay and max_delay properties for music in music_definitions.json have become inaccurate. These properties are intended to specify the random delay range in ticks between one ambient music track ending and another starting.
In Minecraft, one second is equivalent to 20 ticks.
For an example of correctly delay functionality: with a min_delay of 400 ticks and a max_delay of 1200 ticks, the silent period between songs may be anywhere between 400/20=20 seconds and 1200/20=60 seconds.
This is not observed in-game. Instead, the observed delay is about 3 times longer than expected. A min and max delay of 100 ticks should result in 100/20=5 seconds of wait time between songs. Instead, the wait time is consistently 14 seconds.
A delay of 400 ticks results in a wait time of 56 seconds, while it should be 20 seconds.
This causes custom content to have much longer music delays than intended in some circumstances.
Steps to Reproduce
Please note that this issue is currently difficult to test due to the following music issues:
https://report.bugs.mojang.com/servicedesk/customer/portal/6/MCPE-221350
https://report.bugs.mojang.com/servicedesk/customer/portal/6/MCPE-219051
https://report.bugs.mojang.com/servicedesk/customer/portal/6/MCPE-222113
To test this issue properly, always close and relaunch the game before testing to avoid MCPE-221350. In addition, the provided test pack uses Menu music because it is not affected by MCPE-219051 or MCPE-222958.
Import and apply the attached sample pack, music_delay_sample_pack.mcpack.
Close and relaunch the game.
Notice that Main Menu music has been replaced by a short note block sound. This makes testing easier.
The test pack specifies that Menu music should play 100 ticks (5 seconds) after the previous song. This is achieved by setting both min_delay and max_delay to 100 ticks.
Observe that the actual delay between notes is not 5 seconds, but actually 14 seconds.
Expected Results
min_delay and max_delay in music_definitions.json correspond to a consistent time delay in-game.
Observed Results
min_delay and max_delay in music_definitions.json are not consistent with in-game music delays. The in-game delay is about 3 times greater than specified in this file.
Linked issues
Attachments
Comments 0
No comments.