updated layout and informations authored by Lxlp's avatar Lxlp
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 |
|-----------|-----------|------------------------------------|---------------|
| 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 |
| 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
---------- ## Attributes
Notes: | Attribute | Aliases | Description | Default |
|-----------|-----------|----------------------------------------------------------------------|---------|
| 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 |
| useTool | tool, t | Whether or not to use the tool in the players hands | true |
These tests were run using /mm test cast TestingBreakBlock
1. ## 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
```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,23 +56,11 @@ TestingBreakBlock: ...@@ -56,23 +56,11 @@ 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:
- breakblock{forcesync=true;doEffect=true;doDrops=true;useTool=true} @origin - 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. 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