diff --git a/mods/default/crafting.lua b/mods/default/crafting.lua index d2f588ff7c..1cfc3a47d2 100644 --- a/mods/default/crafting.lua +++ b/mods/default/crafting.lua @@ -39,6 +39,13 @@ minetest.register_craft({ } }) +minetest.register_craft({ + output = 'default:birchwood 4', + recipe = { + {'default:birchtree'}, + } +}) + minetest.register_craft({ output = "default:torch 4", recipe = { diff --git a/mods/default/nodes.lua b/mods/default/nodes.lua index 7e04675d44..8346efa354 100644 --- a/mods/default/nodes.lua +++ b/mods/default/nodes.lua @@ -764,12 +764,63 @@ minetest.register_node("default:sprucesapling", { sounds = default.node_sound_defaults(), }) +minetest.register_node("default:birchtree", { + description = "Birch Wood", + tiles = {"default_log_birch_top.png", "default_log_birch_top.png", "default_log_birch.png"}, + stack_max = 64, + paramtype2 = "facedir", + on_place = minetest.rotate_node, + groups = {tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2}, + sounds = default.node_sound_wood_defaults(), +}) --- aliases -minetest.register_alias("sapling", "default:sapling") -minetest.register_alias("junglesapling", "default:junglesapling") -minetest.register_alias("acaciasapling", "default:acaciasapling") -minetest.register_alias("sprucesapling", "default:sprucesapling") +minetest.register_node("default:birchwood", { + description = "Birch Wood Planks", + tiles = {"default_planks_birch.png"}, + stack_max = 64, + is_ground_content = false, + groups = {choppy=2,oddly_breakable_by_hand=2,flammable=3,wood=1}, + sounds = default.node_sound_wood_defaults(), +}) + +minetest.register_node("default:birchleaves", { + description = "Birch Leaves", + drawtype = "allfaces_optional", + visual_scale = 1.3, + tiles = {"default_leaves_birch.png"}, + paramtype = "light", + stack_max = 64, + groups = {snappy=3, leafdecay=3, flammable=2, leaves=1}, + drop = { + max_items = 1, + items = { + { + -- player will get sapling with 1/20 chance + items = {'default:birchsapling'}, + rarity = 20, + }, + } + }, + sounds = default.node_sound_leaves_defaults(), +}) + +minetest.register_node("default:birchsapling", { + description = "Birch Sapling", + drawtype = "plantlike", + visual_scale = 1.0, + tiles = {"default_sapling_birch.png"}, + inventory_image = "default_sapling_birch.png", + wield_image = "default_sapling_birch.png", + paramtype = "light", + walkable = false, + selection_box = { + type = "fixed", + fixed = {-0.3, -0.5, -0.3, 0.3, 0.35, 0.3} + }, + stack_max = 64, + groups = {snappy=2,dig_immediate=3,flammable=2,attached_node=1,dig_by_water=1}, + sounds = default.node_sound_defaults(), +}) minetest.register_node("default:junglegrass", { description = "Double Tallgrass", diff --git a/mods/default/textures/default_leaves_birch.png b/mods/default/textures/default_leaves_birch.png new file mode 100644 index 0000000000..5fc331a941 Binary files /dev/null and b/mods/default/textures/default_leaves_birch.png differ diff --git a/mods/default/textures/default_log_birch.png b/mods/default/textures/default_log_birch.png new file mode 100644 index 0000000000..5ce3b3efb4 Binary files /dev/null and b/mods/default/textures/default_log_birch.png differ diff --git a/mods/default/textures/default_log_birch_top.png b/mods/default/textures/default_log_birch_top.png new file mode 100644 index 0000000000..3b2bef1889 Binary files /dev/null and b/mods/default/textures/default_log_birch_top.png differ diff --git a/mods/default/textures/default_planks_birch.png b/mods/default/textures/default_planks_birch.png new file mode 100644 index 0000000000..fa340a0751 Binary files /dev/null and b/mods/default/textures/default_planks_birch.png differ diff --git a/mods/default/textures/default_sapling_birch.png b/mods/default/textures/default_sapling_birch.png new file mode 100644 index 0000000000..d0b62a5964 Binary files /dev/null and b/mods/default/textures/default_sapling_birch.png differ diff --git a/mods/doors/init.lua b/mods/doors/init.lua index e03b2a704e..1438115b2d 100644 --- a/mods/doors/init.lua +++ b/mods/doors/init.lua @@ -342,6 +342,15 @@ doors:register_door("doors:door_birch", { tiles_top = {"door_birch_a.png", "door_brown.png"}, }) +minetest.register_craft({ + output = "doors:door_birch 3", + recipe = { + {"default:birchwood", "default:birchwood"}, + {"default:birchwood", "default:birchwood"}, + {"default:birchwood", "default:birchwood"}, + } +}) + --- dark oak Door -- doors:register_door("doors:door_dark_oak", { description = "Dark Oak Door", diff --git a/mods/stairs/init.lua b/mods/stairs/init.lua index 5b12c11806..65c6dad82a 100644 --- a/mods/stairs/init.lua +++ b/mods/stairs/init.lua @@ -282,12 +282,12 @@ stairs.register_slab("sprucewood", "default:sprucewood", stairs.register_stair("birchwood", "default:birchwood", {snappy=2,choppy=2,oddly_breakable_by_hand=2,flammable=3}, - {"default_birchewood.png"}, + {"default_planks_birch.png"}, "Birch Wood Stairs", default.node_sound_wood_defaults()) stairs.register_slab("birchwood", "default:birchwood", {snappy=2,choppy=2,oddly_breakable_by_hand=2,flammable=3,wood_slab=1}, - {"default_birchwood.png"}, + {"default_planks_birch.png"}, "Birch Wood Slab", default.node_sound_wood_defaults())