Skip to content

Conditions

apace100 edited this page Oct 17, 2020 · 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 players, blocks or items:

However, you are always able to use two special conditions: origins:and and origins:or. They 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.

Additionally, every condition supports a single 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