> For the complete documentation index, see [llms.txt](https://nexoaddon.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nexoaddon.gitbook.io/docs/mechanics/bedrockbreak.md).

# BedrockBreak

BedrockBreak mechanic.

The BedrockBreak Mechanic allows players to break bedrock blocks with specified tools

<figure><img src="https://4179595020-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCKPUSq10oq4Caxl6Izvn%2Fuploads%2Fgit-blob-d92a343611bd19064346c6e4114e87ea087645ae%2Fbedrockbreak.gif?alt=media" alt="" width="640"><figcaption></figcaption></figure>

{% hint style="danger" %}
**For this Mechanic** [**PacketEvents**](https://www.spigotmc.org/resources/packetevents-api.80279/) **is required!**
{% endhint %}

### Looooooooong Bedrock Break

```yaml
# Example

Mechanics:
  bedrockbreak:
    hardness: 60               # How long should be breaking
    probability: 1             # Chance to drop Bedrock
    durability_cost: 1         # Cost of durability
```

### Break Bedrock, but at what cost 😢 (break item on bedrock break)

```yaml
# Example

Mechanics:
  bedrockbreak:
    hardness: 50
    probability: 0.5                      
    durability_cost: 999999999            # Probably will destroy every created item
    disable_on_first_layer: true          # Default on true
```

### Beyond the world! (Break bottom/last layer of the world)

```yaml
# Example

Mechanics:
  bedrockbreak:
    hardness: 1                           # Fast digging
    probability: 0.5                      
    durability_cost: 1
    disable_on_first_layer: false         # Allow to break last layer of the bedrock
```

### Custom break sound

```yaml
# Example

Mechanics:
  bedrockbreak:
    hardness: 60
    probability: 1
    durability_cost: 1
    sound: block.stone.break              # Sound played when the block breaks, defaults to block.stone.break.
                                          # Accepts a namespaced key (e.g. minecraft:block.stone.break or namespace:key).
```
