From 475a413d2fdca2864bb78aa2bf051c59da811ad8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Brada?= Date: Mon, 20 Apr 2015 19:02:54 +0200 Subject: [PATCH] Fix all veins having radius 10. Pegmatite adapt new api and tweak. --- rocks/ign.lua | 2 +- rocks/pegmatite.lua | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/rocks/ign.lua b/rocks/ign.lua index 587b707..fbbea4c 100644 --- a/rocks/ign.lua +++ b/rocks/ign.lua @@ -68,7 +68,7 @@ local regv=function(name,param) ore_type = "blob", clust_scarcity = param.rarity^3, clust_num_ores = 8, - clust_size = 10*2, + clust_size = param.radius.average*2, height_min = -31000, height_max = 50, noise_threshhold = 0.5, --< determined experimentally diff --git a/rocks/pegmatite.lua b/rocks/pegmatite.lua index e5e9bf8..e0224da 100644 --- a/rocks/pegmatite.lua +++ b/rocks/pegmatite.lua @@ -2,9 +2,7 @@ -- Pegmatite vein -- -local CommonRarity=0.024 -local CommonRadius=8 -local CommonWherein={ "rocks:granite" } +local CommonRarity=32 minetest.register_node( "rocks:pegmatite", { description = S("Pegmatite"), @@ -30,7 +28,7 @@ minetest.register_node( "rocks:pegmatite", { rocks.register_vein("rocks:pegmatite",{ wherein={ "rocks:granite" }, miny=-160, maxy=20, - radius={ average=8, amplitude=4, frequency=5 }, + radius={ average=14, amplitude=0.3, frequency=16 }, density=80, rarity=CommonRarity, ores={ }