Skip to content

Conditions

apace100 edited this page Mar 10, 2021 · 9 revisions

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:

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.

Clone this wiki locally