From e0f0dfdac7f9e9273c561e9ecd2f8fc4f7232a92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Brada?= Date: Tue, 14 Apr 2015 23:32:36 +0200 Subject: [PATCH] Note, how to rewrite mapgen. --- mapgen.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mapgen.lua b/mapgen.lua index 26163a9..0fa4f10 100644 --- a/mapgen.lua +++ b/mapgen.lua @@ -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 )