# sm.harvestable.createHarvestable

Create a new harvestable

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.harvestable.createHarvestable(
    uuid,
    position,
    rotation?,
    slopeNormal?,
    world?
)
```

[Open the full Game reference](../Game-Script-Environment/Static-Functions/sm.harvestable.md#createharvestable)

**Availability:** Server only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `uuid` | [Uuid](../Game-Script-Environment/Userdata/Uuid.md) | The uuid of the harvestable. |
| `position` | [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | The harvestable's world position. |
| `rotation` *(optional)* | [Quat](../Game-Script-Environment/Userdata/Quat.md) | The harvestable's world rotation, optional uses identity rotation if nil. |
| `slopeNormal` *(optional)* | [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | The harvestable's slope normal. For "skew" and "rotate" slope settings, optional uses z axis if nil. |
| `world` *(optional)* | [World](../Game-Script-Environment/Userdata/World.md) | The world to create the harvestable in. Defaults to the world of the script. |

**Returns:**

| Type | Description |
| --- | --- |
| [Harvestable](../Game-Script-Environment/Userdata/Harvestable.md) | The created harvestable. |
