forked from mtcontrib/minetest-mod-snow
Merge branch 'master' into nalc
This commit is contained in:
commit
3b44907492
@ -19,7 +19,7 @@ snow_debug (Debug Mode) bool false
|
|||||||
#Disable this to remove christmas saplings from being found.
|
#Disable this to remove christmas saplings from being found.
|
||||||
snow_christmas_content (Enable Christmas Content) bool true
|
snow_christmas_content (Enable Christmas Content) bool true
|
||||||
|
|
||||||
#Enables debug output. Currently it only prints mgv6 info.
|
#Enables smooth biome transitions.
|
||||||
snow_smooth_biomes (Smooth Biome Transitions) bool true
|
snow_smooth_biomes (Smooth Biome Transitions) bool true
|
||||||
|
|
||||||
#The minumum height a snow biome will generate (mgv7)
|
#The minumum height a snow biome will generate (mgv7)
|
||||||
@ -28,7 +28,8 @@ snow_min_height (Minumum Height for Snow Biomes) int 3
|
|||||||
#Disable this to stop snow from being smoothed.
|
#Disable this to stop snow from being smoothed.
|
||||||
snow_smooth_snow (Multiple Snow Levels) bool true
|
snow_smooth_snow (Multiple Snow Levels) bool true
|
||||||
|
|
||||||
#mapgen rarity in %.
|
#mapgen rarity in %. Note that this and mapgen_size do not work right because
|
||||||
|
#sinus instead of Gauss curve is used as estimation.
|
||||||
snow_mapgen_rarity (Snow Biome Rarity %) float 18
|
snow_mapgen_rarity (Snow Biome Rarity %) float 18
|
||||||
|
|
||||||
#size of the generated… (has an effect to the rarity, too)
|
#size of the generated… (has an effect to the rarity, too)
|
||||||
|
@ -255,7 +255,7 @@ minetest.register_on_generated(function(minp, maxp, seed)
|
|||||||
if not in_biome then
|
if not in_biome then
|
||||||
if alpine
|
if alpine
|
||||||
and test
|
and test
|
||||||
and test > smooth_rarity_min then
|
and test > (smooth and smooth_rarity_min or nosmooth_rarity) then
|
||||||
-- remove trees near alpine
|
-- remove trees near alpine
|
||||||
local ground_y
|
local ground_y
|
||||||
if data[area:index(x, maxp.y, z)] == c.air then
|
if data[area:index(x, maxp.y, z)] == c.air then
|
||||||
@ -345,7 +345,8 @@ minetest.register_on_generated(function(minp, maxp, seed)
|
|||||||
data[area:index(x, ground_y+1, z)] = c.dry_shrub
|
data[area:index(x, ground_y+1, z)] = c.dry_shrub
|
||||||
else
|
else
|
||||||
if snowy
|
if snowy
|
||||||
or test > smooth_rarity_max then
|
or test > (smooth and smooth_rarity_max or
|
||||||
|
nosmooth_rarity) then
|
||||||
-- more, deeper snow
|
-- more, deeper snow
|
||||||
data[node] = c.snow_block
|
data[node] = c.snow_block
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user