Moontree Blossom
Based on game build 714014 | Last updated: 2026-03-06
Overview
moontree_blossom is a consumable food item and stackable inventory object used for healing, crafting, or decoration. It can be placed in a vase or carried by a cat as a toy. When held in an inventory slot, it begins perishing; it can also be dried on a meat rack to produce moon_tree_blossom_dried. The prefab includes two variants: the standard moon_tree_blossom (inventory/dried state) and moon_tree_blossom_worldgen (stationary ground version used in world generation).
Usage example
local inst = SpawnPrefab("moon_tree_blossom")
inst.components.edible.healthvalue = TUNING.HEALING_TINY
inst.components.perishable:StopPerishing() -- for custom behavior
inst.components.dryable:SetProduct("custom_dried_item") -- override drying output
Dependencies & tags
Components used: inventoryitem, tradable, vasedecoration, stackable, edible, perishable, dryable, inspectable, hauntable, propagator, burnable.
Tags: cattoy, vasedecoration, dryable.
Properties
No public properties initialized in the constructor. All configuration occurs through component APIs.
Main functions
No public methods are defined in this file. All functionality is delegated to attached components.
Events & listeners
- Listens to: None directly (event handling is managed via component callbacks).
- Pushes: None directly (events are emitted by component callbacks, e.g.,
onperishfromperishable).