Skip to main content

Leif Forest

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

Overview

This file defines a static map layout for the Leif Forest region in Don't Starve Together. It is a Tiled Map Editor data file (.lua format) used to specify background tile placements and object instances—including evergreen trees and boss spawns—for a specific level area. It does not function as an ECS component, but rather as a static data asset consumed by the world generation system to build the level geometry and entity placements.

Usage example

This file is not instantiated as a component and is not loaded via standard Lua require() by modders. Instead, the game engine loads this file directly during world generation when the Leif Forest map layer is activated. Modders should not directly instantiate or interact with this file.

Dependencies & tags

Components used: None — this is a static data definition, not an ECS component. Tags: None identified.

Properties

This file is a Lua table returned by the return statement. It does not define a class or constructor. The following are the top-level properties of the table structure:

PropertyTypeDefault ValueDescription
versionstring"1.1"Tiled map format version
luaversionstring"5.1"Lua version used for encoding
orientationstring"orthogonal"Map tile orientation
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
tilesetstableList of tileset definitions (contains one tileset)
layerstableArray of map layers (includes tile layer and object group)

Main functions

This file contains no functions — it is a data-only structure.

Events & listeners

This file defines no events or listeners, as it is not an ECS component or runtime entity.