Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Features

A feature is a single world-generation template. It contains a block palette and relative part offsets. The engine places features as scatter decorators through biome.scatter. Structure pieces and script-based placement arrive in a later change.

Stored features live under: namespace:features

A mod authors features facing north (blocks.FACE_NORTH). The scatter rule takes the world origin from the terrain and places every feature facing north for now.

The figure shows the parts of one feature in space. The offsets count from the ground block.

Top-level fields

FieldTypeRequiredDefaultDescription
paletteobject[]yesN/DBlock palette for the feature. At least one entry is required
partsobject[]yesN/DFeature parts

Palette entries

"palette": [
  {
    "block": "builtin:stone_slab",
    "states": {
      "orientation": "bottom"
    }
  },
  {
    "block": "builtin:grass"
  }
]
FieldTypeRequiredDefaultDescription
blockstringyesN/DNamespaced block ID
statesobjectno{}Blockstate key-values

Parts entries

"parts": [
  {
    "block": 0,
    "offset": [0, 1, 0],
    "overwrite": ["gas", "xfoil"]
  }
]
FieldTypeRequiredDefaultDescription
blockintegeryesN/DPalette entry index
offsetinteger[3]yesN/DOffset in blocks from the origin point
overwritestring[]no{}Block tags the feature can overwrite when they occupy the target space

Tag values

JSONLua constant
"gas"blocks.TAG_GAS
"rock"blocks.TAG_ROCK
"soil"blocks.TAG_SOIL
"turf"blocks.TAG_TURF
"xfoil"blocks.TAG_XFOIL
"sfoil"blocks.TAG_SFOIL
"wood"blocks.TAG_WOOD