2014-12-14 22:37:06 +01:00
|
|
|
|
|
|
|
print (" ---- Overrider christmas_craft = true! ---- ")
|
|
|
|
|
2014-12-14 23:15:27 +01:00
|
|
|
minetest.after(0, function()
|
2014-12-14 22:37:06 +01:00
|
|
|
minetest.register_node(":default:dirt_with_grass", {
|
|
|
|
description = "Dirt with Grass",
|
|
|
|
tiles = {"snow.png", "default_dirt.png", "grass_w_snow_side.png"},
|
|
|
|
is_ground_content = true,
|
|
|
|
groups = {crumbly=3,soil=1},
|
|
|
|
drop = {
|
2014-12-15 19:05:19 +01:00
|
|
|
max_items = 3, items = {
|
2014-12-14 22:37:06 +01:00
|
|
|
{items = {'default:dirt'}, rarity = 0,},
|
2014-12-15 19:05:19 +01:00
|
|
|
{items = {'christmas_craft:snowball'}, rarity = 0,},
|
|
|
|
{items = {'snow:snowball_entity'}, rarity = 2,},
|
2014-12-14 22:37:06 +01:00
|
|
|
}},
|
|
|
|
sounds = default.node_sound_dirt_defaults({
|
|
|
|
footstep = {name="default_grass_footstep", gain=0.4},
|
|
|
|
}),
|
|
|
|
})
|
|
|
|
|
2014-12-15 18:32:11 +01:00
|
|
|
-- remplace leaves (normal)
|
2014-12-14 22:37:06 +01:00
|
|
|
minetest.register_node(":default:leaves", {
|
|
|
|
description = "Leaves",
|
|
|
|
drawtype = "nodebox",
|
|
|
|
visual_scale = 1.3,
|
|
|
|
tiles = {"snow.png", "christmas_craft_leaves_top.png", "christmas_craft_leaves_side.png"},
|
|
|
|
paramtype = "light",
|
2014-12-15 18:53:35 +01:00
|
|
|
walkable = false,
|
2014-12-14 22:37:06 +01:00
|
|
|
groups = {snappy=3, leafdecay=3, flammable=2, leaves=1},
|
|
|
|
drop = {
|
|
|
|
max_items = 1,
|
|
|
|
items = {
|
|
|
|
{
|
2014-12-15 18:32:11 +01:00
|
|
|
-- player will get sapling with 1/40 chance
|
2014-12-14 22:37:06 +01:00
|
|
|
items = {'default:sapling'},
|
2014-12-15 18:32:11 +01:00
|
|
|
rarity = 40,
|
2014-12-14 22:37:06 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
-- player will get leaves only if he get no saplings,
|
|
|
|
-- this is because max_items is 1
|
|
|
|
items = {'default:leaves'},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
|
|
|
|
},
|
|
|
|
},
|
2014-12-15 19:36:40 +01:00
|
|
|
})
|
2014-12-15 18:32:11 +01:00
|
|
|
-- remplace jungleleaves
|
2014-12-15 23:51:58 +01:00
|
|
|
minetest.register_node(":default:jungleleaves", {
|
2014-12-15 18:32:11 +01:00
|
|
|
description = "Leaves",
|
|
|
|
drawtype = "nodebox",
|
|
|
|
visual_scale = 1.3,
|
|
|
|
tiles = {"snow.png", "christmas_craft_leaves_top.png", "christmas_craft_leaves_side.png"},
|
|
|
|
paramtype = "light",
|
2014-12-15 18:53:35 +01:00
|
|
|
walkable = false,
|
2014-12-15 18:32:11 +01:00
|
|
|
groups = {snappy=3, leafdecay=3, flammable=2, leaves=1},
|
|
|
|
drop = {
|
|
|
|
max_items = 1,
|
|
|
|
items = {
|
|
|
|
{
|
|
|
|
-- player will get sapling with 1/40 chance
|
2014-12-15 21:01:34 +01:00
|
|
|
items = {'moretrees:jungletree_sapling'},
|
2014-12-15 18:32:11 +01:00
|
|
|
rarity = 40,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
-- player will get leaves only if he get no saplings,
|
|
|
|
-- this is because max_items is 1
|
2014-12-15 21:01:34 +01:00
|
|
|
items = {'moretrees:jungletree_leaves_green'},
|
2014-12-15 18:32:11 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
|
|
|
|
},
|
|
|
|
},
|
2014-12-14 22:37:06 +01:00
|
|
|
})
|
2014-12-15 19:05:19 +01:00
|
|
|
end)
|
2014-12-14 22:37:06 +01:00
|
|
|
|
|
|
|
print (" ---- Overrider christmas_craft [OK] ---- ")
|
|
|
|
|