mine_vein
Mines an entire connected vein of the same block type up to a configurable limit.
Categories: world
Required arguments
| Key(s) | Description | Type |
|---|---|---|
limit | The maximum number of connected blocks to break in one vein. Supports expressions. | EXPRESSION |
Optional arguments
| Key(s) | Description | Type | Default |
|---|---|---|---|
blocks | A list of block types to consider part of the vein. Defaults to the same type as the mined block. | BLOCK_LIST | [] |
prevent_trigger | Choices: false, true, keep_events | STRING | false |
disable_on_sneak | Whether to disable vein mining when the player is sneaking. | BOOLEAN | false |
filters | A standard filters block restricting which blocks in the vein are broken. Each block in the vein is tested against these filters, and only the blocks that pass are broken. | ANY |
Trigger parameters required
PLAYER
Example
effects:
- id: mine_vein
args:
limit: 10 + %level%
blocks: <value> # ← Optional
prevent_trigger: false|true|keep_events # ← Optional
disable_on_sneak: true # ← Optional
filters: # ← Optional
key: <value>
Behaviour
| Setting | Value |
|---|---|
| Run order | NORMAL |
| Supports delay | true |
| Reloads on plugin reload | true |