🔀Logical and Random Conditions
Last updated
Every registered condition on this page is documented as an independent reference entry. All entries also support the common condition fields documented on the Power Conditions page.
any
not
random
anyPurpose: Matches when at least one nested typed condition matches.
Context: Nested conditions reuse the same PowerContext; the nested mapping is evaluated as logical OR.
conditions
required
Nested condition entries. Each child keeps its own type, selectors, and fields.
type: any
conditions:
wet:
type: in_water
target: SOURCE
raining:
type: in_rain
target: SOURCEA missing nested section is treated as an allowed group by the condition manager, so avoid an empty conditions section.
The common not: true field inverts the final OR result.
notPurpose: Matches when a nested logical-AND condition group does not fully match.
Context: Nested conditions reuse the same PowerContext and are evaluated using the normal all-must-pass rule before inversion.
conditions
required
Nested typed conditions evaluated as logical AND.
For one child, the child condition's common not: true field is usually shorter.
Applying both type: not and common not: true inverts twice.
randomPurpose: Performs a fresh probability roll.
Context: No entity, event, block, or item context is required.
value
1
Probability from 0 to 1; values are clamped to that range.
Every evaluation rolls independently.
This is separate from power-, modifier-, and ability-level random fields.
Last updated
type: not
conditions:
in-lava:
type: in_lava
target: SOURCE
burning:
type: has_potion
target: SOURCE
potion: minecraft:fire_resistancetype: random
value: 0.25