Skip to content

Lower-level potion effects are incorrectly discarded if a higher-level effect is active first #13172

@TehManu

Description

@TehManu

Expected behavior

Having an active effect that has an higher amplifier and consuming the same effect with an lower amplifier should store the lower one as hidden effect to start ticking it later after the higher one expired.

Observed/Actual behavior

The lower amplifier effect gets cleared and never starts ticking after the higher one is expired.

Steps/models to reproduce

  1. Trigger the "Totem of Undying" wich gives 5 seconds of absorption 2.
  2. Immediately after that, consume a golden apple.
  3. When the absorption effect from the totem of undying expires the golden apple effect doesn't start ticking.

Example regeneration and /effect command:

  1. First get an regeneration potion
  2. Apply the following effect with /effect give minecraft:regeneration 30 2
  3. Immediately consume the regeneration potion
  4. After the regeneration 2 effect expires the potion effect doesn't start.

Plugin and Datapack List

Paper version

Image

Other

Status effects from consumed items (such as potions or golden apples) are incorrectly discarded if a higher-level version of the same effect is already active (e.g. via /effect or a Totem of Undying). Once the higher-level effect expires, the lower-level effect never starts – despite this being the expected behavior in vanilla Minecraft.

This differs from vanilla, where if two effects of the same type but different levels are applied, the stronger one takes precedence until it expires, and then the weaker one begins.

I don't know if this is the correct way to fix it but maybe it gives an idea of what is wrong gommehdnet/cheetah@8889880

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope: paritystatus: acceptedDisputed bug is accepted as valid or Feature accepted as desired to be added.version: 1.21.10Game version 1.21.10

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions