# World.setTerrainScriptData

Set data to pass on to the terrain generation script. If no data is set the terrain generation script receives the same data as the world script.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
world:setTerrainScriptData( data )
```

[Open the full Game reference](../Game-Script-Environment/Userdata/World.md#setterrainscriptdata)

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `world` | [World](../Game-Script-Environment/Userdata/World.md) | The world. |
| `data` | any | Any data, available to the terrain generation script as parameter 6 in the create callback. |
