If you give yourself a potion with a duration of 1728,000 ticks and drink it, the timer will behave normally and the number in the timer will change every second, i.e. the duration of the effect will decrease correctly, as it should in principle. But if you raise the bar and give yourself a potion with a duration of 2147483647 ticks and drink it, the timer will break and start behaving strangely and unpredictably. The number in the timer will change with a huge delay, about once every 6-8 seconds, the duration of the effect will decrease incorrectly.
The command to get a potion with a duration of 1728000 ticks: /give @s potion[potion_contents={custom_color:1481884,custom_effects:[{id:speed,duration:1728000}]}]
The command to get a potion with a duration of 2147483647 ticks: /give @s potion[potion_contents={custom_color:1481884,custom_effects:[{id:speed,duration:2147483647}]}]
Thank you for helping us improve Minecraft! We saved your files: