Skip to content

OR Condition

apace100 edited this page Nov 2, 2020 · 1 revision

Usable as any condition. Checks whether the one or more of the provided conditions are fulfilled.

Type ID: origins:or

Fields:

conditions, array of Conditions of the same type: Any of these (= one or more!) needs to evaluate to true in order for the whole condition to be true.

Example:

"condition": {
  "type": "origins:or",
  "conditions": [
    {
      "type": "origins:status_effect",
      "effect": "minecraft:poison"
    },
    {    
      "type": "origins:status_effect",
      "effect": "minecraft:wither"
    }
  ]
}

This condition added to a power activates the power whenever the player is suffering from poison or wither.

Clone this wiki locally