Skip to main content

Cutreeds

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

Overview

The cutreeds prefab represents a common plant-based resource collected from the environment, primarily used as animal food (especially for Beefalo), fuel, and minor healing when consumed raw. It is implemented as a standard inventory item with attached stackable, edible, and fuel components. It integrates with the game's burning, floatable, and hauntable systems to support gameplay mechanics like fire maintenance and沼泽 hazard mitigation.

Usage example

local inst = SpawnPrefab("cutreeds")
inst.components.stackable:DoRefill() -- Ensures stack is full
inst.components.edible:GiveFood("player")
inst.components.fuel:Ignite(2) -- Ignites with duration modifier

Dependencies & tags

Components used: stackable, edible, fuel, inspectable, inventoryitem
Tags: None identified.

Properties

PropertyTypeDefault ValueDescription
pickupsoundstring"vegetation_grassy"Sound played when the item is picked up.
stackable.maxsizenumberTUNING.STACK_SIZE_SMALLITEMMaximum stack size for this item.
edible.foodtypeFOODTYPEFOODTYPE.ROUGHAGEClassification for consumption by specific creatures.
edible.healthvaluenumberTUNING.HEALING_TINYHealth restored per consumption.
edible.hungervaluenumberTUNING.CALORIES_TINY / 2Hunger restored per consumption.
fuel.fuelvaluenumberTUNING.SMALL_FUELBase duration the item burns in fireplaces/forges.

Main functions

Not applicable — No custom methods are defined; behavior is delegated entirely to attached components (edible, fuel, stackable, etc.) and utility functions (MakeSmallBurnable, MakeSmallPropagator, etc.).

Events & listeners

Not applicable — No direct event listening or pushing is implemented in this prefab's constructor.