|
Mechanic: breakBlockAndGiveItem
|
|
## Description
|
|
===================================
|
|
|
|
|
|
|
|
Breaks the block at a target location and gives item(s). This mechanic will also drop the block (with exception of Bedrock). REQUIRES `forcesync=true`.
|
|
Breaks the block at a target location and gives item(s). This mechanic will also drop the block (with exception of Bedrock). REQUIRES `forcesync=true`.
|
|
|
|
|
|
Attributes
|
|
|
|
--------------
|
|
## Attributes
|
|
| Attribute | Aliases | Description | Default Value |
|
|
| 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 | effect, e | Whether or not to play the break block particles (?) | true |
|
|
| doeffect | effect, 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 |
|
|
| fakelooting | fl | Plays the pickup-item animation from the origin | false |
|
|
| doFakeLooting | doFakeLooting, fl | Plays the pickup-item animation from the origin | false |
|
|
| items | item, i | An array of item materials, or droptables. | |
|
|
| items | item, i | An array of item materials, or droptables. | |
|
|
|
|
|
|
|
|
|
|
Examples
|
|
## Examples
|
|
--------
|
|
|
|
|
|
|
|
Using Crucible Items:
|
|
Using Crucible Items:
|
|
|
|
|
|
Instead of dropping dirt, it'll instead give diamonds to the player.
|
|
Instead of dropping dirt, it'll instead give diamonds to the player.
|
... | @@ -35,3 +31,7 @@ dirtToDiamonds: |
... | @@ -35,3 +31,7 @@ dirtToDiamonds: |
|
Skills:
|
|
Skills:
|
|
- breakBlockAndGiveItem{dodrops=false;items=diamond}
|
|
- breakBlockAndGiveItem{dodrops=false;items=diamond}
|
|
```
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
## Aliases
|
|
|
|
- [x] blockBreakAndGiveItem |
|
|
|
\ No newline at end of file |