Skip to content

Commit 8d8f2f7

Browse files
authoredApr 11, 2018
Ore distribution: Deeper iron, diamond and mese block, tune gold (#2107)
Iron at y = 0 was far too easy to find. Adjust gold lower region to be twice the depth of highest level, like all other ores. Diamond at y = -500 was too easy to progress to. Make diamond and mese block deeper to create a depth progression from mese crystal to diamond, to reflect tool progression. This all creates a satisfying 2^n depth progression, with lower regions being at twice the depth of highest levels.
1 parent 8c71f3d commit 8d8f2f7

File tree

1 file changed

+31
-31
lines changed

1 file changed

+31
-31
lines changed
 

Diff for: ‎mods/default/mapgen.lua

+31-31
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ function default.register_ores()
576576
clust_scarcity = 7 * 7 * 7,
577577
clust_num_ores = 5,
578578
clust_size = 3,
579-
y_max = 0,
579+
y_max = -64,
580580
y_min = -127,
581581
})
582582

@@ -682,7 +682,7 @@ function default.register_ores()
682682
clust_num_ores = 3,
683683
clust_size = 2,
684684
y_max = -256,
685-
y_min = -1023,
685+
y_min = -511,
686686
})
687687

688688
minetest.register_ore({
@@ -692,77 +692,77 @@ function default.register_ores()
692692
clust_scarcity = 13 * 13 * 13,
693693
clust_num_ores = 5,
694694
clust_size = 3,
695-
y_max = -1024,
695+
y_max = -512,
696696
y_min = -31000,
697697
})
698698

699-
-- Diamond
699+
-- Mese crystal
700700

701701
minetest.register_ore({
702702
ore_type = "scatter",
703-
ore = "default:stone_with_diamond",
703+
ore = "default:stone_with_mese",
704704
wherein = "default:stone",
705-
clust_scarcity = 15 * 15 * 15,
706-
clust_num_ores = 4,
705+
clust_scarcity = 14 * 14 * 14,
706+
clust_num_ores = 5,
707707
clust_size = 3,
708708
y_max = 31000,
709709
y_min = 1025,
710710
})
711711

712712
minetest.register_ore({
713713
ore_type = "scatter",
714-
ore = "default:stone_with_diamond",
714+
ore = "default:stone_with_mese",
715715
wherein = "default:stone",
716-
clust_scarcity = 17 * 17 * 17,
717-
clust_num_ores = 4,
718-
clust_size = 3,
716+
clust_scarcity = 18 * 18 * 18,
717+
clust_num_ores = 3,
718+
clust_size = 2,
719719
y_max = -512,
720720
y_min = -1023,
721721
})
722722

723723
minetest.register_ore({
724724
ore_type = "scatter",
725-
ore = "default:stone_with_diamond",
725+
ore = "default:stone_with_mese",
726726
wherein = "default:stone",
727-
clust_scarcity = 15 * 15 * 15,
728-
clust_num_ores = 4,
727+
clust_scarcity = 14 * 14 * 14,
728+
clust_num_ores = 5,
729729
clust_size = 3,
730730
y_max = -1024,
731731
y_min = -31000,
732732
})
733733

734-
-- Mese crystal
734+
-- Diamond
735735

736736
minetest.register_ore({
737737
ore_type = "scatter",
738-
ore = "default:stone_with_mese",
738+
ore = "default:stone_with_diamond",
739739
wherein = "default:stone",
740-
clust_scarcity = 14 * 14 * 14,
741-
clust_num_ores = 5,
740+
clust_scarcity = 15 * 15 * 15,
741+
clust_num_ores = 4,
742742
clust_size = 3,
743743
y_max = 31000,
744744
y_min = 1025,
745745
})
746746

747747
minetest.register_ore({
748748
ore_type = "scatter",
749-
ore = "default:stone_with_mese",
749+
ore = "default:stone_with_diamond",
750750
wherein = "default:stone",
751-
clust_scarcity = 18 * 18 * 18,
752-
clust_num_ores = 3,
753-
clust_size = 2,
754-
y_max = -512,
755-
y_min = -1023,
751+
clust_scarcity = 17 * 17 * 17,
752+
clust_num_ores = 4,
753+
clust_size = 3,
754+
y_max = -1024,
755+
y_min = -2047,
756756
})
757757

758758
minetest.register_ore({
759759
ore_type = "scatter",
760-
ore = "default:stone_with_mese",
760+
ore = "default:stone_with_diamond",
761761
wherein = "default:stone",
762-
clust_scarcity = 14 * 14 * 14,
763-
clust_num_ores = 5,
762+
clust_scarcity = 15 * 15 * 15,
763+
clust_num_ores = 4,
764764
clust_size = 3,
765-
y_max = -1024,
765+
y_max = -2048,
766766
y_min = -31000,
767767
})
768768

@@ -786,8 +786,8 @@ function default.register_ores()
786786
clust_scarcity = 36 * 36 * 36,
787787
clust_num_ores = 3,
788788
clust_size = 2,
789-
y_max = -1024,
790-
y_min = -2047,
789+
y_max = -2048,
790+
y_min = -4095,
791791
})
792792

793793
minetest.register_ore({
@@ -797,7 +797,7 @@ function default.register_ores()
797797
clust_scarcity = 28 * 28 * 28,
798798
clust_num_ores = 5,
799799
clust_size = 3,
800-
y_max = -2048,
800+
y_max = -4096,
801801
y_min = -31000,
802802
})
803803
end

0 commit comments

Comments
 (0)
Please sign in to comment.