Mechanic: Break Block
Will break a block at the target location. This mechanic will also drop
the block (with exception of Bedrock). REQUIRES forcesync=true
.
Attributes
Attribute | Aliases | Description | Default Value |
---|---|---|---|
doDrops | Whether or not to drop the block/s | true | |
doEffect | Whether or not to play the break block particles (?) | true | |
useTool | Whether or not to use the tool in the players hands (?) | true |
doDrops, doEffect, and useTool were all added in 4.12 MM
Notes:
These tests were run using /mm test cast TestingBreakBlock
TestingBreakBlock:
Skills:
- breakblock{forcesync=true;doEffect=true;doDrops=true;useTool=true} @targetlocation
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} @targetlocation
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} @targetlocation
When a player calls this with a tool in their hand it drops the block and does not player the particle effects.
TestingBreakBlock:
Skills:
- breakblock{forcesync=true;doEffect=true;doDrops=false;useTool=true} @targetlocation
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} @targetlocation
When a player calls this with a tool in their hand it does drop a block, and does create the particle effects.
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
- ...