mirror of
https://github.com/Splizard/minetest-mod-snow.git
synced 2025-06-30 15:20:20 +02:00
Fix crash et modifications de la génération du terrain
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
-- NODES
|
||||
|
||||
-- Pine Needles
|
||||
local nodedef = {
|
||||
--[[local nodedef = {
|
||||
description = "Pine Needles",
|
||||
drawtype = "allfaces_optional",
|
||||
visual_scale = 1.3,
|
||||
@ -25,7 +25,22 @@ local nodedef = {
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
}
|
||||
|
||||
]]--
|
||||
local nodedef = table.copy(minetest.registered_nodes["default:pine_needles"])
|
||||
nodedef.tiles = {"snow_needles.png"}
|
||||
nodedef.drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{
|
||||
-- player will get sapling with 1/20 chance
|
||||
items = {'snow:sapling_pine'},
|
||||
rarity = 20,
|
||||
},
|
||||
{
|
||||
items = {'snow:needles'},
|
||||
}
|
||||
}
|
||||
}
|
||||
--[[
|
||||
If christmas_content is enabled, then this next part will override the pine needles' drop code
|
||||
(in the code section above) and adds Xmas tree saplings to the items that are dropped.
|
||||
@ -64,8 +79,6 @@ snow.register_on_configuring(function(name, v)
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
|
||||
-- Christmas egg
|
||||
if minetest.global_exists("skins") then
|
||||
skins.add("character_snow_man")
|
||||
@ -94,7 +107,7 @@ minetest.register_node("snow:needles_decorated", nodedef)
|
||||
-- Saplings
|
||||
|
||||
nodedef = {
|
||||
description = "Pine Sapling",
|
||||
description = "Snow Pine Sapling",
|
||||
drawtype = "plantlike",
|
||||
visual_scale = 1.0,
|
||||
tiles = {"snow_sapling_pine.png"},
|
||||
|
Reference in New Issue
Block a user