Skip to main content

Plantable

Based on game build 714014 | Last updated: 2026-03-03

Overview

Plantable is a minimal component that stores initial growth configuration for plant prefabs. It defines how long a plant takes to mature (growtime) and what item it produces when fully grown (product). This component does not implement growth logic itself but serves as a data container for higher-level systems (e.g., grower, farmplot, or custom worldgen logic) to read and act upon.

Usage example

local inst = CreateEntity()
inst:AddComponent("plantable")
inst.components.plantable.growtime = 180
inst.components.plantable.product = "turnip_seeds"

Dependencies & tags

Components used: None identified
Tags: None identified

Properties

PropertyTypeDefault ValueDescription
growtimenumber120Time in seconds required for the plant to fully grow.
productstring or nilnilPrefab name of the item produced upon maturation.

Main functions

Not applicable.

Events & listeners

None identified.