Skip to content

Commit 4f7ec3b

Browse files
Add mineclone2, mineclonia and mineclone5 support (minetest-mods#55)
* Added mineclone2 support apart from with mg * Add Mineclone2 adjustments * Fix, Ores now spawn in stone in Mineclone2 * Added Bronze ingot recipe and copper rail * Made ores breakable * Made tools work with Mineclone2 * Nerf mithril sword to be same as diamond --------- Co-authored-by: Hugo Locurcio <[email protected]>
1 parent b20cc8d commit 4f7ec3b

File tree

4 files changed

+192
-57
lines changed

4 files changed

+192
-57
lines changed

.luacheckrc

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ unused_args = false
33
allow_defined_top = true
44
max_line_length = 90
55

6+
ignore = {
7+
"default_stone_sounds",
8+
"default_metal_sounds"
9+
}
10+
611
stds.minetest = {
712
read_globals = {
813
"DIR_DELIM",
@@ -30,4 +35,5 @@ read_globals = {
3035
"frame",
3136
"mg",
3237
"toolranks",
38+
"mcl_sounds"
3339
}

_config.txt

+42-22
Original file line numberDiff line numberDiff line change
@@ -54,27 +54,47 @@ moreores.mithril_clust_size_high = 3
5454
moreores.mithril_clust_size = 3
5555
moreores.mithril_clust_size_deep = 3
5656

57-
-- Maximal and minimal depths of ore generation (Y coordinate, 0 being sea level by default)
58-
-- Tin
59-
moreores.tin_max_depth_high = 31000
60-
moreores.tin_min_depth_high = 1025
61-
moreores.tin_max_depth = -64 -- For v6 mapgen, -32 fits better
62-
moreores.tin_min_depth = -127
63-
moreores.tin_max_depth_deep = -128
64-
moreores.tin_min_depth_deep = -31000
6557

66-
-- Silver
67-
moreores.silver_max_depth_high = 31000
68-
moreores.silver_min_depth_high = 1025
69-
moreores.silver_max_depth = -64 -- For v6 mapgen, -32 fits better
70-
moreores.silver_min_depth = -127 -- For v6 mapgen, -63 fits better
71-
moreores.silver_max_depth_deep = -128 -- For v6 mapgen, -64 fits better
72-
moreores.silver_min_depth_deep = -31000
58+
if minetest.get_modpath("mcl_core") then
59+
-- Example adjustments for MineClone2
60+
moreores.tin_max_depth_high = 0
61+
moreores.tin_min_depth_high = -10
62+
moreores.tin_max_depth = -11
63+
moreores.tin_min_depth = -57
7364

74-
-- Mithril
75-
moreores.mithril_max_depth_high = 31000
76-
moreores.mithril_min_depth_high = 2049
77-
moreores.mithril_max_depth = -2048 -- For v6 mapgen, -256 fits better
78-
moreores.mithril_min_depth = -4095 -- For v6 mapgen, -511 fits better
79-
moreores.mithril_max_depth_deep = -4096 -- For v6 mapgen, -512 fits better
80-
moreores.mithril_min_depth_deep = -31000
65+
-- Similar adjustments for silver and mithril
66+
moreores.silver_max_depth_high = 0
67+
moreores.silver_min_depth_high = -10
68+
moreores.silver_max_depth = -11
69+
moreores.silver_min_depth = -57
70+
71+
moreores.mithril_max_depth_high = 0
72+
moreores.mithril_min_depth_high = -20
73+
moreores.mithril_max_depth = -21
74+
moreores.mithril_min_depth = -57
75+
else
76+
-- Maximal and minimal depths of ore generation (Y coordinate, 0 being sea level by default)
77+
-- Tin
78+
moreores.tin_max_depth_high = 31000
79+
moreores.tin_min_depth_high = 1025
80+
moreores.tin_max_depth = -64 -- For v6 mapgen, -32 fits better
81+
moreores.tin_min_depth = -127
82+
moreores.tin_max_depth_deep = -128
83+
moreores.tin_min_depth_deep = -31000
84+
85+
-- Silver
86+
moreores.silver_max_depth_high = 31000
87+
moreores.silver_min_depth_high = 1025
88+
moreores.silver_max_depth = -64 -- For v6 mapgen, -32 fits better
89+
moreores.silver_min_depth = -127 -- For v6 mapgen, -63 fits better
90+
moreores.silver_max_depth_deep = -128 -- For v6 mapgen, -64 fits better
91+
moreores.silver_min_depth_deep = -31000
92+
93+
-- Mithril
94+
moreores.mithril_max_depth_high = 31000
95+
moreores.mithril_min_depth_high = 2049
96+
moreores.mithril_max_depth = -2048 -- For v6 mapgen, -256 fits better
97+
moreores.mithril_min_depth = -4095 -- For v6 mapgen, -511 fits better
98+
moreores.mithril_max_depth_deep = -4096 -- For v6 mapgen, -512 fits better
99+
moreores.mithril_min_depth_deep = -31000
100+
end

0 commit comments

Comments
 (0)