Skip to main content

Cave Start

Based on game build 714014 | Last updated: 2026-02-28

Overview

This file defines the static layout configuration for the starting cave in Don't Starve Together. It is not a Lua component but a Tiled map export (cave_start.lua) used by the world generation system. It specifies the tile layer data (BG_TILES) and an object group (FG_OBJECTS) containing entities like spawn points, portal locations, lighting, vegetation (grass, saplings, evergreens), and cave lights. This layout serves as the foundational layout for the Cave starting world area, ensuring consistent initial conditions for players entering the cave dimension.

Usage example

This file is loaded and processed by the world generation system as part of map/tasksets/caves.lua and is not instantiated directly by modders. It is referenced internally during map generation via the static_layouts loader. No direct code usage is expected by modders outside of the core engine.

Dependencies & tags

Components used: None (this is a data-only map layout file, not an ECS component) Tags: None identified.

Properties

The table returned by this module contains map metadata rather than component properties:

PropertyTypeDefault ValueDescription
versionstring"1.1"Map file format version
luaversionstring"5.1"Lua version compatibility target
orientationstring"orthogonal"Tile orientation type
widthnumber32Map width in tiles
heightnumber32Map height in tiles
tilewidthnumber16Width of each tile in pixels
tileheightnumber16Height of each tile in pixels
propertiestable{}Map-level custom properties (currently empty)
tilesetsarraySee sourceTileset definitions with texture reference and tile mappings
layersarraySee sourceLayer definitions: BG_TILES (tile layer) and FG_OBJECTS (object group)

Main functions

This file exports only a data table; no functions are defined.

Events & listeners

Not applicable. This file is a static data definition and does not register or emit events.