@@ -500,16 +500,30 @@ minetest.register_node("default:sapling", {
sunlight_propagates = true ,
walkable = false ,
on_timer = default.grow_sapling ,
on_construct = function (pos )
minetest.get_node_timer (pos):start (math.random (2400 ,4800 ))
end ,
selection_box = {
type = " fixed" ,
fixed = {- 0.3 , - 0.5 , - 0.3 , 0.3 , 0.35 , 0.3 }
},
groups = {snappy = 2 , dig_immediate = 3 , flammable = 2 ,
attached_node = 1 , sapling = 1 },
sounds = default.node_sound_leaves_defaults (),
on_construct = function (pos )
minetest.get_node_timer (pos):start (math.random (2400 ,4800 ))
end ,
on_place = function (itemstack , placer , pointed_thing )
itemstack = default.sapling_on_place (itemstack, placer, pointed_thing,
" default:sapling" ,
-- minp, maxp to be checked, relative to sapling pos
-- minp_relative.y = 1 because sapling pos has been checked
{x = - 2 , y = 1 , z = - 2 },
{x = 2 , y = 6 , z = 2 },
-- maximum interval of interior volume check
4 )
return itemstack
end ,
})
minetest.register_node (" default:leaves" , {
@@ -624,16 +638,30 @@ minetest.register_node("default:junglesapling", {
sunlight_propagates = true ,
walkable = false ,
on_timer = default.grow_sapling ,
on_construct = function (pos )
minetest.get_node_timer (pos):start (math.random (2400 ,4800 ))
end ,
selection_box = {
type = " fixed" ,
fixed = {- 0.3 , - 0.5 , - 0.3 , 0.3 , 0.35 , 0.3 }
},
groups = {snappy = 2 , dig_immediate = 3 , flammable = 2 ,
attached_node = 1 , sapling = 1 },
sounds = default.node_sound_leaves_defaults (),
on_construct = function (pos )
minetest.get_node_timer (pos):start (math.random (2400 ,4800 ))
end ,
on_place = function (itemstack , placer , pointed_thing )
itemstack = default.sapling_on_place (itemstack, placer, pointed_thing,
" default:junglesapling" ,
-- minp, maxp to be checked, relative to sapling pos
-- minp_relative.y = 1 because sapling pos has been checked
{x = - 2 , y = 1 , z = - 2 },
{x = 2 , y = 15 , z = 2 },
-- maximum interval of interior volume check
4 )
return itemstack
end ,
})
@@ -691,16 +719,30 @@ minetest.register_node("default:pine_sapling", {
sunlight_propagates = true ,
walkable = false ,
on_timer = default.grow_sapling ,
on_construct = function (pos )
minetest.get_node_timer (pos):start (math.random (2400 ,4800 ))
end ,
selection_box = {
type = " fixed" ,
fixed = {- 0.3 , - 0.5 , - 0.3 , 0.3 , 0.35 , 0.3 }
},
groups = {snappy = 2 , dig_immediate = 3 , flammable = 2 ,
attached_node = 1 , sapling = 1 },
sounds = default.node_sound_leaves_defaults (),
on_construct = function (pos )
minetest.get_node_timer (pos):start (math.random (2400 ,4800 ))
end ,
on_place = function (itemstack , placer , pointed_thing )
itemstack = default.sapling_on_place (itemstack, placer, pointed_thing,
" default:pine_sapling" ,
-- minp, maxp to be checked, relative to sapling pos
-- minp_relative.y = 1 because sapling pos has been checked
{x = - 2 , y = 1 , z = - 2 },
{x = 2 , y = 12 , z = 2 },
-- maximum interval of interior volume check
4 )
return itemstack
end ,
})
@@ -758,16 +800,30 @@ minetest.register_node("default:acacia_sapling", {
sunlight_propagates = true ,
walkable = false ,
on_timer = default.grow_sapling ,
on_construct = function (pos )
minetest.get_node_timer (pos):start (math.random (2400 ,4800 ))
end ,
selection_box = {
type = " fixed" ,
fixed = {- 0.3 , - 0.5 , - 0.3 , 0.3 , 0.35 , 0.3 }
},
groups = {snappy = 2 , dig_immediate = 3 , flammable = 2 ,
attached_node = 1 , sapling = 1 },
sounds = default.node_sound_leaves_defaults (),
on_construct = function (pos )
minetest.get_node_timer (pos):start (math.random (2400 ,4800 ))
end ,
on_place = function (itemstack , placer , pointed_thing )
itemstack = default.sapling_on_place (itemstack, placer, pointed_thing,
" default:acacia_sapling" ,
-- minp, maxp to be checked, relative to sapling pos
-- minp_relative.y = 1 because sapling pos has been checked
{x = - 4 , y = 1 , z = - 4 },
{x = 4 , y = 6 , z = 4 },
-- maximum interval of interior volume check
4 )
return itemstack
end ,
})
minetest.register_node (" default:aspen_tree" , {
@@ -824,17 +880,32 @@ minetest.register_node("default:aspen_sapling", {
sunlight_propagates = true ,
walkable = false ,
on_timer = default.grow_sapling ,
on_construct = function (pos )
minetest.get_node_timer (pos):start (math.random (2400 ,4800 ))
end ,
selection_box = {
type = " fixed" ,
fixed = {- 0.3 , - 0.5 , - 0.3 , 0.3 , 0.35 , 0.3 }
},
groups = {snappy = 2 , dig_immediate = 3 , flammable = 2 ,
attached_node = 1 , sapling = 1 },
sounds = default.node_sound_leaves_defaults (),
on_construct = function (pos )
minetest.get_node_timer (pos):start (math.random (2400 ,4800 ))
end ,
on_place = function (itemstack , placer , pointed_thing )
itemstack = default.sapling_on_place (itemstack, placer, pointed_thing,
" default:aspen_sapling" ,
-- minp, maxp to be checked, relative to sapling pos
-- minp_relative.y = 1 because sapling pos has been checked
{x = - 2 , y = 1 , z = - 2 },
{x = 2 , y = 12 , z = 2 },
-- maximum interval of interior volume check
4 )
return itemstack
end ,
})
--
-- Ores
--