Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

Palette Configuration

Polyhedral-Bot edited this page Dec 24, 2021 · 1 revision

This page discusses the configuration of Block Palettes. For information on Block Palettes, see the About Block Palettes page.

Palette configurations are in the palettes/ directory within a config pack.

Object Options

Palettes support all Terra Object Options.

Options

layers

A list of palette layers. Each layer has a block layout, and can be configured to repeat for a number of blocks.

Layer options

  • materials - A weighted pool of materials and their weights.
  • layers The number of blocks to repeat this layer for. (The "depth" of this layer). The actual depth of this layer is equal to the sum of the depths of all previous layers.

The last layer of a palette will be repeated infinitely, regardless of its layers option.

noise

A Noise Configuration that defines placement of blocks in this palette. Defaults to 3D white noise.


Examples

Example Palette

An example palette that generates 1 layer of Grass Blocks, 2 layers of Dirt underneath, then Stone for all remaining blocks. Its ID is GRASSY.

layers:
  - materials:
      - "minecraft:grass_block": 1
    layers: 1
  - materials:
      - "minecraft:dirt": 1
    layers: 2
  - materials:
      - "minecraft:stone": 1
    layers: 1
id: GRASSY
Example Simplex Palette

An example palette that generates 2 layers of simplex-distributed Gravel, Dirt, and Sand. Dirt is more common, weighted at 4/7, followed by sand at 2/7, then gravel at 1/7. The seed of the Simplex generator is 3, and its frequency has been set to 0.05.
Subsequent layers are Stone.

layers:
  - materials:
      - "minecraft:gravel": 1
      - "minecraft:dirt": 4
      - "minecraft:sand": 2
    layers: 2
  - materials:
      - "minecraft:stone": 1
    layers: 1
id: RIVER_BOTTOM
simplex: true
frequency: 0.05
seed: 3
Clone this wiki locally