summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNovatux <nathanael.courant@laposte.net>2013-10-29 11:18:08 +0100
committerNovatux <nathanael.courant@laposte.net>2013-10-29 11:18:08 +0100
commitd8e02eb2dd7c52b860d3831ae851457ada305c21 (patch)
tree7612caabcd7b141d414e4d24e5f920f198cc3580
parent9aee83f92149ce2a52d8c09faa78e0e8315105e7 (diff)
Add mg support
-rw-r--r--technic_worldgen/depends.txt1
-rw-r--r--technic_worldgen/init.lua5
-rw-r--r--technic_worldgen/mg.lua75
3 files changed, 81 insertions, 0 deletions
diff --git a/technic_worldgen/depends.txt b/technic_worldgen/depends.txt
index d684218..1d854ee 100644
--- a/technic_worldgen/depends.txt
+++ b/technic_worldgen/depends.txt
@@ -1,2 +1,3 @@
default
technic
+mg?
diff --git a/technic_worldgen/init.lua b/technic_worldgen/init.lua
index 6209017..caf0f89 100644
--- a/technic_worldgen/init.lua
+++ b/technic_worldgen/init.lua
@@ -9,3 +9,8 @@ if not minetest.get_modpath("moretrees") then
dofile(modpath.."/rubber.lua")
end
+-- mg suppport
+if minetest.get_modpath("mg") then
+ dofile(modpath.."/mg.lua")
+end
+
diff --git a/technic_worldgen/mg.lua b/technic_worldgen/mg.lua
new file mode 100644
index 0000000..d511277
--- /dev/null
+++ b/technic_worldgen/mg.lua
@@ -0,0 +1,75 @@
+mg.register_ore({
+ name = "technic:mineral_uranium",
+ wherein = "default:stone",
+ seeddiff = 11,
+ maxvdistance = 10.5,
+ maxheight = -80,
+ minheight = -300,
+ sizen = 20,
+ sizedev = 10,
+ seglenghtn = 3,
+ seglenghtdev = 1,
+ segincln = 0.4,
+ segincldev = 0.6,
+ turnangle = 57,
+ numperblock = 1,
+ fork_chance = 0
+})
+
+mg.register_ore({
+ name = "technic:mineral_chromium",
+ wherein = "default:stone",
+ seeddiff = 12,
+ maxvdistance = 10.5,
+ maxheight = -100,
+ sizen = 50,
+ sizedev = 20,
+ seglenghtn = 8,
+ seglenghtdev = 3,
+ segincln = 0,
+ segincldev = 0.6,
+ turnangle = 57,
+ forkturnangle = 57,
+ numperblock = 2
+})
+
+mg.register_ore({
+ name = "technic:mineral_zinc",
+ wherein = "default:stone",
+ seeddiff = 13,
+ maxvdistance = 10.5,
+ maxheight = 2,
+ seglenghtn = 15,
+ seglenghtdev = 6,
+ segincln = 0,
+ segincldev = 0.6,
+ turnangle = 57,
+ forkturnangle = 57,
+ numperblock = 2
+})
+
+if technic.config:get_bool("enable_granite_generation") then
+ mg.register_ore_sheet({
+ name = "technic:granite",
+ wherein = "default:stone",
+ height_min = -31000,
+ height_max = -150,
+ tmin = 3,
+ tmax = 6,
+ threshhold = 0.4,
+ noise_params = {offset=0, scale=15, spread={x=130, y=130, z=130}, seed=24, octaves=3, persist=0.70}
+ })
+end
+
+if technic.config:get_bool("enable_marble_generation") then
+ mg.register_ore_sheet({
+ name = "technic:marble",
+ wherein = "default:stone",
+ height_min = -31000,
+ height_max = -50,
+ tmin = 3,
+ tmax = 6,
+ threshhold = 0.4,
+ noise_params = {offset=0, scale=15, spread={x=130, y=130, z=130}, seed=23, octaves=3, persist=0.70}
+ })
+end