# HarvestableClass

A script class that is instanced for every [Harvestable](../Game-Script-Environment/Userdata/Harvestable.md) in the game.

**Kind:** API page

**Environments:** Game

## Game

[Open the full Game reference](../Game-Script-Environment/Classes/HarvestableClass.md)

A tree or a plant that can be harvested is a typical case of a harvestable.

Can receive events sent with [sm.event.sendToHarvestable](../Game-Script-Environment/Static-Functions/sm.event.md#sendtoharvestable).

### Fields

| Name | Type | Description |
| --- | --- | --- |
| `harvestable` | [Harvestable](../Game-Script-Environment/Userdata/Harvestable.md) | The [Harvestable](../Game-Script-Environment/Userdata/Harvestable.md) game object belonging to this class instance. |
| `network` | [Network](../Game-Script-Environment/Userdata/Network.md) | A [Network](../Game-Script-Environment/Userdata/Network.md) object that can be used to send messages between client and server. |
| `storage` | [Storage](../Game-Script-Environment/Userdata/Storage.md) | (Server side only.) A [Storage](../Game-Script-Environment/Userdata/Storage.md) object that can be used to store data for the next time loading this object after being unloaded. |
| `data` | any | Data from the "data" json element. |
| `params` | any | Parameter sent to [sm.harvestable.create](../Game-Script-Environment/Static-Functions/sm.harvestable.md#create) or set in the terrain generation script. |
| `tags` | any | The tags set on the harvestable from the editor. |
