AND Condition - apace100/origins-fabric GitHub Wiki
Usable as any condition. Checks whether the all of the provided conditions are fulfilled.
Type ID: origins:and
Fields:
conditions
, array of Conditions of the same type: All of these need to evaluate to true
in order for the whole condition to be true
.
Example:
"condition": {
"type": "origins:and",
"conditions": [
{
"type": "origins:daytime"
},
{
"type": "origins:invisible"
}
]
}
This condition added to a power will make sure the power is only active when it is both day and the player is invisible.