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

Potion durations in item tooltips are not displayed as **:** if duration is sufficiently long

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.18.2, 22w17a
    • None
    • Unconfirmed
    • (Unassigned)

      The bug

      If a player has a potion with a sufficiently long effect duration, the exact length of that potion is displayed in the item's tooltip. This is inconsistent with the inventory UI, in which the potion's length is replaced with

      **:**

      if the length is long enough, which is designed to make it impossible for the player to see the effect's actual length.

      How to reproduce

      1. Give yourself a potion using the following command:
        /give @p minecraft:potion{Potion:"minecraft:water",CustomPotionEffects:[{Id:3,Duration:32900}]}
      2. Observe the item's tooltip
      3. Drink the potion
      4. Check the duration of the effect

      Expected results

      The item's tooltip would display as

      **:**

      as to make it impossible for the player to know the actual duration of the effect and make it as confusing as possible, like is done in the inventory screen.

      Actual results

      The item tooltip reveals the true duration of the effect, allowing the player to know how long it actually lasts for.

      How to fix

      Instead of making the potion tooltip hide the duration, it'd be much better if this

      **:**

      nonsense was done away with entirely. All it does is cause completely unnecessary confusion, especially with Bad Omen. In addition, this thing's existence causes a disparity with Bedrock Edition, which doesn't have this needless obfuscation in the first place.

        1. 2022-04-28_14.11.57.png
          264 kB
          Connor Steppie
        2. 2022-04-28_14.12.02.png
          260 kB
          Connor Steppie

            Unassigned Unassigned
            Awesoman3000 Connor Steppie
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: