Agricultural Harvest Action
Type:agricultural_harvest_action
Optimized action for harvesting crops in an area-of-effect, replanting immediately, and merging item drops.
Configuration
| Field | Type | Default | Description |
|---|---|---|---|
id | String | "" | Unique identifier for this entry |
name | String | "" | Name for this entry |
criteria | List<Criteria> | [] | Criteria that must be met for execution |
modifiers | List<Modifier> | [] | Modifiers to apply to execution |
triggers | List<Ref<TriggerableEntry>> | [] | Triggers to execute upon completion |
radius | Int | 1 | Radius on the X and Z axis to harvest (e.g. 1 for a 3x3 area) |
autoReplant | Boolean | true | Should crops be automatically replanted (set age to 0)? |
Example
Behavior
- Only harvests fully-grown crops (
Ageablewithage == maximumAge) - Drops are merged by material type to reduce entity count
- When
autoReplantis enabled, crops are immediately set to age 0 (no physics) - Plays block break particles at the center of the harvested area
- Designed to be triggered via
EnchantmentEvent.BLOCK_BREAK