mojira.dev
MC-121865

High potion effect durations being displayed as **:** is misleading

The bug

When a potion effect has a duration equal to or higher than 1639, its duration is displayed as "**:**", see also MC-18836.

This implies that the potion effect lasts forever, but this is not the case. However, because of MC-44936 the client will not notice when the duration becomes lower than 1639.

Important: If this report is considered invalid, the field net.minecraft.potion.PotionEffect.isPotionDurationMax should be set to false by the method net.minecraft.potion.PotionEffect.deincrementDuration() if the value is below 1639.

How to reproduce

  1. Use the following command

    /effect give @s speed 1639

    → ❌ The duration is displayed as "**:**"

  2. Reopen the world
    → ✔ The actual duration is displayed and is decreasing

Linked issues

Attachments

Comments

Colin Block

I don't believe this is a bug. I just checked the wiki and here is a caption from the Behavior section:
Note that even with commands, effects cannot be made to last forever. If an effect is set to an excessively large amount of time, such as 182 hours [655200 seconds], it will display as "*:*", but will still continue ticking down and eventually expire.
I believe this is implemented just to show that the timer is very high and may never be reached.

user-f2760

That doesn’t make it any less misleading; also note that the wiki is not an official source.

Avoma

Can confirm in 20w48a.

Avoma

Can confirm in 20w51a.

Avoma

Can confirm in 21w03a.

Avoma

Can confirm in 21w05b.

Avoma

Can confirm in 21w06a.

Avoma

Can confirm in 21w16a.

TheXug

confirm in 1.17.1

Avoma

Can confirm in 1.18.1.

Avoma

Can confirm in 1.18.2.

Avoma

Can confirm in 1.19.

[media][media]
Avoma

Can confirm in 1.19.2.

marcono1234

(Unassigned)

Confirmed

UI

effect, effect-duration

Minecraft 1.12.2, Minecraft 17w45b, Minecraft 18w03b, Minecraft 18w16a, Minecraft 1.13-pre3, ..., 21w44a, 1.18.1, 1.18.2, 1.19, 1.19.2

22w46a

Retrieved