Skip to main content

Nitre

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

Overview​

nitre is a world-level item prefab used as a small elemental resource in DST. It functions as fuel (chemical type), edible food (elemental + nitre subtype), bait for moles, and smashable debris. It is stackable and tradable, and is sinkable in water due to its inventoryitem configuration.

Usage example​

-- Spawn a single Nitre at world coordinates
local item = Prefab("nitre", fn, assets)()
-- Alternatively, via SpawnPrefab
local nitre = SpawnPrefab("nitre")
nitre.Transform:SetPosition(x, y, z)

Dependencies & tags​

Components used: edible, tradable, stackable, fuel, inspectable, bait, inventoryitem, snowmandecor Tags: Adds molebait, quakedebris

Properties​

PropertyTypeDefault ValueDescription
fuelvaluenumberTUNING.MED_LARGE_FUELFuel energy provided when burned.
fueltypeFUELTYPEFUELTYPE.CHEMICALType of fuel (chemical).
maxsizenumberTUNING.STACK_SIZE_SMALLITEMMaximum stack size.
foodtypeFOODTYPEFOODTYPE.ELEMENTALPrimary food classification.
secondaryfoodtypeFOODTYPEFOODTYPE.NITRESecondary food classification (for effects).
hungervaluenumber2Hunger restoration value.
sinksbooleantrueWhether the item sinks when dropped in water.

Main functions​

This prefab does not define any custom functions; functionality is delegated entirely to attached components.

Events & listeners​

No event listeners or custom events are defined in this prefab's constructor.