1
0
Fork 0

Add birch tree nodes

This commit is contained in:
Wuzzy 2017-01-10 02:38:08 +01:00
parent 55316472f1
commit 6925a07ae7
9 changed files with 74 additions and 7 deletions

View File

@ -39,6 +39,13 @@ minetest.register_craft({
} }
}) })
minetest.register_craft({
output = 'default:birchwood 4',
recipe = {
{'default:birchtree'},
}
})
minetest.register_craft({ minetest.register_craft({
output = "default:torch 4", output = "default:torch 4",
recipe = { recipe = {

View File

@ -764,12 +764,63 @@ minetest.register_node("default:sprucesapling", {
sounds = default.node_sound_defaults(), 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_node("default:birchwood", {
minetest.register_alias("sapling", "default:sapling") description = "Birch Wood Planks",
minetest.register_alias("junglesapling", "default:junglesapling") tiles = {"default_planks_birch.png"},
minetest.register_alias("acaciasapling", "default:acaciasapling") stack_max = 64,
minetest.register_alias("sprucesapling", "default:sprucesapling") 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", { minetest.register_node("default:junglegrass", {
description = "Double Tallgrass", description = "Double Tallgrass",

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 462 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 561 B

View File

@ -342,6 +342,15 @@ doors:register_door("doors:door_birch", {
tiles_top = {"door_birch_a.png", "door_brown.png"}, 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 -- --- dark oak Door --
doors:register_door("doors:door_dark_oak", { doors:register_door("doors:door_dark_oak", {
description = "Dark Oak Door", description = "Dark Oak Door",

View File

@ -282,12 +282,12 @@ stairs.register_slab("sprucewood", "default:sprucewood",
stairs.register_stair("birchwood", "default:birchwood", stairs.register_stair("birchwood", "default:birchwood",
{snappy=2,choppy=2,oddly_breakable_by_hand=2,flammable=3}, {snappy=2,choppy=2,oddly_breakable_by_hand=2,flammable=3},
{"default_birchewood.png"}, {"default_planks_birch.png"},
"Birch Wood Stairs", "Birch Wood Stairs",
default.node_sound_wood_defaults()) default.node_sound_wood_defaults())
stairs.register_slab("birchwood", "default:birchwood", stairs.register_slab("birchwood", "default:birchwood",
{snappy=2,choppy=2,oddly_breakable_by_hand=2,flammable=3,wood_slab=1}, {snappy=2,choppy=2,oddly_breakable_by_hand=2,flammable=3,wood_slab=1},
{"default_birchwood.png"}, {"default_planks_birch.png"},
"Birch Wood Slab", "Birch Wood Slab",
default.node_sound_wood_defaults()) default.node_sound_wood_defaults())