mojira.dev
MC-251036

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

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.

Linked issues

Attachments

Comments

aceplante

Whats the issue?

muzikbike

Fixed in 22w46a as per MC-121865

migrated

It should just be resolved as duplicate, as you reported the exact same thing: "*:* is misleading/not accurate"

Arisa Bot

Thank you for your report!
We're tracking this issue in MC-121865, so this ticket is being resolved and linked as a duplicate.

If you would like to add a vote and any extra information to the main ticket it would be appreciated.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.

muzikbike

(Unassigned)

Unconfirmed

(Unassigned)

1.18.2, 22w17a

Retrieved