CoFH Core: Ores and More

L

larsvvulpen

Guest
could i just copy and paste one of these in the config anywhere i want?
and what is a good program to open json files on windows 10?
and how to actually change spawn rate of gold?
 

itanshi

New Member
Jul 29, 2019
201
0
1
I am curious about the ability to replace a modded block (set as the material) that has a metadata attached. Let's say I changed cobblestone to chisel: packedice :2 (the cobble packed ice variant) using biome tweaker. I'll now need to replace that with ores. Thank you.
 
Last edited:

Golrith

Over-Achiever
Trusted User
Nov 11, 2012
3,834
2,137
248
You'll need to define the target block as:

{"name": "chisel: packedice", "metadata": 2}
 

itanshi

New Member
Jul 29, 2019
201
0
1
Thank you, that worked.

Ok, does anyone have a working example of custom tree generation in the nether? :D

I also was unable to recreate glowstone using the stalactite type. I can live without this, but it'd be neat if I could restore its familiar shape to the biome. Thank you.
 
S

sirati97

Guest
In the latest version (the one for 1.10.2) the naming of the keys and the tree structure changed. ATM i cannot find any information about it online. So i reverse-engineered it from the code found here: https://github.com/TheCBProject/CoFHCore

Spikes:

Code:
{
  "populate": {
    "spiketest": {
      "distribution": "surface",
      "generator": {
        "type": "spike",
        "block": [
          {"name": "iron_ore", "weight":80},
          {"name": "gold_ore", "weight":20}
        ],
         "material": [
          "minecraft:stone",
          "minecraft:grass",
          "minecraft:dirt",
          "minecraft:sand",
          "minecraft:snow",
          "minecraft:water",
          "minecraft:air"
        ],
        "height-variance": 4,
        "size-variance": 4,
        "position-variance": 4,
        "large-spikes": "true",
        "large-spike-chance": 60,
        "min-large-spike-height-gain": 10,
        "large-spike-height-variance": 30,
        "large-spike-filler-size": 1
      },
      "cluster-count": 4,
      "min-height": 0,
      "max-height": 80,
      "chunk-chance": 1,
      "retrogen": "true",
      "biome": "all",
      "dimension": {
        "restriction": "blacklist",
        "value": [
          -1,
          1
        ]
      }
    }
  }
}


Stalactite:

Code:
{
  "populate": {
    "stalactitetest": {
      "distribution": "cave",
      "generator": {
        "type": "stalactite",
        "block": [
          {
          "name": "thermalfoundation:ore",
          "properties": {
            "type":"lead"
          },
          "weight":80},
          {"name": "thermalfoundation:ore",
          "properties": {
            "type":"silver"
          },
          "weight":20
          }
        ],
        "material": [
          "minecraft:stone",
          "minecraft:air"
        ],
        "min-height": 7,
        "height-variance": 4,
        "gen-size": 0,
        "height-mod": 5,
        "size-variance": 2,
        "smooth": "false",
        "fat": "false"
      },
      "cluster-count": 20,
      "min-height": 0,
      "max-height": 80,
      "chunk-chance": 1,
      "retrogen": "true",
      "biome": "all",
      "dimension": {
        "restriction": "blacklist",
        "value": [
          -1,
          1
        ]
      }
    }
  }
}

Note: "This message is awaiting moderator approval, and is invisible to normal visitors."
 
Last edited:
  • Like
Reactions: Golrith
S

sirati97

Guest
I have done above, because I wanted to use custom ore gen for my Modpack (one of this big ones full of many mods).

It uses the stalactite, stalagmite and the normal generator. It also utilises the new features introduced in CoFHCore to do so.
Required mods to use files without modification: CoFHCore, ThermalFoundation, Industrial Craft
In addition it is required to edit config/cofh/core/common.cfg and set World.B:ReplaceVanillaGeneration=true

I cannot edit my old message, that's why I need to post it in a new one.
 

Attachments

  • ic2_thermalfoundation.zip
    2.4 KB · Views: 272
Last edited:
R

rrbrussell

Guest
Do you have an example of the fractal template that works with the syntax changes between 1.7.10 and 1.10.2? I am trying to get a Greg Tech type ore generation config for my own use and I can't figure out how to get it working. I am including the test item below and the error message that I get.

Code:
"diamond": {
            "distribution": "fractal",
            "generator": {
                "type": "large-vein",
                "sparse": true,
                "block": "diamond_ore",
                "material": "stone",
                "cluster-size": 8,
                "min-height": 16,
                "vein-height": 4
            },
            "cluster-count": 1,
            "veinDiameter": 16,
            "verticalDensity": 5,
            "horizontalDensity": 5,
            "retrogen": true,
            "biome": "all",
            "dimension": {
                "restriction": "blacklist",
                "value": [
                    -1,
                    1
                ]
            }
        },

Code:
[16:25:04] [Client thread/ERROR]: Height parameters for 'fractal' template not specified in "diamond"
[16:25:04] [Client thread/WARN]: Template 'fractal' failed to parse its entry!
[16:25:04] [Client thread/ERROR]: Error parsing generation entry: 'diamond' > Please check the parameters.
 
S

sirati97

Guest
Do you have an example of the fractal template that works with the syntax changes between 1.7.10 and 1.10.2? I am trying to get a Greg Tech type ore generation config for my own use and I can't figure out how to get it working. I am including the test item below and the error message that I get.
The general structure stays the same compared with my examples. The other options can be found here and here in the code.
This file manages the configuration of the fractal distribution