From c3167e872012f318270a3a25c20daa775946d1af 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 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mapgen.lua b/mapgen.lua index 6531b7d..26163a9 100644 --- a/mapgen.lua +++ b/mapgen.lua @@ -38,6 +38,11 @@ rocksl.register_vein=function(col,name,param) table.insert(col,d) end +-- TODO: rewrite above function to register normal minetest ore, with +-- 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 + rocksl.layergen=function(layer, minp, maxp, seed) if ( (layer.top.offset+layer.top.scale)>minp.y ) and ( (layer.bot.offset-layer.bot.scale)