1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-25 02:00:37 +01:00

activate snow on landscape

This commit is contained in:
crabman77 2015-12-21 20:34:01 +01:00
parent 4594eaadab
commit 293b8536a8
2 changed files with 32 additions and 2 deletions

View File

@ -1,6 +1,6 @@
--dofile(minetest.get_modpath("christmas_craft").."/mods.lua")--disabled because 4seasons is not installed
dofile(minetest.get_modpath("christmas_craft").."/crafts.lua") --temporary disabled because cristmas is over--
-- dofile(minetest.get_modpath("christmas_craft").."/settings.lua") -- makes it snow
dofile(minetest.get_modpath("christmas_craft").."/settings.lua") -- makes it snow
-- blocks --
minetest.register_node("christmas_craft:snowman", {

View File

@ -11,13 +11,43 @@ minetest.register_node(":default:dirt_with_grass", {
max_items = 3, items = {
{items = {'default:dirt'}, rarity = 0,},
{items = {'christmas_craft:snowball'}, rarity = 0,},
{items = {'snow:snowball_entity'}, rarity = 2,},
--{items = {'snow:snowball_entity'}, rarity = 2,},
}},
sounds = default.node_sound_dirt_defaults({
footstep = {name="default_grass_footstep", gain=0.4},
}),
})
minetest.register_node(":default:dirt_with_dry_grass", {
description = "Dirt with Dry Grass",
tiles = {"snow.png", "default_dirt.png", {name = "grass_w_snow_side.png", tileable_vertical = false}},
groups = {crumbly = 3, soil = 1},
drop = {
max_items = 3, items = {
{items = {'default:dirt'}, rarity = 0,},
{items = {'christmas_craft:snowball'}, rarity = 0,},
--{items = {'snow:snowball_entity'}, rarity = 2,},
}},
sounds = default.node_sound_dirt_defaults({
footstep = {name = "default_grass_footstep", gain = 0.4},
}),
})
minetest.register_node(":default:dirt", {
description = "Dirt",
tiles = {"snow.png", "default_dirt.png", "grass_w_snow_side.png"},
groups = {crumbly=3, soil=1},
drop = {
items = {
{items = {"default:dirt"}},
{items = {"maptools:copper_coin"}, rarity = 32},
{items = {'christmas_craft:snowball'}, rarity = 0,},
--{items = {'snow:snowball_entity'}, rarity = 2,},
},
},
sounds = default.node_sound_dirt_defaults(),
})
-- remplace leaves (normal)
minetest.register_node(":default:leaves", {
description = "Leaves",