|This article is about the current version of DF.|
Containers are used for storing various types of owned items. They are a common requirement for nobles and they are also good for increasing the value of a room. Each container holds a varying number of items. Dwarves may walk through tiles with containers.
If a dwarf does not own a container in his bedroom, he or she will leave any possessions on the floor.
Containers are named differently depending on what they are made of:
Both bags and barrels (and all other containers) function exactly the same in-game - they report a container capacity (either hardcoded or derived from the item_tool raws), they have references to their contents (general_ref_contains_itemst), and their contents have references back to the container itself (general_ref_contained_in_itemst).
Any behavioral differences between them are entirely due to the way jobs handle them and the way they (and their contents) are categorized for selection by jobs, and custom reactions don't necessarily follow all of those rules. Custom reactions can definitely use seeds that are stored in bags without requesting the bags themselves (I just checked), but plant growths might be treated differently, possibly an attempt to keep quarry bush leaves inside their bags (and similar scenarios).
Bags are a special type of box. While they can be built as furniture, they are more commonly used by dwarves to store seeds, mill plants at a millstone or quern, or collect sand. Dwarves have a habit of filling bags with seeds whenever possible, so, typically, many of them need to be made if they are going to be used for other purposes.
|"Container" in other Languages
|Workshops • Furnaces|
|Furniture||Animal trap • Armor stand • Bed • Box • Bucket|
Cabinet • Cage • Coffin • Display case • Pedestal
Restraint • Seat • Slab • Statue • Table • Weapon rack
|Tools||Bookcase • Hive • Nest box|
|Access||Bars • Bridge • Door • Floodgate • Grate|
Hatch • Road • Window
|Constructions||Floor • Fortification • Ramp • Stairs • Wall|
|Machine and trap parts||Axle • Gear assembly • Lever • Millstone|
Pressure plate • Roller • Screw pump
Support • Trap • Water wheel • Windmill
|Other buildings||Archery target • Kennel • 40d:Shop • Siege engine|
Trade depot • Wagon • Well
|Related articles||Design strategies • Bedroom design • Furniture industry|