1
0
mirror of https://github.com/Splizard/minetest-mod-snow.git synced 2025-06-30 15:20:20 +02:00

Add two biomes, Snowy and Plain.

This commit is contained in:
Splizard
2012-12-18 12:51:27 +13:00
parent 895f9c3e9e
commit 5288d4ef94
2 changed files with 116 additions and 92 deletions

View File

@ -250,6 +250,7 @@ minetest.register_node("snow:snow_block", {
--mapgen defines the vegetation.
--1 = Moss
--2 = Papyrus
--3 = Dry shrub
is_ground_content = true,
groups = {crumbly=3,melts=2,falling_node=1},
drop = 'snow:snow_block',
@ -268,6 +269,11 @@ minetest.register_node("snow:snow_block", {
if n == "air" or n == "default:water_flowing" or n == "default:water_source" then
minetest.env:add_node(pos,{name="default:papyrus"})
end
elseif node.param2 == 3 then
local n = minetest.env:get_node(pos).name
if n == "air" or n == "default:water_flowing" or n == "default:water_source" then
minetest.env:add_node(pos,{name="default:dry_shrub"})
end
end
end,
})