mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-25 20:11:06 +01:00
Add dark oak nodes
This commit is contained in:
parent
27ef97c347
commit
ce30a2ff84
9 changed files with 78 additions and 1 deletions
|
@ -11,6 +11,13 @@ minetest.register_craft({
|
|||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'default:darkwood 4',
|
||||
recipe = {
|
||||
{'default:darktree'},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'default:junglewood 4',
|
||||
recipe = {
|
||||
|
|
|
@ -604,6 +604,8 @@ minetest.register_abm({
|
|||
--------------------------
|
||||
-- Try generate tree ---
|
||||
--------------------------
|
||||
-- TODO: Acacia, dark oak, spruce, birch
|
||||
|
||||
-- Normal tree
|
||||
minetest.register_abm({
|
||||
nodenames = {"default:sapling"},
|
||||
|
|
|
@ -471,7 +471,7 @@ minetest.register_node("default:prismarine_dark", {
|
|||
|
||||
|
||||
|
||||
-- Normal tree --
|
||||
-- Oak tree --
|
||||
minetest.register_node("default:tree", {
|
||||
description = "Oak Wood",
|
||||
tiles = {"default_tree_top.png", "default_tree_top.png", "default_tree.png"},
|
||||
|
@ -526,6 +526,56 @@ minetest.register_node("default:leaves", {
|
|||
sounds = default.node_sound_leaves_defaults(),
|
||||
})
|
||||
|
||||
-- Dark oak tree --
|
||||
minetest.register_node("default:dark_tree", {
|
||||
description = "Dark Oak Wood",
|
||||
tiles = {"default_log_big_oak_top.png", "default_log_big_oak_top.png", "default_log_big_oak.png"},
|
||||
paramtype2 = "facedir",
|
||||
on_place = minetest.rotate_node,
|
||||
stack_max = 64,
|
||||
groups = {tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("default:darksapling", {
|
||||
description = "Dark Oak Sapling",
|
||||
drawtype = "plantlike",
|
||||
visual_scale = 1.0,
|
||||
tiles = {"default_sapling_big_oak.png"},
|
||||
inventory_image = "default_sapling_big_oak.png",
|
||||
wield_image = "default_sapling_big_oak.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:darkleaves", {
|
||||
description = "Dark Oak Leaves",
|
||||
drawtype = "allfaces_optional",
|
||||
visual_scale = 1.3,
|
||||
tiles = {"default_leaves_big_oak.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:darksapling'},
|
||||
rarity = 20,
|
||||
},
|
||||
}
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
})
|
||||
|
||||
-- Jungle Tree --
|
||||
|
||||
minetest.register_node("default:jungletree", {
|
||||
|
@ -1013,6 +1063,15 @@ minetest.register_node("default:wood", {
|
|||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("default:darkwood", {
|
||||
description = "Dark Oak Wood Planks",
|
||||
tiles = {"default_planks_big_oak.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:water_flowing", {
|
||||
description = "Flowing Water",
|
||||
inventory_image = minetest.inventorycube("default_water.png"),
|
||||
|
|
BIN
mods/default/textures/default_leaves_big_oak.png
Normal file
BIN
mods/default/textures/default_leaves_big_oak.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.9 KiB |
BIN
mods/default/textures/default_log_big_oak.png
Normal file
BIN
mods/default/textures/default_log_big_oak.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.3 KiB |
BIN
mods/default/textures/default_log_big_oak_top.png
Normal file
BIN
mods/default/textures/default_log_big_oak_top.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.2 KiB |
BIN
mods/default/textures/default_planks_big_oak.png
Normal file
BIN
mods/default/textures/default_planks_big_oak.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.3 KiB |
BIN
mods/default/textures/default_sapling_big_oak.png
Normal file
BIN
mods/default/textures/default_sapling_big_oak.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2 KiB |
|
@ -352,6 +352,15 @@ doors:register_door("doors:door_dark_oak", {
|
|||
tiles_top = {"door_dark_oak_a.png", "door_brown.png"},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "doors:door_dark_oak 3",
|
||||
recipe = {
|
||||
{"default:darkwood", "default:darkwood"},
|
||||
{"default:darkwood", "default:darkwood"},
|
||||
{"default:darkwood", "default:darkwood"},
|
||||
}
|
||||
})
|
||||
|
||||
--- jungle Door --
|
||||
doors:register_door("doors:door_jungle", {
|
||||
description = "Jungle Door",
|
||||
|
|
Loading…
Reference in a new issue