From 705c41b73dca26463cdc30bac8140076be2efbeb Mon Sep 17 00:00:00 2001
From: DrNuget <drnuget@outlook.com>
Date: Sat, 7 Sep 2024 05:32:26 +0300
Subject: add custom ore gen

---
 config/cofh/world/00_minecraft.json | 110 +++++++++++
 config/cofh/world/01_overworld.json | 117 ++++++++++++
 config/cofh/world/02_overworld.json | 369 ++++++++++++++++++++++++++++++++++++
 config/cofh/world/config.cfg        |  31 +++
 4 files changed, 627 insertions(+)
 create mode 100644 config/cofh/world/00_minecraft.json
 create mode 100644 config/cofh/world/01_overworld.json
 create mode 100644 config/cofh/world/02_overworld.json
 create mode 100644 config/cofh/world/config.cfg

diff --git a/config/cofh/world/00_minecraft.json b/config/cofh/world/00_minecraft.json
new file mode 100644
index 0000000..f3f10d0
--- /dev/null
+++ b/config/cofh/world/00_minecraft.json
@@ -0,0 +1,110 @@
+{
+	"priority": 1000000000000,
+	"populate": {
+		"dirt": {
+
+			"distribution": "uniform",
+			"generator": {
+				"block": "dirt",
+				"material": "minecraft:stone",
+				"cluster-size": 33
+			},
+			"cluster-count": 10,
+			"min-height": 0,
+			"max-height": 256,
+			"retrogen": false,
+			"biome": "all",
+			"dimension": {
+				"restriction": "blacklist",
+				"value": [
+					-1,
+					1
+				]
+			}
+		},
+
+		"gravel": {
+			"distribution": "uniform",
+			"generator": {
+				"block": "gravel",
+				"material": "minecraft:stone",
+				"cluster-size": 33
+			},
+			"cluster-count": 8,
+			"min-height": 0,
+			"max-height": 256,
+			"retrogen": false,
+			"biome": "all",
+			"dimension": {
+				"restriction": "blacklist",
+				"value": [
+					-1,
+					1
+				]
+			}
+		},
+
+		"silverfish": {
+			"distribution": "uniform",
+			"generator": {
+				"block": {
+					"name": "monster_egg",
+					"properties": {
+						"variant": "stone"
+					}
+				},
+				"material": "minecraft:stone",
+				"cluster-size": 9
+			},
+			"cluster-count": 7,
+			"min-height": 0,
+			"max-height": 64,
+			"retrogen": false,
+			"biome": {
+				"restriction": "whitelist",
+				"value": [
+					{
+						"type": "id",
+						"entry": [
+							"extreme_hills",
+							"smaller_extreme_hills",
+							"extreme_hills_with_trees",
+							"mutated_extreme_hills",
+							"mutated_extreme_hills_with_trees"
+						]
+					}
+				]
+			},
+			"dimension": {
+				"restriction": "blacklist",
+				"value": [
+					-1,
+					1
+				]
+			}
+		},
+
+		"quartz": {
+			"distribution": "uniform",
+			"generator": {
+				"block": "quartz_ore",
+				"material": "minecraft:netherrack",
+				"cluster-size": 14
+			},
+			"cluster-count": 16,
+			"min-height": 10,
+			"max-height": 118,
+			"retrogen": false,
+			"biome": {
+				"restriction": "whitelist",
+				"value": [
+					{
+						"type": "dictionary",
+						"entry": "NETHER"
+					}
+				]
+			},
+			"dimension": "all"
+		}
+	}
+}
diff --git a/config/cofh/world/01_overworld.json b/config/cofh/world/01_overworld.json
new file mode 100644
index 0000000..2a53b04
--- /dev/null
+++ b/config/cofh/world/01_overworld.json
@@ -0,0 +1,117 @@
+{
+	"priority": 1000000000000,
+	"populate": {
+		"red-granite": {
+			"distribution": "uniform",
+			"generator": {
+				"block": {
+					"name": "gregtech:stone_smooth",
+					"properties": {
+						"variant": "red_granite"
+					}
+				},
+				"material": "minecraft:stone",
+				"cluster-size": 33
+			},
+			"cluster-count": {
+				"min": 0,
+				"max": 10
+			},
+			"min-height": 0,
+			"max-height": 80,
+			"retrogen": false,
+			"biome": "all",
+			"dimension": {
+				"restriction": "blacklist",
+				"value": [
+					-1,
+					1
+				]
+			}
+		},
+		"black-granite": {
+			"distribution": "uniform",
+			"generator": {
+				"block": {
+					"name": "gregtech:stone_smooth",
+					"properties": {
+						"variant": "black_granite"
+					}
+				},
+				"material": "minecraft:stone",
+				"cluster-size": 33
+			},
+			"cluster-count": {
+				"min": 0,
+				"max": 10
+			},
+			"min-height": 0,
+			"max-height": 80,
+			"retrogen": false,
+			"biome": "all",
+			"dimension": {
+				"restriction": "blacklist",
+				"value": [
+					-1,
+					1
+				]
+			}
+		},
+		"marble": {
+			"distribution": "uniform",
+			"generator": {
+				"block": {
+					"name": "gregtech:stone_smooth",
+					"properties": {
+						"variant": "marble"
+					}
+				},
+				"material": "minecraft:stone",
+				"cluster-size": 33
+			},
+			"cluster-count": {
+				"min": 0,
+				"max": 10
+			},
+			"min-height": 0,
+			"max-height": 80,
+			"retrogen": false,
+			"biome": "all",
+			"dimension": {
+				"restriction": "blacklist",
+				"value": [
+					-1,
+					1
+				]
+			}
+		},
+		"basalt": {
+			"distribution": "uniform",
+			"generator": {
+				"block": {
+					"name": "gregtech:stone_smooth",
+					"properties": {
+						"variant": "basalt"
+					}
+				},
+				"material": "minecraft:stone",
+				"cluster-size": 33
+			},
+			"cluster-count": {
+				"min": 0,
+				"max": 10
+			},
+			"min-height": 0,
+			"max-height": 80,
+			"retrogen": false,
+			"biome": "all",
+			"dimension": {
+				"restriction": "blacklist",
+				"value": [
+					-1,
+					1
+				]
+			}
+		}
+	}
+}
diff --git a/config/cofh/world/02_overworld.json b/config/cofh/world/02_overworld.json
new file mode 100644
index 0000000..bdc16bd
--- /dev/null
+++ b/config/cofh/world/02_overworld.json
@@ -0,0 +1,369 @@
+{
+	"priority": 1000000000000,
+	"populate": {
+		"pyrite": {
+			"distribution": "uniform",
+			"generator": {
+				"block": [
+					{
+						"name": "gregtech:ore_chalcopyrite_0",
+						"weight": 40
+					},
+					{
+						"name": "gregtech:ore_pyrite_0",
+						"weight": 40
+					},
+					{
+						"name": "gregtech:ore_copper_0",
+						"weight": 20
+					}
+				],
+				"material": "minecraft:stone",
+				"cluster-size": 35
+			},
+			"cluster-count": 4,
+			"min-height": 45,
+			"max-height": 65,
+			"retrogen": true,
+			"biome": "all",
+			"dimension": {
+				"restriction": "blacklist",
+				"value": [
+					-1,
+					1
+				]
+			}
+		},
+		"coal": {
+			"distribution": "uniform",
+			"generator": {
+				"block": [
+					{
+						"name": "gregtech:ore_coal_0",
+						"weight": 60
+					},
+					{
+						"name": "gregtech:ore_graphite_0",
+						"weight": 20
+					},
+					{
+						"name": "gregtech:ore_sulfur_0",
+						"weight": 20
+					}
+				],
+				"material": "minecraft:stone",
+				"cluster-size": 35
+			},
+			"cluster-count": 6,
+			"min-height": 55,
+			"max-height": 128,
+			"retrogen": true,
+			"biome": "all",
+			"dimension": {
+				"restriction": "blacklist",
+				"value": [
+					-1,
+					1
+				]
+			}
+		},
+		"cassiterite": {
+			"distribution": "uniform",
+			"generator": {
+				"block": [
+					{
+						"name": "gregtech:ore_tin_0",
+						"weight": 60
+					},
+					{
+						"name": "gregtech:ore_cassiterite_0",
+						"weight": 40
+					}
+				],
+				"material": "minecraft:stone",
+				"cluster-size": 25
+			},
+			"cluster-count": 3,
+			"min-height": 55,
+			"max-height": 70,
+			"retrogen": true,
+			"biome": "all",
+			"dimension": {
+				"restriction": "blacklist",
+				"value": [
+					-1,
+					1
+				]
+			}
+		},
+		"galena": {
+			"distribution": "uniform",
+			"generator": {
+				"block": [
+					{
+						"name": "gregtech:ore_galena_0",
+						"weight": 40
+					},
+					{
+						"name": "gregtech:ore_lead_0",
+						"weight": 30
+					},
+					{
+						"name": "gregtech:ore_silver_0",
+						"weight": 30
+					}
+				],
+				"material": "minecraft:stone",
+				"cluster-size": 35
+			},
+			"cluster-count": 3,
+			"min-height": 35,
+			"max-height": 55,
+			"retrogen": true,
+			"biome": "all",
+			"dimension": {
+				"restriction": "blacklist",
+				"value": [
+					-1,
+					1
+				]
+			}
+		},
+		"bauxite": {
+			"distribution": "uniform",
+			"generator": {
+				"block": [
+					{
+						"name": "gregtech:ore_bauxite_0",
+						"weight": 60
+					},
+					{
+						"name": "gregtech:ore_aluminium_0",
+						"weight": 20
+					},
+					{
+						"name": "gregtech:ore_yellow_limonite_0",
+						"weight": 20
+					}
+				],
+				"material": "minecraft:stone",
+				"cluster-size": 25
+			},
+			"cluster-count": 3,
+			"min-height": 35,
+			"max-height": 55,
+			"retrogen": true,
+			"biome": "all",
+			"dimension": {
+				"restriction": "blacklist",
+				"value": [
+					-1,
+					1
+				]
+			}
+		},
+		"lubricant": {
+			"distribution": "uniform",
+			"generator": {
+				"block": [
+					{
+						"name": "gregtech:ore_talc_0",
+						"weight": 35
+					},
+					{
+						"name": "gregtech:ore_soapstone_0",
+						"weight": 35
+					},
+					{
+						"name": "gregtech:ore_glauconite_sand_0",
+						"weight": 30
+					}
+				],
+				"material": "minecraft:stone",
+				"cluster-size": 25
+			},
+			"cluster-count": 3,
+			"min-height": 35,
+			"max-height": 55,
+			"retrogen": true,
+			"biome": "all",
+			"dimension": {
+				"restriction": "blacklist",
+				"value": [
+					-1,
+					1
+				]
+			}
+		},
+		"lapis": {
+			"distribution": "uniform",
+			"generator": {
+				"block": [
+					{
+						"name": "gregtech:ore_lapis_0",
+						"weight": 50
+					},
+					{
+						"name": "gregtech:ore_sodalite_0",
+						"weight": 30
+					},
+					{
+						"name": "gregtech:ore_sapphire_0",
+						"weight": 20
+					}
+				],
+				"material": "minecraft:stone",
+				"cluster-size": 33
+			},
+			"cluster-count": {
+				"min": 0,
+				"max": 3
+			},
+			"min-height": 35,
+			"max-height": 55,
+			"retrogen": true,
+			"biome": "all",
+			"dimension": {
+				"restriction": "blacklist",
+				"value": [
+					-1,
+					1
+				]
+			}
+		},
+		"magnetite": {
+			"distribution": "uniform",
+			"generator": {
+				"block": [
+					{
+						"name": "gregtech:ore_magnetite_0",
+						"weight": 50
+					},
+					{
+						"name": "gregtech:ore_vanadium_magnetite_0",
+						"weight": 30
+					},
+					{
+						"name": "minecraft:gold_ore",
+						"weight": 20
+					}
+				],
+				"material": "minecraft:stone",
+				"cluster-size": 35
+			},
+			"cluster-count": 3,
+			"min-height": 6,
+			"max-height": 35,
+			"retrogen": true,
+			"biome": "all",
+			"dimension": {
+				"restriction": "blacklist",
+				"value": [
+					-1,
+					1
+				]
+			}
+		},
+		"redstone": {
+			"distribution": "uniform",
+			"generator": {
+				"block": [
+					{
+						"name": "gregtech:ore_redstone_0",
+						"weight": 50
+					},
+					{
+						"name": "gregtech:ore_cinnabar_0",
+						"weight": 30
+					},
+					{
+						"name": "gregtech:ore_ruby_0",
+						"weight": 20
+					}
+				],
+				"material": "minecraft:stone",
+				"cluster-size": 33
+			},
+			"cluster-count": {
+				"min": 0,
+				"max": 3
+			},
+			"min-height": 6,
+			"max-height": 35,
+			"retrogen": true,
+			"biome": "all",
+			"dimension": {
+				"restriction": "blacklist",
+				"value": [
+					-1,
+					1
+				]
+			}
+		},
+		"diamond": {
+			"distribution": "uniform",
+			"generator": {
+				"block": [
+					{
+						"name": "gregtech:ore_graphite_0",
+						"weight": 90
+					},
+					{
+						"name": "minecraft:diamond_ore",
+						"weight": 10
+					}
+				],
+				"material": "minecraft:stone",
+				"cluster-size": 35
+			},
+			"cluster-count": {
+				"min": 0,
+				"max": 2
+			},
+			"min-height": 6,
+			"max-height": 35,
+			"retrogen": true,
+			"biome": "all",
+			"dimension": {
+				"restriction": "blacklist",
+				"value": [
+					-1,
+					1
+				]
+			}
+		},
+		"uraninite": {
+			"distribution": "uniform",
+			"generator": {
+				"block": [
+					{
+						"name": "gregtech:ore_pitchblende_0",
+						"weight": 50
+					},
+					{
+						"name": "gregtech:ore_thorium_0",
+						"weight": 30
+					},
+					{
+						"name": "gregtech:ore_uraninite_0",
+						"weight": 20
+					}
+				],
+				"material": "minecraft:stone",
+				"cluster-size": 35
+			},
+			"cluster-count": 3,
+			"min-height": 2,
+			"max-height": 20,
+			"retrogen": true,
+			"biome": "all",
+			"dimension": {
+				"restriction": "blacklist",
+				"value": [
+					-1,
+					1
+				]
+			}
+		}
+	}
+}
diff --git a/config/cofh/world/config.cfg b/config/cofh/world/config.cfg
new file mode 100644
index 0000000..db8401c
--- /dev/null
+++ b/config/cofh/world/config.cfg
@@ -0,0 +1,31 @@
+# Configuration file
+
+~CONFIG_VERSION: 1.4.0
+
+World {
+    # If TRUE, CoFH World will not generate features at all. This option is intended for use when you want another mod to handle ore generation but do not want to blank out the various .json files yourself. Flat Bedrock may still be used. [default: false]
+    B:DisableAllGeneration=false
+
+    # If TRUE, standard Minecraft ore generation will be REPLACED. Configure in the 00_minecraft.json file; standard Minecraft defaults have been provided. If you rename the 00_minecraft.json file, this option WILL NOT WORK. [default: false]
+    B:ReplaceStandardGeneration=true
+
+    # If TRUE, world generation handled by CoFH World will be retroactively applied to existing chunks. [default: false]
+    B:RetroactiveGeneration=true
+
+    # This adjusts the % chance that a tree will grow as normal when it is meant to. Reducing this value will mean that trees take longer to grow, on average. [range: 1 ~ 100, default: 100]
+    I:TreeGrowthChance=100
+
+    Bedrock {
+        # If TRUE, the bedrock layer will be flattened. [default: false]
+        B:EnableFlatBedrock=false
+
+        # If TRUE, Flat Bedrock will retroactively be applied to existing chunks, if retroactive generation is enabled. [default: false]
+        B:EnableRetroactiveFlatBedrock=false
+
+        # This adjusts the number of layers of Flat Bedrock, if enabled. [range: 1 ~ 8, default: 2]
+        I:NumBedrockLayers=2
+    }
+
+}
+
+
-- 
cgit v1.2.3