Skip to main content

Tillweed

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

Overview

Tillweed is a player-held inventory item representing a raw vegetable that spoils quickly over time. It is edible (providing minor healing) and can be dried using the dryable component, which transforms it into tillweed_dried. As part of DST’s crafting system, it supports stacking, fuel usage, and hauntable conversion.

Usage example

local inst = SpawnPrefab("tillweed")
inst.components.edible.healthvalue = 10
inst.components.perishable:SetPerishTime(TUNING.PERISH_FAST)
inst.components.perishable:StartPerishing()
inst.components.perishable.onperishreplacement = "spoiled_food"
inst.components.dryable:SetProduct("tillweed_dried")
inst.components.dryable:SetDryTime(TUNING.DRY_FAST)

Dependencies & tags

Components used: inventoryitem, stackable, edible, inspectable, tradable, fuel, perishable, dryable, smallburnable, smallpropagator
Tags: Adds cattoy, dryable, vegetable (via edible.foodtype = FOODTYPE.VEGGIE), hauntable

Properties

PropertyTypeDefault ValueDescription
animbankstring"tillweed"Animation bank used for rendering.
animbuildstring"tillweed"Build file name for the idle animation.
stackable.maxsizenumberTUNING.STACK_SIZE_SMALLITEMMaximum stack size for this item.
edible.foodtypeFOODTYPEFOODTYPE.VEGGIEFood classification used by the game.
edible.healthvaluenumberTUNING.HEALING_TINYHealth restored when eaten.
edible.hungervaluenumber0Hunger restored when eaten (none).
fuel.fuelvaluenumberTUNING.TINY_FUELFuel value when burned.
perishable.perishtimenumberTUNING.PERISH_FASTTime (in seconds) before the item spoils.
perishable.onperishreplacementstring"spoiled_food"Prefab name to spawn on spoilage.
dryable.productstring"tillweed_dried"Name of the dried item.
dryable.drytimenumberTUNING.DRY_FASTTime (in seconds) required to dry.
dryable.buildfilestring"meat_rack_food_petals"Animation build for dried state.

Main functions

Not applicable.

Events & listeners

  • Listens to: None identified.
  • Pushes: None identified.