Skip to content

Unearthed Datapack

lilypuree edited this page Feb 3, 2022 · 3 revisions

Tags

  • unearthed/tags/blocks/replaceable.json : blocks to be replaced by the base entry of a stone type.
  • unearthed/tags/blocks/replace_dirt.json : blocks to be replaced by the dirt entry of a stone type.
  • unearthed/tags/blocks/replace_grass.json : blocks to be replaced by the grass entry of a stone type.

The Stone Replacer Feature

  • unearthed/worldgen/placed_feature/stone_replacer.json

    • Unearthed uses a placement modifier to configure the minimum y level Unearthed replaces. This is set to -8 with a constant height range modifer by default.
  • unearthed/worldgen/configured_feature/stone_replacer.json

    • The configured feature json file contains the stone replacer configuration, which includes noise frequencies (scales), regions, and biome replacers.

Stone Replacer Configuration

  • frequencies: frequency of each noise used for generation. Holds the following key-value pairs.

    • region
    • unconformity
    • primary
    • secondary
    • tertiary
  • regions: List of stone regions used together.

  • biome_replacers: List of biome replacers.

Example Configured Feature JSON File

  "type": "unearthed:stone_replacer",
  "config": {
    "frequencies": {
      "region": 0.0006,
      "unconformity": 0.0023,
      "primary": 0.008,
      "secondary": 0.008,
      "tertiary": 0.09
    },
    "biome_replacers": [
      {
        "biomes": [
          "minecraft:plains"
        ],
        "stratum": [
          {
            "stone_type": "unearthed:vanilla/dirt",
            "thickness": 5
          }
        ]
      }
    ],
    "regions": [
      "unearthed:default",
      "unearthed:limestone",
      "unearthed:sedimentary",
      "unearthed:vanilla"
    ]
  }

Biome Replacers

Biome replacers are used to replace the upper blocks of a certain biome, depending on the depth from the world surface in a layered fashion.

JSON Format

  • biomes: List of biome IDs
  • stratum: List of strata, applied from top to bottom in the order of the list.
    • stone_type: stone type of the strata
    • thickness: thickness in blocks