Skip to content

Improvements to PotionType + PotionData #5366

@Owen1212055

Description

@Owen1212055

Currently retrieving potion effects is quite limiting and a hassle to deal with. It seems like what is currently in place does not support the modern-day potions that we have. For example, there are potion types that now can contain multiple effects. (See, turtle master potion)

It is also not very easy to get the duration/amplifier of potions without dealing with "extended" and "upgraded".
image

Is your feature request related to a problem? Please describe.
No

Describe the solution you'd like

  • An easy way to get List<PotionEffect> from PotionData. This would take into account extended + upgraded and give the corresponding effects. So potions like turtle master would return two effects.
  • Adding support for multiple potion effect types from PotionType. Currently certain potions can have multiple effects on them by default, for example the turtle master potion. The system currently in place does not support this, as it only displays the slowness effect instead.
    image

Describe alternatives you've considered
There really aren't any very easy alternatives that work nicely. You would need to store all of this yourself, so instead, I just use NMS to deal with this. However, it would be great if this could be officially supported because I feel that others may benefit from this as well.

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: acceptedDisputed bug is accepted as valid or Feature accepted as desired to be added.type: featureRequest for a new Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions