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

Worldgen Syntax

Huneau romain edited this page Jun 24, 2020 · 3 revisions

New worldgen syntax for dense ore

New generation type "type": "ga_simple"
New value "value": "ore:poor:precious_metal"
Ore can be poor:, rich:, pure: and empty for default ore

Example for precious vein

{
  "weight": 40,
  "density": 0.3,
  "max_height": 120,
  "min_height": 50,
  "dimension_filter": [
    "is_nether"
  ],
  "surface_stone_material": "gold",
  "generator": {
    "type": "ellipsoid",
    "radius": [
      14,
      17
    ]
  },
  "filler": {
    "type": "ga_simple",
    "value": {
      "type": "weight_random",
      "values": [
        {
          "weight": 100,
          "value": "ore:silver"
        },
        {
          "weight": 20,
          "value": "ore:poor:precious_metal"
        },
        {
          "weight": 50,
          "value": "ore:precious_metal"
        },
        {
          "weight": 10,
          "value": "ore:rich:precious_metal"
        },
        {
          "weight": 5,
          "value": "ore:pure:precious_metal"
        },
        {
          "weight": 10,
          "value": "ore:poor:gold"
        },
        {
          "weight": 5,
          "value": "ore:gold"
        }
      ]
    }
  }
}