Skip to main content

Furtuft

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

Overview

furtuft is a small, single-use item prefab that behaves as a portable fuel source and igniter, with built-in time-based decay. When dropped on the ground, it begins disappearing after a short delay using the disappears component. If picked up and placed into an inventory, the disappearance is halted until it is dropped again. It supports stacking, fuel usage, and basic burning mechanics (ignition and burn duration). This prefab is typically used as crafting material, bait, or temporary fuel in the world.

Usage example

local inst = SpawnPrefab("furtuft")
if inst then
-- Set custom fuel value if needed
inst.components.fuel.fuelvalue = TUNING.MED_FUEL
-- Manually trigger or delay disappearance
inst.components.disappears:StopDisappear()
end

Dependencies & tags

Components used: disappears, inventoryitem, stackable, fuel, inspectable, smallburnable, propagator, hauntable Tags: None explicitly added or checked in this prefab’s initialization.

Properties

PropertyTypeDefault ValueDescription
inst.components.disappears.soundstring"dontstarve/common/dust_blowaway"Sound played during disappearance.
inst.components.disappears.animstring"disappear"Animation played during disappearance.
inst.components.stackable.maxsizenumberTUNING.STACK_SIZE_SMALLITEMMaximum stack size for the item.
inst.components.fuel.fuelvaluenumberTUNING.MED_FUELFuel value when used in a fire/furnace.
inst.AnimStateAnimStateanim/bearger_tuft.zipAnimation state controller; plays "idle" by default.

Main functions

OnDropped(inst)

  • Description: Handler for the ondropped event; initiates the disappearance timer for the item.
  • Parameters: inst (Entity) — the entity that was dropped.
  • Returns: Nothing.
  • Error states: None — always proceeds if called.

OnPutInInventory(inst)

  • Description: Handler for when the item is placed into an inventory; stops the disappearance timer.
  • Parameters: inst (Entity) — the entity being placed into inventory.
  • Returns: Nothing.

Events & listeners

  • Listens to: ondropped — triggers OnDropped, which calls disappears:PrepareDisappear().
  • Pushes: None — the prefab does not fire custom events directly.
  • disappears:PrepareDisappear() — starts the decay timer.
  • disappears:StopDisappear() — cancels the decay timer (called by OnPutInInventory).
  • inventoryitem:SetOnPutInInventoryFn() — registers OnPutInInventory as the callback for inventory insertion.
  • stackable.maxsize — limits stack count to small item size.
  • fuel.fuelvalue — sets burn duration when used as fuel.