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:
6
init.lua
6
init.lua
@ -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,
|
||||
})
|
||||
|
Reference in New Issue
Block a user