Clothing
Based on game build 714014 | Last updated: 2026-03-21
Overview
The clothing.lua script serves as a central repository for static clothing configuration data within Don't Starve Together. Generated automatically by export_accountitems.lua, this file does not contain runtime logic but instead defines large dictionaries mapping clothing prefabs to their attributes. These attributes include equipment slot types, skin tags, symbol overrides, tuck behavior, rarity, and release groups. Additionally, it establishes lookup tables for clothing-related sound effects and symbol hide configurations. Other systems query this data to determine how to render skins and apply clothing assets to entities.
Usage example
-- Access the global CLOTHING table populated by this file
local clothing_defs = CLOTHING
-- Iterate through definitions to find body slot items
for prefab, config in pairs(clothing_defs) do
if config.type == "CLOTHING_BODY" then
-- Retrieve symbol overrides for rendering
local symbols = config.symbol_overrides
-- Check rarity for inventory sorting
if config.rarity == "rare" then
-- Process rare clothing item
end
end
end
Dependencies & tags
External dependencies:
CLOTHING-- Referenced to iterate over clothing definitions and collect symbol overrides, symbol_hides, and symbol_in_base_hides into global lookup tables.
Components used: None
Tags:
CLOTHING_BODY-- addCLOTHING-- addCLOTHING_FEET-- addCLOTHING_HAND-- addCLOTHING_LEGS-- addCOSTUME-- addT_UPDATE-- addANCIENT-- addLUNAR-- addCHEF-- addFORMAL-- addSURVIVOR-- addVICTORIAN-- addYULE-- addHALLOWED-- addSTEAMPUNK-- addWESTERN-- addMASQUERADE-- addPIRATE-- addVARG-- addSHADOW-- addROSE-- addLAVA-- addICE-- addYOTP-- addWINTER-- addYOTH-- addFOOLS-- addVALKYRIE-- addRETRO-- addCAVE-- addNEXTKIN-- addHOCKEY-- addBOY-- addHANDMEDOWN-- addDETECTIVE-- addFISHERMAN-- addSPRING-- addSTRONGMAN-- addORIGNAL-- addMINOTAUR-- addCACTUS-- addMUSHROOM-- addPUMPKIN-- addBARBER-- addCOOK-- addHAUNTEDDOLL-- add
Properties
| Property | Type | Default Value | Description |
|---|
Main functions
None
Events & listeners
None