summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--depends.txt3
-rw-r--r--init.lua5
-rw-r--r--mg.lua46
3 files changed, 53 insertions, 1 deletions
diff --git a/depends.txt b/depends.txt
index 331d858..0219052 100644
--- a/depends.txt
+++ b/depends.txt
@@ -1 +1,2 @@
-default \ No newline at end of file
+default
+mg?
diff --git a/init.lua b/init.lua
index 15a0d5b..be7386d 100644
--- a/init.lua
+++ b/init.lua
@@ -359,4 +359,9 @@ minetest.register_node("moreores:copper_rail", {
},
})
+-- mg suppport
+if minetest.get_modpath("mg") then
+ dofile(modpath.."/mg.lua")
+end
+
print(S("[moreores] loaded."))
diff --git a/mg.lua b/mg.lua
new file mode 100644
index 0000000..c950a4b
--- /dev/null
+++ b/mg.lua
@@ -0,0 +1,46 @@
+mg.register_ore({
+ name = "moreores:mineral_tin",
+ wherein = "default:stone",
+ seeddiff = 8,
+ maxvdistance = 10.5,
+ maxheight = 8,
+ seglenghtn = 15,
+ seglenghtdev = 6,
+ segincln = 0,
+ segincldev = 0.6,
+ turnangle = 57,
+ forkturnangle = 57,
+ numperblock = 2
+})
+
+mg.register_ore({
+ name = "moreores:mineral_silver",
+ wherein = "default:stone",
+ seeddiff = 9,
+ maxvdistance = 10.5,
+ maxheight = -2,
+ seglenghtn = 15,
+ seglenghtdev = 6,
+ sizen = 60,
+ sizedev = 30,
+ segincln = 0,
+ segincldev = 0.6,
+ turnangle = 57,
+ forkturnangle = 57,
+ numperblock = 2
+})
+
+mg.register_ore({
+ name = "moreores:mineral_mithril",
+ wherein = "default:stone",
+ seeddiff = 10,
+ maxvdistance = 10.5,
+ maxheight = -512,
+ seglenghtn = 2,
+ seglenghtdev = 4,
+ sizen = 12,
+ sizedev = 5,
+ segincln = 0,
+ segincldev = 0.6,
+ turnangle = 57,
+})