1
0
mirror of git://repo.or.cz/rocks.git synced 2025-01-01 14:00:30 +01:00

Note, how to rewrite mapgen.

This commit is contained in:
Tomáš Brada 2015-04-14 23:32:36 +02:00
parent c3167e8720
commit e0f0dfdac7

View File

@ -42,6 +42,10 @@ end
-- special params, so the below func is not necesary. The mt oregen runs in
-- separate therad (emerge) and it does not block server.
-- params: type=scatter scacrity=1 size=3 ores=27 : full chance of spawning, only limited by noise thr
-- EDIT: Need to edit mg_ore.cpp and Add following ore_types: layer, blob, region.
-- layer=2Dheightmap style layer with specific thickness
-- blob= 3D noise deformed sphere
-- region= 3D noise / treshold ore placement.
rocksl.layergen=function(layer, minp, maxp, seed)
if ( (layer.top.offset+layer.top.scale)>minp.y )