drill
Breaks a line of blocks in front of the player in their look direction.
Categories: world
Required arguments
| Key(s) | Description | Type |
|---|---|---|
amount | The number of blocks to break in a line. Supports expressions. | EXPRESSION |
check_hardness | If true, only blocks with hardness ≤ the trigger block are broken. | BOOLEAN |
Optional arguments
| Key(s) | Description | Type | Default |
|---|---|---|---|
disable_on_sneak | If true, the drill effect is disabled while the player is sneaking. | BOOLEAN | false |
prevent_trigger | Choices: false, true, keep_events | STRING | false |
whitelist | Only these block types will be broken by the drill. | BLOCK_LIST | |
blacklisted_blocks | These block types will never be broken by the drill. | BLOCK_LIST | |
use_blockface | BOOLEAN | false |
Trigger parameters required
PLAYER
Example
effects:
- id: drill
args:
amount: 3 + %level%
check_hardness: <value>
disable_on_sneak: true # ← Optional
prevent_trigger: false|true|keep_events # ← Optional
whitelist: <value> # ← Optional
blacklisted_blocks: <value> # ← Optional
use_blockface: true # ← Optional
Behaviour
| Setting | Value |
|---|---|
| Run order | NORMAL |
| Supports delay | true |
| Reloads on plugin reload | true |