breakBlock
Breaks the block at the target location
Aliases
Configuration Fields (3)
| Name | Type | Default | Description |
|---|---|---|---|
| doDrops drops, d | boolean | true | Drops the block broken |
| doEffect effect, e | boolean | true | Plays the block break effect |
| useTool tool, t | boolean | true | Whether 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
