has-age
Check if the target block has a specify age
Condition Syntax
condition:
- id: has-age
age: 4 # Required age value to compare against (integer)
block: 'wheat' # optional, the target block material must match with this block
mode: "=" # Comparison operator for the crop/block age:
# allowed: ">", ">=", "=", "==", "<=", "<"
# Example: mode: ">=" means currentAge >= age
clamp-to-range: false # Optional (default: false).
# If true, the configured age is clamped into [0..maxAge] for that block.
# Example: maxAge=3 and age=4 -> age becomes 3
send-message: false # Optional (default: true). Send a "condition not met" message to the player
as-actionbar: false # Optional (default: false). If send-message is true, send it as an action barLast updated