Skip to content

Support infinite duration for the /potion command #5558

@RulerOfEternity

Description

@RulerOfEternity

Type of bug

Other unexpected behaviour

/ess dump all output

https://hasteb.in/pYVG3QtNU4Ka9eF

Error log (if applicable)

No response

Bug description

Attempting to use /potion with a duration of -1 (infinite duration) doesn't work, it produces a potion and the effect of which runs out instantly, this isn't how it normally works with potions when you use for instance /give (/minecraft:give @p potion{display:{Name:'[{"text":"Potion"}]'},custom_potion_effects:[{id:speed,duration:-1,amplifier:1}]}

Steps to reproduce

Use for example /potion effect:glowing power:4 duration:-1

Expected behaviour

An infinite duration potion should be produced, photo example:
2023-10-28_00 35 35

Actual behaviour

The potion runs out instantly, photo example:
2023-10-28_00 39 26

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug: confirmedConfirmed bugs in EssentialsX.module: mainIssues or PRs for the main Essentials module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions