> ## Documentation Index
> Fetch the complete documentation index at: https://docs.znproject.my.id/llms.txt
> Use this file to discover all available pages before exploring further.

# Generator event

> Choose whether CCBG generates a replacement block when a generator block is destroyed or moved by a player, explosion, or piston.

Enable or disable generator behavior when a block is destroyed or moved by a player, explosion, or piston. Set each option to `true` or `false`, without quotation marks.

```javascript theme={null}
config.player = true
config.explosion = true
config.piston = true
```

For example, disable generation when the generator block is destroyed by an explosion:

```javascript theme={null}
config.explosion = false
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.