Mojira Archive
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.

Duplicate

Connor Steppie

2022-04-28, 01:19 PM

2022-12-08, 03:11 PM

2022-12-08, 03:06 PM

0

3

Unconfirmed

(Unassigned)

1.18.2, 22w17a

-