Mechanic

breakBlock

Breaks the block at the target location

Aliases

blockBreak

Configuration Fields (3)

NameTypeDefaultDescription
doDrops
drops, d
booleantrueDrops the block broken
doEffect
effect, e
booleantruePlays the block break effect
useTool
tool, t
booleantrueWhether to use the tool in the player's hand

Examples & Notes

Examples

This example would break the block at location x:100,y:64,z:100 in the current world when right-clicked.

Skills:
  - breakblock{forcesync=true} @location{c=100,64,100} ~onInteract

Tests

These tests were run using /mm test cast TestingBreakBlock

TestingBreakBlock:
  Skills:
  - breakblock{forcesync=true;doEffect=true;doDrops=true;useTool=true} @origin

When a player calls this without a tool in there hand it does not drop a block or create the particle effects.

TestingBreakBlock:
  Skills:
  - breakblock{forcesync=true;doEffect=true;doDrops=true;useTool=false} @origin

When a player calls this without a tool in there hand it does drop the block, but does not create the particle effects. The same is true if setting doEffect to false.

TestingBreakBlock:
  Skills:
  - breakblock{forcesync=true;doEffect=false;doDrops=true;useTool=true} @origin

When a player calls this with a tool in their hand it drops the block and does not play the particle effects.

TestingBreakBlock:
  Skills:
  - breakblock{forcesync=true;doEffect=true;doDrops=false;useTool=true} @origin

When a player calls this with a tool in their hand it does not drop a block, nor does it create the particle effects.

TestingBreakBlock:
  Skills:
  - breakblock{forcesync=true;doEffect=true;doDrops=true;useTool=true} @origin

When a player calls this with a tool in their hand it does drop a block, and does create the particle effects.

Universal Mechanic Options

Author:
Ashijin
Community-maintained documentation for the Mythic plugin ecosystem.