Skip to main content

Bullkelpfarmmedium

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

Overview

This file defines a static map layout for a medium-sized bull kelp farm in DST's map generation system. It is a Tiled JSON-serialized map configuration (stored in Lua format) used to generate recurring environmental features in the game world. The layout consists of a 4x4 tile grid (with 64x64 px tiles) and an object group (FG_OBJECTS) that specifies rectangular zones marked as kelp_area (representing bull kelp growth zones) and one driftwood_log. These objects are likely used during world generation to place in-game assets (e.g., bullkelp or related prefabs) and provide environmental context for gameplay or aesthetics.

Usage example

Static layouts like this one are consumed by DST's map/task systems and are not directly instantiated as components. However, when integrated into world generation, typical usage occurs via map/tasks/caves.lua or similar task definitions:

-- Example of how static_layouts/bullkelpfarmmedium.lua is consumed (not from this file)
MapRoom.Add("bullkelpfarmmedium", {
width = 4,
height = 4,
-- ... other setup
})

Developers working on custom static layouts should ensure proper structure matching the Tiled export format (tile layer, object groups with named types), but this file itself is a data definition, not a runtime component.

Dependencies & tags

Components used: None (this file contains only map data and does not define or access any Lua components).
Tags: None identified.

Properties

The file is a plain Lua table representing a Tiled map structure. Public fields are as follows:

PropertyTypeDefault ValueDescription
versionstring"1.1"Tiled version used for the export.
luaversionstring"5.1"Lua version target (for backwards compatibility).
orientationstring"orthogonal"Tile orientation used (standard rectangular grid).
widthnumber4Map width in tiles.
heightnumber4Map height in tiles.
tilewidthnumber64Width of each tile in pixels.
tileheightnumber64Height of each tile in pixels.
propertiestable{}Map-level custom properties (empty in this layout).
tilesetstable(see source)Array of tileset definitions, including ground tileset and image reference.
layerstable(see source)Array of layers: BG_TILES (background tile layer) and FG_OBJECTS (foreground object group).

Main functions

This file contains no Lua functions. It is a static data definition.

Events & listeners

This file does not define or interact with any events or listeners.