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_triggerWhether to prevent the vein blocks from re-triggering this effect.BOOLEANfalse
disable_on_sneakWhether to disable vein mining when the player is sneaking.BOOLEANfalse

Trigger parameters required

  • PLAYER

Example

effects:
  - id: mine_vein
    args:
      limit: 10 + %level%
      blocks: <value> # ← Optional
      prevent_trigger: true # ← Optional
      disable_on_sneak: true # ← Optional

Behaviour

SettingValue
Run orderNORMAL
Supports delaytrue
Reloads on plugin reloadtrue