Conditions - apace100/origins-fabric GitHub Wiki
Conditions are Origins' main way of defining more complex functionality of powers in the new data-driven system (v0.4.0 or higher).
They are grouped by the type of object they act on, such as living beings, blocks or items:
- Entity Condition (List of entity conditions)
- Block Condition (List of block conditions)
- Item Condition (List of item conditions)
- Damage Condition (List of damage conditions)
- Fluid Condition (List of fluid conditions)
- Biome Condition (List of biome conditions)
However, you are always able to use three special conditions: origins:and
, origins:or
and origins:constant
. The first two take in an array of other conditions of the required type and combine them via the logical operator and
and or
, respectively. See AND Condition and OR Condition for details. The last one just takes a single boolean value
and will always return that as a result.
Additionally, every condition supports this field, independent of type:
inverted
, boolean, default = false: If set to true, Origins will instead check that this condition is NOT fulfilled.