Conditions (Nexus Condition API) are a powerful, config-driven system for evaluating states and rules across our plugin suite. You can define unlimited conditions in any supported configuration section—anywhere conditions are supported or required. Conditions are typically used to control logic (e.g., whether something is allowed to run, whether an event is valid, or which path/option should be selected) and can be evaluated individually or combined for more complex checks.
Conditions can also be paired with requirements to enforce additional prerequisites and provide clear feedback on why a check failed.
Here’s an example configuration that includes conditions
conditions:
- id: above-block
block: 'air' # block above the target location (at y + offset) that MUST match (whitelist)
# alternatively use not-block to require that a certain block is NOT above
target-block: 'sand' # block at the target location that MUST match
offset: 1 # Y offset from the target location (default: 1)
send-message: false # optional: send a "condition not met" message (default: true)
as-actionbar: false # optional: send message as action bar (default: false)