# Grass brush template configuration

The `grass.set` file, located in the `scene\set\` directory, defines patterns  used by [the **Grass** brush](https://bestway-1.gitbook.io/documentation/editor/map-editor/3-landscape-editor/grass-editor) in the Landscape Editor to generate vegetation.

Each grass pattern specifies a list of entity models and the density parameters for their placement on the ground surface. All models must be prepared in advance and placed in the `scene\entity` folder.

> **Syntax**
>
> ```
> {"pattern_name"
>     {models
>         {"entity_name" "texmod_name"}
>         {...}
>     }
>     {dencity N}
> }
> ```

<table><thead><tr><th width="169.16015625">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><code>pattern_name</code></td><td>A unique identifier for the template (template name), enclosed in double quotes. <br>The list of template names appears in <a href="../../editor/map-editor/3-landscape-editor/grass-editor#the-grass-patterns-list">the <strong>Patterns</strong> window </a>under the <strong>Grass</strong> tab of the Landscape Editor.</td></tr><tr><td><code>models</code></td><td>A block containing a list of models that will be randomly spawned on the ground surface when painting with the selected brush template. <br>For each model, specify its name in the game resources and, optionally, a texture modifier name (the texture modifier can be omitted if the model has only one texture variant).</td></tr><tr><td><code>dencity</code></td><td>A numeric parameter that determines the object spawn density per square meter. The higher the number, the denser the vegetation. <br><strong>Recommended values:</strong><br><code>0.5</code> — sparse grass<br><code>1.0</code> — medium density<br><code>2.0+</code> — densely overgrown terrain</td></tr></tbody></table>

**Example: `sunflower`** template

```
{"sunflower"
    {models
        {"sunflower_01" "green"}
        {"sunflower_02" "green"}
        {"sunflower_03" "green2"}
    }
    {dencity 1}
}
```

***

{% hint style="info" %}
[Wind behavior settings](https://bestway-1.gitbook.io/documentation/game-settings/wind-behavior-settings) for grass models
{% endhint %}
