# sm.harvestable.getAllHarvestables

Returns a table with all the harvestables in the world.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.harvestable.getAllHarvestables( world? )
```

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

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `world` *(optional)* | [World](../Game-Script-Environment/Userdata/World.md) | The world, will default to the script's world. (optional) |

**Returns:**

| Type | Description |
| --- | --- |
| table | The table of all harvestables. \{[Harvestable](../Game-Script-Environment/Userdata/Harvestable.md), ..\} |
