|
Mechanic: Break Block
|
|
## Description
|
|
=====================
|
|
|
|
|
|
|
|
Will break a block at the target location. This mechanic will also drop
|
|
Will break a block at the target location. This mechanic will also drop
|
|
the block (with exception of Bedrock). REQUIRES `forcesync=true`.
|
|
the block (with exception of Bedrock). REQUIRES `forcesync=true`.
|
|
|
|
|
|
Attributes
|
|
|
|
----------
|
|
|
|
|
|
|
|
| Attribute | Aliases | Description | Default Value |
|
|
## Attributes
|
|
|-----------|-----------|------------------------------------|---------------|
|
|
| Attribute | Aliases | Description | Default |
|
|
|
|
|-----------|-----------|----------------------------------------------------------------------|---------|
|
|
| doDrops | drops, d | Whether or not to drop the block/s | true |
|
|
| doDrops | drops, d | Whether or not to drop the block/s | true |
|
|
| doEffect | efffect, e | Whether or not to play the break block particles (?) | true |
|
|
| doEffect | efffect, e| Whether or not to play the break block particles | true |
|
|
| useTool | tool, t | Whether or not to use the tool in the players hands (?) | true |
|
|
| useTool | tool, t | 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
|
|
## Examples
|
|
|
|
This example would break the block at location x:100,y:64,z:100 in the
|
|
|
|
current world when right-clicked.
|
|
|
|
```yaml
|
|
|
|
Skills:
|
|
|
|
- breakblock{forcesync=true} @location{c=100,64,100} ~onInteract
|
|
|
|
```
|
|
|
|
##
|
|
|
|
### Tests
|
|
|
|
> These tests were run using /mm test cast TestingBreakBlock
|
|
|
|
|
|
1.
|
|
|
|
```yaml
|
|
```yaml
|
|
TestingBreakBlock:
|
|
TestingBreakBlock:
|
|
Skills:
|
|
Skills:
|
... | @@ -28,8 +29,7 @@ TestingBreakBlock: |
... | @@ -28,8 +29,7 @@ TestingBreakBlock: |
|
```
|
|
```
|
|
|
|
|
|
When a player calls this without a tool in there hand it does not drop a block or create the particle effects.
|
|
When a player calls this without a tool in there hand it does not drop a block or create the particle effects.
|
|
|
|
##
|
|
2.
|
|
|
|
```yaml
|
|
```yaml
|
|
TestingBreakBlock:
|
|
TestingBreakBlock:
|
|
Skills:
|
|
Skills:
|
... | @@ -38,7 +38,7 @@ TestingBreakBlock: |
... | @@ -38,7 +38,7 @@ TestingBreakBlock: |
|
|
|
|
|
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.
|
|
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.
|
|
|
|
|
|
3.
|
|
##
|
|
```yaml
|
|
```yaml
|
|
TestingBreakBlock:
|
|
TestingBreakBlock:
|
|
Skills:
|
|
Skills:
|
... | @@ -47,7 +47,7 @@ TestingBreakBlock: |
... | @@ -47,7 +47,7 @@ TestingBreakBlock: |
|
|
|
|
|
When a player calls this with a tool in their hand it drops the block and does not play the particle effects.
|
|
When a player calls this with a tool in their hand it drops the block and does not play the particle effects.
|
|
|
|
|
|
4.
|
|
##
|
|
```yaml
|
|
```yaml
|
|
TestingBreakBlock:
|
|
TestingBreakBlock:
|
|
Skills:
|
|
Skills:
|
... | @@ -56,7 +56,7 @@ TestingBreakBlock: |
... | @@ -56,7 +56,7 @@ TestingBreakBlock: |
|
|
|
|
|
When a player calls this with a tool in their hand it does not drop a block, nor does it create the particle effects.
|
|
When a player calls this with a tool in their hand it does not drop a block, nor does it create the particle effects.
|
|
|
|
|
|
5.
|
|
##
|
|
```yaml
|
|
```yaml
|
|
TestingBreakBlock:
|
|
TestingBreakBlock:
|
|
Skills:
|
|
Skills:
|
... | @@ -64,15 +64,3 @@ TestingBreakBlock: |
... | @@ -64,15 +64,3 @@ TestingBreakBlock: |
|
```
|
|
```
|
|
|
|
|
|
When a player calls this with a tool in their hand it does drop a block, and does create the particle effects. |
|
When a player calls this with a tool in their hand it does drop a block, and does create the particle effects. |
|
|
|
\ No newline at end of file |
|
|
|
|
|
--------
|
|
|
|
|
|
|
|
Examples
|
|
|
|
--------
|
|
|
|
|
|
|
|
This example would break the block at location x:100,y:64,z:100 in the
|
|
|
|
current world when right-clicked.
|
|
|
|
```yaml
|
|
|
|
Skills:
|
|
|
|
- breakblock{forcesync=true} @location{c=100,64,100} ~onInteract
|
|
|
|
``` |
|
|
|
\ No newline at end of file |
|
|