Fix birch/orange leaves dropping wrong sapling
[minetest_hades/hades_revisited.git] / mods / hades_trees / birch.lua
blob0b5c9885e11658a71dab3b60da6b2aee524b58b5
1 local S = minetest.get_translator("hades_trees")
3 hades_trees.register_trunk("birch_tree", {
4 description = S("Birch Tree Trunk"),
5 tiles = {"default_tree_birch_top.png", "default_tree_birch_top.png", "default_tree_birch.png"},
6 })
7 hades_trees.register_bark("birch_bark", {
8 description = S("Birch Bark"),
9 image = "default_tree_birch.png",
11 hades_trees.register_leaves("birch_leaves", {
12 description = S("Birch Leaves"),
13 image = "default_leaves_birch.png",
14 ash_fertilizer = 3,
15 drop_item = "hades_trees:birch_sapling",
16 drop_rarity = 30,
18 hades_trees.register_sapling("birch_sapling", {
19 description = S("Birch Sapling"),
20 image = "default_sapling_birch.png",
21 selbox = {-0.3, -0.5, -0.3, 0.3, 0.35, 0.3},
24 minetest.register_abm({
25 nodenames = {"hades_trees:birch_sapling"},
26 interval = 60,
27 chance = 20,
28 action = function(pos, node)
29 hades_trees.generate_birchtree(pos)
30 end