mine_vein

Mines an entire connected vein of the same block type up to a configurable limit.

Categories: world

Required arguments

Key(s)DescriptionType
limitThe maximum number of connected blocks to break in one vein. Supports expressions.EXPRESSION

Optional arguments

Key(s)DescriptionTypeDefault
blocksA 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
STRINGfalse
disable_on_sneakWhether to disable vein mining when the player is sneaking.BOOLEANfalse
filtersA 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

SettingValue
Run orderNORMAL
Supports delaytrue
Reloads on plugin reloadtrue