Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-266100

Potion effect duration UI does not work as expected with non-default tick rate

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 23w43a, 23w44a, 23w45a, 1.20.3 Pre-Release 1, 1.20.3 Pre-Release 2, 1.20.4 Release Candidate 1, 1.20.4, 24w13a, 1.20.5 Release Candidate 2, 1.20.5 Release Candidate 3, 1.21.1
    • None
    • Confirmed
    • Commands, UI
    • Low
    • Platform

      The bug

      When setting the tick rate to a value higher than 20 ticks per second, the potion effect duration value in the UI is not updated correctly.
      This also affects values that are significantly lower than default (for example, 1 tick per second).

      To reproduce

      1. /tick rate 100
      2. Give yourself a potion of Regeneration (which has a default duration of 45 seconds) and drink it.

      Observed result

      (Until 1.20.3 Pre-release 2)

      1. The duration ticks down normally to about 42 seconds.
      2. The duration suddenly ticks down extremely quickly to 29 seconds.
      3. The duration keeps ticking down normally until 24 seconds, and then it disappears.

      (After 1.20.3 Pre-release 2)

      1. The duration ticks down normally to 8 seconds.
      2. The duration is frozen and then ticks down extremely quickly to 5 seconds.
      3. The duration is frozen, ticks down to 4 seconds, and then it disappears.

      Expected result

      The time would be ticked down smoothly.

        1. MC-266100.mp4
          4.46 MB
          [Mod] ampolive

            dinnerbone [Mojang] Nathan Adams
            ampolive [Mod] ampolive
            Votes:
            7 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              CHK: