--]]
+-- Required wrapper to allow customization of default.after_place_leaves
+local function after_place_leaves(...)
+ return default.after_place_leaves(...)
+end
+
+-- Required wrapper to allow customization of default.grow_sapling
+local function grow_sapling(...)
+ return default.grow_sapling(...)
+end
+
--
-- Stone
--
paramtype = "light",
sunlight_propagates = true,
walkable = false,
- on_timer = default.grow_sapling,
+ on_timer = grow_sapling,
selection_box = {
type = "fixed",
fixed = {-4 / 16, -0.5, -4 / 16, 4 / 16, 7 / 16, 4 / 16}
},
sounds = default.node_sound_leaves_defaults(),
- after_place_node = default.after_place_leaves,
+ after_place_node = after_place_leaves,
})
minetest.register_node("default:apple", {
},
sounds = default.node_sound_leaves_defaults(),
- after_place_node = default.after_place_leaves,
+ after_place_node = after_place_leaves,
})
minetest.register_node("default:junglesapling", {
paramtype = "light",
sunlight_propagates = true,
walkable = false,
- on_timer = default.grow_sapling,
+ on_timer = grow_sapling,
selection_box = {
type = "fixed",
fixed = {-4 / 16, -0.5, -4 / 16, 4 / 16, 7 / 16, 4 / 16}
paramtype = "light",
sunlight_propagates = true,
walkable = false,
- on_timer = default.grow_sapling,
+ on_timer = grow_sapling,
selection_box = {
type = "fixed",
fixed = {-4 / 16, -0.5, -4 / 16, 4 / 16, 7 / 16, 4 / 16}
},
sounds = default.node_sound_leaves_defaults(),
- after_place_node = default.after_place_leaves,
+ after_place_node = after_place_leaves,
})
minetest.register_node("default:pine_sapling", {
paramtype = "light",
sunlight_propagates = true,
walkable = false,
- on_timer = default.grow_sapling,
+ on_timer = grow_sapling,
selection_box = {
type = "fixed",
fixed = {-4 / 16, -0.5, -4 / 16, 4 / 16, 7 / 16, 4 / 16}
},
sounds = default.node_sound_leaves_defaults(),
- after_place_node = default.after_place_leaves,
+ after_place_node = after_place_leaves,
})
minetest.register_node("default:acacia_sapling", {
paramtype = "light",
sunlight_propagates = true,
walkable = false,
- on_timer = default.grow_sapling,
+ on_timer = grow_sapling,
selection_box = {
type = "fixed",
fixed = {-4 / 16, -0.5, -4 / 16, 4 / 16, 7 / 16, 4 / 16}
},
sounds = default.node_sound_leaves_defaults(),
- after_place_node = default.after_place_leaves,
+ after_place_node = after_place_leaves,
})
minetest.register_node("default:aspen_sapling", {
paramtype = "light",
sunlight_propagates = true,
walkable = false,
- on_timer = default.grow_sapling,
+ on_timer = grow_sapling,
selection_box = {
type = "fixed",
fixed = {-3 / 16, -0.5, -3 / 16, 3 / 16, 0.5, 3 / 16}
},
sounds = default.node_sound_leaves_defaults(),
- after_place_node = default.after_place_leaves,
+ after_place_node = after_place_leaves,
})
minetest.register_node("default:bush_sapling", {
paramtype = "light",
sunlight_propagates = true,
walkable = false,
- on_timer = default.grow_sapling,
+ on_timer = grow_sapling,
selection_box = {
type = "fixed",
fixed = {-4 / 16, -0.5, -4 / 16, 4 / 16, 2 / 16, 4 / 16}
end
end,
- after_place_node = default.after_place_leaves,
+ after_place_node = after_place_leaves,
})
minetest.register_node("default:blueberry_bush_sapling", {
paramtype = "light",
sunlight_propagates = true,
walkable = false,
- on_timer = default.grow_sapling,
+ on_timer = grow_sapling,
selection_box = {
type = "fixed",
fixed = {-4 / 16, -0.5, -4 / 16, 4 / 16, 2 / 16, 4 / 16}
},
sounds = default.node_sound_leaves_defaults(),
- after_place_node = default.after_place_leaves,
+ after_place_node = after_place_leaves,
})
minetest.register_node("default:acacia_bush_sapling", {
paramtype = "light",
sunlight_propagates = true,
walkable = false,
- on_timer = default.grow_sapling,
+ on_timer = grow_sapling,
selection_box = {
type = "fixed",
fixed = {-3 / 16, -0.5, -3 / 16, 3 / 16, 2 / 16, 3 / 16}
},
sounds = default.node_sound_leaves_defaults(),
- after_place_node = default.after_place_leaves,
+ after_place_node = after_place_leaves,
})
minetest.register_node("default:pine_bush_sapling", {
paramtype = "light",
sunlight_propagates = true,
walkable = false,
- on_timer = default.grow_sapling,
+ on_timer = grow_sapling,
selection_box = {
type = "fixed",
fixed = {-4 / 16, -0.5, -4 / 16, 4 / 16, 2 / 16, 4 / 16}