2023-04-30 21:18:53 +00:00
|
|
|
local S = minetest.get_translator(minetest.get_current_modname())
|
|
|
|
|
|
|
|
-- Logs
|
2023-06-17 17:27:45 +00:00
|
|
|
mcl_core.register_tree_trunk("cherrytree", S("Cherry Log"), S("Cherry Bark"),
|
|
|
|
S("The trunk of a cherry blossom tree."),
|
|
|
|
"mcl_cherry_blossom_log_top.png", "mcl_cherry_blossom_log.png", "mcl_cherry_blossom:stripped_cherrytree")
|
2023-04-30 21:18:53 +00:00
|
|
|
|
2023-06-17 17:27:45 +00:00
|
|
|
-- Stripped
|
|
|
|
mcl_core.register_stripped_trunk("stripped_cherrytree", S("Stripped Cherry Log"), S("Stripped Cherry Wood"),
|
|
|
|
S("The stripped trunk of a cherry blossom tree."), S("The stripped wood of a cherry blossom tree."),
|
|
|
|
"mcl_cherry_blossom_log_top_stripped.png", "mcl_cherry_blossom_log_stripped.png")
|
2023-04-30 21:18:53 +00:00
|
|
|
|
|
|
|
--Planks
|
2023-06-17 17:27:45 +00:00
|
|
|
mcl_core.register_wooden_planks("cherrywood", S("Cherry Wood Planks"), {"mcl_cherry_blossom_planks.png"})
|
2023-04-30 21:18:53 +00:00
|
|
|
|
|
|
|
-- Leaves
|
2023-06-17 17:27:45 +00:00
|
|
|
mcl_core.register_leaves("cherryleaves", S("Cherry Leaves"),
|
|
|
|
S("Cherry blossom leaves are grown from cherry blossom trees."), {"mcl_cherry_blossom_leaves.png"},
|
2023-06-19 16:14:30 +00:00
|
|
|
nil, "none", nil, "mcl_cherry_blossom:cherrysapling", false, {20, 16, 12, 10})
|
2023-04-30 21:18:53 +00:00
|
|
|
|
|
|
|
-- Sapling
|
2023-06-17 17:27:45 +00:00
|
|
|
mcl_core.register_sapling("cherrysapling", S("Cherry Sapling"),
|
2023-06-25 16:30:02 +00:00
|
|
|
S("Cherry blossom sapling can be planted to grow cherry trees."), nil,
|
2023-06-17 17:27:45 +00:00
|
|
|
"mcl_cherry_blossom_sapling.png", {-4/16, -0.5, -4/16, 4/16, 0.25, 4/16})
|
2023-05-01 00:58:10 +00:00
|
|
|
|
|
|
|
-- Door and Trapdoor
|
2023-06-19 16:14:30 +00:00
|
|
|
mcl_doors:register_door("mcl_cherry_blossom:cherry_door", {
|
2023-05-01 00:58:10 +00:00
|
|
|
description = S("Cherry Door"),
|
|
|
|
inventory_image = "mcl_cherry_blossom_door_inv.png",
|
|
|
|
groups = {handy=1,axey=1, material_wood=1, flammable=-1},
|
|
|
|
_mcl_hardness = 3,
|
|
|
|
_mcl_blast_resistance = 3,
|
2023-06-17 16:01:45 +00:00
|
|
|
tiles_bottom = "mcl_cherry_blossom_door_bottom.png",
|
|
|
|
tiles_top = "mcl_cherry_blossom_door_top.png",
|
2023-05-01 00:58:10 +00:00
|
|
|
sounds = mcl_sounds.node_sound_wood_defaults(),
|
|
|
|
})
|
|
|
|
|
2023-06-19 16:14:30 +00:00
|
|
|
mcl_doors:register_trapdoor("mcl_cherry_blossom:cherry_trapdoor", {
|
2023-05-01 00:58:10 +00:00
|
|
|
description = S("Cherry Trapdoor"),
|
|
|
|
tile_front = "mcl_cherry_blossom_trapdoor.png",
|
|
|
|
tile_side = "mcl_cherry_blossom_trapdoor_side.png",
|
|
|
|
wield_image = "mcl_cherry_blossom_trapdoor.png",
|
|
|
|
groups = {handy=1,axey=1, mesecon_effector_on=1, material_wood=1, flammable=-1},
|
|
|
|
_mcl_hardness = 3,
|
|
|
|
_mcl_blast_resistance = 3,
|
|
|
|
sounds = mcl_sounds.node_sound_wood_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Stairs and Slabs
|
|
|
|
mcl_stairs.register_stair("cherrywood", "mcl_cherry_blossom:cherrywood",
|
|
|
|
{handy=1,axey=1, flammable=3,wood_stairs=1, material_wood=1, fire_encouragement=5, fire_flammability=20},
|
|
|
|
{"mcl_cherry_blossom_planks.png"},
|
|
|
|
S("Cherry Stairs"),
|
|
|
|
mcl_sounds.node_sound_wood_defaults(), 3, 2,
|
|
|
|
"woodlike")
|
|
|
|
mcl_stairs.register_slab("cherrywood", "mcl_cherry_blossom:cherrywood",
|
|
|
|
{handy=1,axey=1, flammable=3,wood_slab=1, material_wood=1, fire_encouragement=5, fire_flammability=20},
|
|
|
|
{"mcl_cherry_blossom_planks.png"},
|
|
|
|
S("Cherry Slab"),
|
|
|
|
mcl_sounds.node_sound_wood_defaults(), 3, 2,
|
|
|
|
S("Double Cherry Slab"))
|
|
|
|
|
|
|
|
-- Signs
|
2023-06-25 16:49:29 +00:00
|
|
|
mcl_signs.register_sign_custom("mcl_cherry_blossom", "_cherrywood",
|
2023-05-01 01:36:39 +00:00
|
|
|
"mcl_cherry_blossom_sign.png", nil,
|
2023-06-17 16:01:45 +00:00
|
|
|
"mcl_cherry_blossom_sign_inv.png", "mcl_cherry_blossom_sign_inv.png", S("Cherry Sign"))
|
2023-05-01 00:58:10 +00:00
|
|
|
|
|
|
|
-- Fences & Gates
|
|
|
|
mcl_fences.register_fence_and_fence_gate("cherry_fence", S("Cherry Fence"), S("Cherry Gate"),
|
|
|
|
"mcl_cherry_blossom_planks.png", {handy=1, axey=1, flammable=2, fence_wood=1, fire_encouragement=5, fire_flammability=20}, 2, 15,
|
|
|
|
{"group:fence_wood"}, mcl_sounds.node_sound_wood_defaults())
|
|
|
|
|
|
|
|
-- Redstone
|
|
|
|
mesecon.register_pressure_plate(
|
|
|
|
"mcl_cherry_blossom:pressure_plate_cherrywood",
|
|
|
|
S("Cherry Pressure Plate"),
|
|
|
|
{"mcl_cherry_blossom_planks.png"},
|
|
|
|
{"mcl_cherry_blossom_planks.png"},
|
|
|
|
"mcl_cherry_blossom_planks.png",
|
|
|
|
nil,
|
|
|
|
{{"mcl_cherry_blossom:cherrywood", "mcl_cherry_blossom:cherrywood"}},
|
|
|
|
mcl_sounds.node_sound_wood_defaults(),
|
|
|
|
{axey=1, material_wood=1},
|
2023-06-17 16:01:45 +00:00
|
|
|
nil)
|
2023-05-01 00:58:10 +00:00
|
|
|
|
|
|
|
mesecon.register_button(
|
|
|
|
"cherrywood",
|
|
|
|
S("Cherry Button"),
|
|
|
|
"mcl_cherry_blossom_planks.png",
|
|
|
|
"mcl_cherry_blossom:cherrywood",
|
|
|
|
mcl_sounds.node_sound_wood_defaults(),
|
|
|
|
{material_wood=1,handy=1,axey=1},
|
|
|
|
1.5,
|
|
|
|
true,
|
2023-06-17 16:01:45 +00:00
|
|
|
nil,
|
2023-05-01 00:58:10 +00:00
|
|
|
"mesecons_button_push_wood")
|