Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add item action/condition types related to item cooldowns #219

Merged
merged 2 commits into from
May 30, 2024

Conversation

eggohito
Copy link
Collaborator

This PR adds an item action type, and two item condition types, related to modifying and checking the (absolute or relative) cooldown of an item stack respectively:


The modify_item_cooldown item action type modifies the cooldown duration of the item stack. It accepts these fields:

Field Type Default Description
modifier Modifier optional If specified, this modifier will be applied to the cooldown duration of the item stack.
modifiers Array of Modifiers optional If specified, these modifiers will be applied to the cooldown duration of the item stack.

The item_cooldown item condition type compares the cooldown duration of the item stack. It accepts these fields:

Field Type Default Description
comparison Comparison Determines how the cooldown duration of the item stack should be compared to the specified value.
compare_to Integer The value at which the cooldown duration of the item stack will be compared to.

The relative_item_cooldown item condition type compares the cooldown duration percentage of the item stack (a value ranging from 0.0 (0%) to 1.0 (100%).) It accepts these fields:

Field Type Default Description
comparison Comparison Determines how the cooldown duration percentage of the item stack should be compared to the specified value.
compare_to Float The value at which the cooldown duration percentage of the item stack will be compared to.

@eggohito eggohito added the enhancement New feature or request label Apr 29, 2024
@eggohito eggohito added this to the 2.12.x milestone Apr 29, 2024
@eggohito eggohito changed the base branch from 1.20 to 1.20.4/dev May 17, 2024 04:38
@eggohito eggohito added the to merge This will be merged soon label May 19, 2024
@eggohito eggohito merged commit 8f150f5 into 1.20.4/dev May 30, 2024
@eggohito eggohito deleted the feat/types/item_cooldown branch May 30, 2024 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request to merge This will be merged soon
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant