forked from mtcontrib/minetest-mod-snow
Fix pinetree leafdecay
This commit is contained in:
parent
13ecf6a8b2
commit
2df09a7ebb
@ -8,7 +8,7 @@ local nodedef = {
|
|||||||
tiles = {"snow_needles.png"},
|
tiles = {"snow_needles.png"},
|
||||||
waving = 1,
|
waving = 1,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {snappy=3, leafdecay=5},
|
groups = {snappy=3},
|
||||||
furnace_burntime = 1,
|
furnace_burntime = 1,
|
||||||
drop = {
|
drop = {
|
||||||
max_items = 1,
|
max_items = 1,
|
||||||
@ -43,6 +43,12 @@ end
|
|||||||
|
|
||||||
minetest.register_node("snow:needles", table.copy(nodedef))
|
minetest.register_node("snow:needles", table.copy(nodedef))
|
||||||
|
|
||||||
|
default.register_leafdecay{
|
||||||
|
trunks = {"default:pine_tree"},
|
||||||
|
leaves = {"snow:needles"},
|
||||||
|
radius = 2,
|
||||||
|
}
|
||||||
|
|
||||||
snow.register_on_configuring(function(name, v)
|
snow.register_on_configuring(function(name, v)
|
||||||
if name == "christmas_content" then
|
if name == "christmas_content" then
|
||||||
local drop = minetest.registered_nodes["snow:needles"].drop
|
local drop = minetest.registered_nodes["snow:needles"].drop
|
||||||
@ -301,8 +307,9 @@ nodedef = {
|
|||||||
dug = {name="default_snow_footstep", gain=0.75},
|
dug = {name="default_snow_footstep", gain=0.75},
|
||||||
place = {name="default_place_node", gain=1.0}
|
place = {name="default_place_node", gain=1.0}
|
||||||
}),
|
}),
|
||||||
-- The "on_construct" part below, thinking in terms of layers, dirt_with_snow could also
|
-- The "on_construct" part below, thinking in terms of layers,
|
||||||
-- double as dirt_with_frost which adds subtlety to the winterscape. ~ LazyJ
|
-- dirt_with_snow could also double as dirt_with_frost which adds subtlety
|
||||||
|
-- to the winterscape. ~ LazyJ
|
||||||
on_construct = snow_onto_dirt
|
on_construct = snow_onto_dirt
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user