minetest.register_ore({
ore_type = "blob",
ore = "mygen:granite",
wherein = "air",
clust_scarcity = 16*16*16,
clust_num_ores = 8,
clust_size = 8,
height_min = 20,
height_max = 150,
})
clust_scarcity = 1
clust_num_ores = 1
clust_size = 2
noise_threshold = 2.4
noise_params = {
offset = 0,
scale = 2,
spread = {x=32, y=32, z=32},
seed = 65550,
octaves = 3,
persist = 0.26 }
SegFault22 wrote:I have been using these parameters:Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
clust_scarcity = 1
clust_num_ores = 1
clust_size = 2
noise_threshold = 2.4
noise_params = {
offset = 0,
scale = 2,
spread = {x=32, y=32, z=32},
seed = 65550,
octaves = 3,
persist = 0.26 }
ArguablySane wrote:SegFault22 wrote:...blah...
I see no reason why those parameters shouldn't work. The noise should be in the range -2.655 to 2.655, so a threshold of 2.4 should produce very infrequent patches.
I've never used sheet ore generation before so I don't have any working examples to test, but if you haven't solved the problem tomorrow I'll try digging into the source code and looking for bugs.
paramat wrote:Remember that scale is ignored when comparing against the threshold with sheet ore.
paramat wrote:A while back there were changes to how offset and scale transformed noise values which may cause a bug in sheet ore.
ArguablySane wrote:It seems that the seed value is overwritten though, so there's no reason to set that to anything other than zero.
PseudoRandom pr(blockseed + 4234);
MapNode n_ore(c_ore, 0, ore_param2);
int max_height = clust_size;
int y_start = pr.range(nmin.Y, nmax.Y - max_height);
if (!noise) {
int sx = nmax.X - nmin.X + 1;
int sz = nmax.Z - nmin.Z + 1;
noise = new Noise(&np, 0, sx, sz);
}
noise->seed = mapseed + y_start;
noise->perlinMap2D(nmin.X, nmin.Z);
Sokomine wrote:Once you got that to work, it might also be of intrest to darkage. Or was that already updated to the new ore generation functions? The (old?) darkage stone types where often found in sheets. It worked quite well.
Users browsing this forum: No registered users and 3 guests