Custom Ore Veins

Custom Ore Veins

10k Downloads

Redstone vein

Redstone vein from the example datapack.

With this mod you can configure more types of large ore veins other than iron and copper. It doesn't add any by default, it reads data/yournamespace/worldgen/custom_ore_veins/yourvein.json files from each datapack, which should have the following format (the underlined keys are mandatory):

  • dimension: dimension type in which this vein is generated (overworld if not specified).
  • toggledetermines the regions of the world in which this vein can be generated:
  • densitya density function from which the toggle value is calculated.
  • max_value: maximum value of the toggle value at which the veins are generated (optional if min_value is specified).
  • min_value: minimum value of the toggle value at which the veins are generated  (optional if max_value is specified).
  • min_yminimum Y at which the vein is generated.
  • max_ymaximum Y at which the vein is generated.
  • ridgeddetermines the shape of the veins. If not specified, it uses the same as the vanilla copper and iron veins, which is not recommended because it causes them to overlap with the added ones.
  • density: density function from which the ridged value is calculated (optional, see above).
  • min_value: minimum ridged value at which blocks are generated (default is 0).
  • gap: determines where ores are generated as opposed to the base stone. If not specified, it uses the vanilla one.
  • density: density function from which the gap value is calculated (optional, see above).
  • min_value: minimum gap value at which ores are generated (default is -0.3).
  • stonebase rock block.
  • oreore block.
  • raw_ore: raw ore block (same as ore if not specified).
  • min_ore_chance: chance of generating a ore block in the outer part of the vein (default: 0.16).
  • max_ore_chance: chance of generating a ore block in the inner part of the vein (default: 0.5).
  • raw_ore_chance: chance of replacing a ore block with a raw ore one (default 0.02).

If you (understandably) don't want to learn about density functions and stuff, you can copy and rename each file from the example datapack (which adds redstone and coal veins) for each pair of vein type, and then change the stone, ore, raw_ore blocks and the references to the noise functions (ore_veinness, etc.). Note that the veins from the same pair are never generated at the same location (just like copper and iron), if you don't want that you can add only one vein file for each set of noise files instead of two.