Skip to main content

Grasssinkhole

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

Overview

This file defines a static layout for a grass-themed sinkhole room in Don't Starve Together. It is not a component in the Entity Component System but rather a Tiled map data file (JSON format) used by the world generation system to construct environment layouts. The layout includes a tile layer (BG_TILES) with specific tile IDs to define floor patterns, and an object group (FG_OBJECTS) that declares two rectangular regions: one for lighting coordinates and another marking the grassy area boundaries. This layout is consumed by higher-level world generation logic (e.g., map/tasks, map/tasksets) to instantiate physical and visual representations in-game.

Usage example

This file is typically loaded internally during world generation and not instantiated directly via Lua code. Modders usually reference or extend static layouts via map/tasksets or custom room definitions, e.g.:

-- Example of referencing in a taskset (not direct usage of grasssinkhole.lua)
local GrassSinkholeLayout = require "map/static_layouts/grasssinkhole"
-- In a map task or room generator:
room:SetStaticLayout(GrassSinkholeLayout)

Note: Direct instantiation is discouraged. Use the worldgen framework (e.g., AddRoom, SetLayout) to integrate this layout.

Dependencies & tags

Components used: None — this file is pure data and does not interact with any inst.components.X.

Tags: None — no entity tags are modified or checked.

Properties

This file is a Lua-returning table (representing JSON), not a component, so it does not define instance-level properties. Its top-level structure corresponds to the Tiled map format:

FieldTypeDescription
versionstringTiled version ("1.1").
luaversionstringLua version used ("5.1").
orientationstringMap orientation ("orthogonal").
widthnumberMap width in tiles (32).
heightnumberMap height in tiles (32).
tilewidthnumberWidth of each tile in pixels (16).
tileheightnumberHeight of each tile in pixels (16).
propertiestableUnused map-level properties (empty).
tilesetstableArray of tileset definitions (contains one entry for tiles.png).
layerstableArray of layers (contains BG_TILES tile layer and FG_OBJECTS object group).

Main functions

No functions — this file is data-only and returns a static table.

Events & listeners

No events or listeners — this file does not participate in event-driven logic.