> For the complete documentation index, see [llms.txt](https://cjcrafter.gitbook.io/weaponmechanics/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cjcrafter.gitbook.io/weaponmechanics/weapon-modules/projectile/sticky.md).

# Sticky

Create sticky bombs and let projectiles stick to walls/entities

```yaml
    Sticky:
      Blocks:
        Allow_Any: <true/false>
        Whitelist: <true/false>
        List:
          - <Material>
          - <etc.>
      Entities:
        Allow_Any: <true/false>
        Whitelist: <true/false>
        List:
          - <EntityType>
          - <etc.>
```

#### Blocks

* `Allow_Any`
  * If this is true then the projectile can stick to all blocks.
  * This overrides `Whitelist` and `List`.
* `Whitelist`
  * Whether the use `List` as whitelist or blacklist.
  * `True` = only blocks listed in `List` can be stuck to.
* `List`
  * Material list of stickable/unstickable blocks depending on `Whitelist`.
  * Use the [References](https://cjcrafter.gitbook.io/core/references#material) list for materials for your version.

#### Entities

* `Allow_Any`
  * If this is true then all entities are stickable.
  * This overrides `Whitelist` and `List`.
* `Whitelist`
  * Whether the use `List` as whitelist or blacklist.
  * `True` = only entities listed in `List` can be sticked to.
* `List`
  * Entity list of stickable/unstickable entities depending on `Whitelist`.
  * Use the [References](https://cjcrafter.gitbook.io/core/references#entity) list for entities for your version.
