mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-13 05:50:31 +01:00
Small fix about "christmas_craft" mod
This commit is contained in:
parent
d503126f05
commit
8ff2a55b74
|
@ -57,7 +57,7 @@ minetest.register_node(":default:leaves", {
|
|||
},
|
||||
})
|
||||
-- remplace jungleleaves
|
||||
minetest.register_node(":default:jungletree_leaves", {
|
||||
minetest.register_node(":default:jungleleaves", {
|
||||
description = "Leaves",
|
||||
drawtype = "nodebox",
|
||||
visual_scale = 1.3,
|
||||
|
|
100
mods/christmas_craft/settings.lua~
Normal file
100
mods/christmas_craft/settings.lua~
Normal file
|
@ -0,0 +1,100 @@
|
|||
|
||||
print (" ---- Overrider christmas_craft = true! ---- ")
|
||||
|
||||
minetest.after(0, function()
|
||||
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 = {
|
||||
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},
|
||||
}),
|
||||
})
|
||||
|
||||
-- remplace leaves (normal)
|
||||
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",
|
||||
walkable = false,
|
||||
groups = {snappy=3, leafdecay=3, flammable=2, leaves=1},
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{
|
||||
-- player will get sapling with 1/40 chance
|
||||
items = {'default:sapling'},
|
||||
rarity = 40,
|
||||
},
|
||||
{
|
||||
-- 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},
|
||||
},
|
||||
},
|
||||
})
|
||||
-- remplace jungleleaves
|
||||
minetest.register_node(":default:jungletree_leaves", {
|
||||
description = "Leaves",
|
||||
drawtype = "nodebox",
|
||||
visual_scale = 1.3,
|
||||
tiles = {"snow.png", "christmas_craft_leaves_top.png", "christmas_craft_leaves_side.png"},
|
||||
paramtype = "light",
|
||||
walkable = false,
|
||||
groups = {snappy=3, leafdecay=3, flammable=2, leaves=1},
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{
|
||||
-- player will get sapling with 1/40 chance
|
||||
items = {'moretrees:jungletree_sapling'},
|
||||
rarity = 40,
|
||||
},
|
||||
{
|
||||
-- player will get leaves only if he get no saplings,
|
||||
-- this is because max_items is 1
|
||||
items = {'moretrees:jungletree_leaves_green'},
|
||||
}
|
||||
}
|
||||
},
|
||||
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},
|
||||
},
|
||||
},
|
||||
})
|
||||
end)
|
||||
|
||||
print (" ---- Overrider christmas_craft [OK] ---- ")
|
||||
|
Loading…
Reference in New Issue
Block a user