Conditional Item Properties
This page lists all custom conditional item properties that are added ontop of the vanilla ones.
All/And (catharsis:all)
Check if a list of conditions are true, useful for chaining conditions.
additional fields:
- conditions: a list of conditions to check through.
Any/Or (catharsis:any)
Check if any in list of conditions are true, useful for chaining conditions.
additional fields:
- conditions: a list of conditions to check through.
Data Type (catharsis:data_type)
Check against a specific boolean data type.
additional fields:
- data_type: defines the data type to use. all supported types
Has Data Type (catharsis:is_data_type_present)
Returns true if the item has a specified data type.
additional fields:
- data_type: defines the data type to use. all supported types
Has Gemstones (catharsis:has_gemstones)
Returns true if the item has specified amount of gemstones.
additional fields:
- amount: the amount of gemstones to check for.
- slot: Optional. The slot the gemstones can fit it, by default will act as universal slot.
- quality: Optional. The quality of the gemstones, by default any quality is accepted.
In Area (catharsis:in_area)
Returns true if the player is in the specified area.
additional fields:
- area: The id of the area as defined here
Timespan (catharsis:timespan)
Returns true if a certain timespan is true.
additional fields:
- timespan: The identifier of the timespan to check.
Is Hovered (catharsis:hovered)
Returns true if the item is hovered.
Has Pet Skin (catharsis:has_pet_skin)
Returns true if the pet has a skin applied.
Enchantment (catharsis:enchantment) Since 1.0.0-beta.16
Returns true if the item has the specified enchantment at a matching level or within a matching level range.
additional fields:
- enchant_name: The identifier of the enchantment to check for.
- enchant_lvl: The level requirement. Can be a single integer or an inclusive range object.
- An int of the exact enchantment level required.
- An object with the following fields specifying an inclusive range of enchantment levels required.
- min_inclusive: The minimum level required (inclusive).
- max_inclusive: The maximum level required (inclusive).