# Harvestable.materialId

Returns the material id of a harvestable.

**Kind:** Member

**Environments:** Game

## Game

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

### Get

Returns the material id of a harvestable.

**Returns:**

| Type | Description |
| --- | --- |
| integer | The id of the material. |
