ethereal/wood.lua

367 lines
9.3 KiB
Lua
Raw Normal View History

2015-07-04 14:22:39 +03:00
2023-08-14 10:08:04 +03:00
local S = ethereal.translate
2024-07-09 10:15:46 +03:00
-- helper function
local function add_wood(name, def)
if ethereal.wood_rotate then
def.on_place = minetest.rotate_node
else
def.place_param2 = 0
end
minetest.register_node(name, def)
end
-- basandra
2016-06-09 17:08:34 +03:00
2024-07-09 10:15:46 +03:00
add_wood("ethereal:basandra_wood", {
description = S("Basandra Wood"),
tiles = {"ethereal_basandra_bush_wood.png"},
paramtype2 = "facedir",
is_ground_content = false,
2023-09-17 11:56:28 +03:00
groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1},
2024-07-09 10:15:46 +03:00
sounds = default.node_sound_wood_defaults()
})
minetest.register_craft({
2023-08-26 09:48:53 +03:00
output = "ethereal:basandra_wood 2",
recipe = {{"ethereal:basandra_bush_stem"}}
})
-- sakura
minetest.register_node("ethereal:sakura_trunk", {
description = S("Sakura Trunk"),
tiles = {
"ethereal_sakura_trunk_top.png",
"ethereal_sakura_trunk_top.png",
"ethereal_sakura_trunk.png"
},
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
sounds = default.node_sound_wood_defaults(),
paramtype2 = "facedir",
on_place = minetest.rotate_node
})
2024-07-09 10:15:46 +03:00
add_wood("ethereal:sakura_wood", {
description = S("Sakura Wood"),
tiles = {"ethereal_sakura_wood.png"},
is_ground_content = false,
groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
sounds = default.node_sound_wood_defaults(),
2024-07-09 10:15:46 +03:00
paramtype2 = "facedir"
})
minetest.register_craft({
output = "ethereal:sakura_wood 4",
recipe = {{"ethereal:sakura_trunk"}}
})
-- willow
2015-07-04 14:22:39 +03:00
minetest.register_node("ethereal:willow_trunk", {
2016-06-09 17:08:34 +03:00
description = S("Willow Trunk"),
2015-07-04 14:22:39 +03:00
tiles = {
"ethereal_willow_trunk_top.png",
"ethereal_willow_trunk_top.png",
"ethereal_willow_trunk.png"
2015-07-04 14:22:39 +03:00
},
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
2014-11-09 22:17:41 +03:00
sounds = default.node_sound_wood_defaults(),
paramtype2 = "facedir",
on_place = minetest.rotate_node
2014-11-09 22:17:41 +03:00
})
2024-07-09 10:15:46 +03:00
add_wood("ethereal:willow_wood", {
2016-06-09 17:08:34 +03:00
description = S("Willow Wood"),
tiles = {"ethereal_willow_wood.png"},
2015-06-24 12:00:12 +03:00
is_ground_content = false,
2015-07-04 14:22:39 +03:00
groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
2014-11-09 22:17:41 +03:00
sounds = default.node_sound_wood_defaults(),
2024-07-09 10:15:46 +03:00
paramtype2 = "facedir"
2014-11-09 22:17:41 +03:00
})
minetest.register_craft({
output = "ethereal:willow_wood 4",
recipe = {{"ethereal:willow_trunk"}}
})
-- redwood
2015-07-04 14:22:39 +03:00
minetest.register_node("ethereal:redwood_trunk", {
2016-06-09 17:08:34 +03:00
description = S("Redwood Trunk"),
2015-07-04 14:22:39 +03:00
tiles = {
"ethereal_redwood_trunk_top.png",
"ethereal_redwood_trunk_top.png",
"ethereal_redwood_trunk.png"
2015-07-04 14:22:39 +03:00
},
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
2014-11-09 22:17:41 +03:00
sounds = default.node_sound_wood_defaults(),
paramtype2 = "facedir",
on_place = minetest.rotate_node
2014-11-09 22:17:41 +03:00
})
2024-07-09 10:15:46 +03:00
add_wood("ethereal:redwood_wood", {
2016-06-09 17:08:34 +03:00
description = S("Redwood Wood"),
tiles = {"ethereal_redwood_wood.png"},
2015-06-24 12:00:12 +03:00
is_ground_content = false,
2015-07-04 14:22:39 +03:00
groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
2021-06-04 22:54:19 +03:00
sounds = default.node_sound_wood_defaults(),
2024-07-09 10:15:46 +03:00
paramtype2 = "facedir"
2014-11-09 22:17:41 +03:00
})
minetest.register_craft({
output = "ethereal:redwood_wood 4",
recipe = {{"ethereal:redwood_trunk"}}
2014-11-09 22:17:41 +03:00
})
-- frost
2015-07-04 14:22:39 +03:00
minetest.register_node("ethereal:frost_tree", {
2016-06-09 17:08:34 +03:00
description = S("Frost Tree"),
2015-07-04 14:22:39 +03:00
tiles = {
"ethereal_frost_tree_top.png",
"ethereal_frost_tree_top.png",
"ethereal_frost_tree.png"
},
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, puts_out_fire = 1},
2014-11-09 22:17:41 +03:00
sounds = default.node_sound_wood_defaults(),
paramtype2 = "facedir",
on_place = minetest.rotate_node
2014-11-09 22:17:41 +03:00
})
2024-07-09 10:15:46 +03:00
add_wood("ethereal:frost_wood", {
2016-06-09 17:08:34 +03:00
description = S("Frost Wood"),
tiles = {"ethereal_frost_wood.png"},
2015-06-24 12:00:12 +03:00
is_ground_content = false,
groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1},
2021-06-04 22:54:19 +03:00
sounds = default.node_sound_wood_defaults(),
2024-07-09 10:15:46 +03:00
paramtype2 = "facedir"
2014-11-09 22:17:41 +03:00
})
minetest.register_craft({
output = "ethereal:frost_wood 4",
recipe = {{"ethereal:frost_tree"}}
})
-- healing
2015-07-04 14:22:39 +03:00
minetest.register_node("ethereal:yellow_trunk", {
2016-06-09 17:08:34 +03:00
description = S("Healing Tree Trunk"),
2015-07-04 14:22:39 +03:00
tiles = {
"ethereal_yellow_tree_top.png",
"ethereal_yellow_tree_top.png",
"ethereal_yellow_tree.png"
2015-07-04 14:22:39 +03:00
},
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, puts_out_fire = 1},
2014-11-09 22:17:41 +03:00
sounds = default.node_sound_wood_defaults(),
paramtype2 = "facedir",
on_place = minetest.rotate_node
2014-11-09 22:17:41 +03:00
})
2024-07-09 10:15:46 +03:00
add_wood("ethereal:yellow_wood", {
2016-06-09 17:08:34 +03:00
description = S("Healing Tree Wood"),
tiles = {"ethereal_yellow_wood.png"},
2015-06-24 12:00:12 +03:00
is_ground_content = false,
groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1},
2021-06-04 22:54:19 +03:00
sounds = default.node_sound_wood_defaults(),
2024-07-09 10:15:46 +03:00
paramtype2 = "facedir"
2014-11-09 22:17:41 +03:00
})
minetest.register_craft({
output = "ethereal:yellow_wood 4",
recipe = {{"ethereal:yellow_trunk"}}
})
-- palm (thanks to VanessaE for palm textures)
2015-07-04 14:22:39 +03:00
minetest.register_node("ethereal:palm_trunk", {
2016-06-09 17:08:34 +03:00
description = S("Palm Trunk"),
2015-07-04 14:22:39 +03:00
tiles = {
"moretrees_palm_trunk_top.png",
"moretrees_palm_trunk_top.png",
"moretrees_palm_trunk.png"
},
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
2014-11-09 22:17:41 +03:00
sounds = default.node_sound_wood_defaults(),
paramtype2 = "facedir",
on_place = minetest.rotate_node
2014-11-09 22:17:41 +03:00
})
2024-07-09 10:15:46 +03:00
add_wood("ethereal:palm_wood", {
2016-06-09 17:08:34 +03:00
description = S("Palm Wood"),
2014-11-09 22:17:41 +03:00
tiles = {"moretrees_palm_wood.png"},
2015-06-24 12:00:12 +03:00
is_ground_content = false,
2015-07-04 14:22:39 +03:00
groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
2021-06-04 22:54:19 +03:00
sounds = default.node_sound_wood_defaults(),
2024-07-09 10:15:46 +03:00
paramtype2 = "facedir"
2014-11-09 22:17:41 +03:00
})
minetest.register_craft({
output = "ethereal:palm_wood 4",
recipe = {{"ethereal:palm_trunk"}}
})
-- banana
2015-07-04 14:22:39 +03:00
minetest.register_node("ethereal:banana_trunk", {
2016-06-09 17:08:34 +03:00
description = S("Banana Trunk"),
2015-07-04 14:22:39 +03:00
tiles = {
"ethereal_banana_trunk_top.png",
"ethereal_banana_trunk_top.png",
"ethereal_banana_trunk.png"
2015-07-04 14:22:39 +03:00
},
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
2014-11-09 22:17:41 +03:00
sounds = default.node_sound_wood_defaults(),
paramtype2 = "facedir",
on_place = minetest.rotate_node
2014-11-09 22:17:41 +03:00
})
2024-07-09 10:15:46 +03:00
add_wood("ethereal:banana_wood", {
2016-06-09 17:08:34 +03:00
description = S("Banana Wood"),
tiles = {"ethereal_banana_wood.png"},
2015-06-24 12:00:12 +03:00
is_ground_content = false,
2015-07-04 14:22:39 +03:00
groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
2021-06-04 22:54:19 +03:00
sounds = default.node_sound_wood_defaults(),
2024-07-09 10:15:46 +03:00
paramtype2 = "facedir"
2014-11-09 22:17:41 +03:00
})
minetest.register_craft({
output = "ethereal:banana_wood 4",
recipe = {{"ethereal:banana_trunk"}}
})
-- scorched
2015-07-04 14:22:39 +03:00
minetest.register_node("ethereal:scorched_tree", {
2016-06-09 17:08:34 +03:00
description = S("Scorched Tree"),
2015-07-04 14:22:39 +03:00
tiles = {
"ethereal_scorched_tree_top.png",
"ethereal_scorched_tree_top.png",
"ethereal_scorched_tree.png"
2015-07-04 14:22:39 +03:00
},
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 1},
2014-11-09 22:17:41 +03:00
sounds = default.node_sound_wood_defaults(),
paramtype2 = "facedir",
on_place = minetest.rotate_node
2014-11-09 22:17:41 +03:00
})
minetest.register_craft({
output = "ethereal:scorched_tree 8",
recipe = {
{"group:tree", "group:tree", "group:tree"},
{"group:tree", "default:torch", "group:tree"},
{"group:tree", "group:tree", "group:tree"}
}
})
-- mushroom
2015-07-04 14:22:39 +03:00
minetest.register_node("ethereal:mushroom_trunk", {
2016-06-09 17:08:34 +03:00
description = S("Mushroom"),
2015-07-04 14:22:39 +03:00
tiles = {
"ethereal_mushroom_trunk_top.png",
"ethereal_mushroom_trunk_top.png",
"ethereal_mushroom_trunk.png"
2015-07-04 14:22:39 +03:00
},
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
2014-11-09 22:17:41 +03:00
sounds = default.node_sound_wood_defaults(),
paramtype2 = "facedir",
on_place = minetest.rotate_node
})
-- birch (thanks to VanessaE for birch textures)
minetest.register_node("ethereal:birch_trunk", {
2016-06-09 17:08:34 +03:00
description = S("Birch Trunk"),
tiles = {
"moretrees_birch_trunk_top.png",
"moretrees_birch_trunk_top.png",
"moretrees_birch_trunk.png"
},
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
sounds = default.node_sound_wood_defaults(),
paramtype2 = "facedir",
on_place = minetest.rotate_node
})
2024-07-09 10:15:46 +03:00
add_wood("ethereal:birch_wood", {
2016-06-09 17:08:34 +03:00
description = S("Birch Wood"),
tiles = {"moretrees_birch_wood.png"},
is_ground_content = false,
groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
2021-06-04 22:54:19 +03:00
sounds = default.node_sound_wood_defaults(),
2024-07-09 10:15:46 +03:00
paramtype2 = "facedir"
})
minetest.register_craft({
output = "ethereal:birch_wood 4",
recipe = {{"ethereal:birch_trunk"}}
2016-01-09 15:25:33 +03:00
})
-- Bamboo
minetest.register_node("ethereal:bamboo", {
2016-06-09 17:08:34 +03:00
description = S("Bamboo"),
drawtype = "plantlike",
tiles = {"ethereal_bamboo_trunk.png"},
inventory_image = "ethereal_bamboo_trunk.png",
wield_image = "ethereal_bamboo_trunk.png",
paramtype = "light",
sunlight_propagates = true,
walkable = true,
selection_box = {
type = "fixed",
fixed = {-0.15, -0.5, -0.15, 0.15, 0.5, 0.15}
},
collision_box = {
type = "fixed",
fixed = {-0.15, -0.5, -0.15, 0.15, 0.5, 0.15}
},
groups = {choppy = 3, oddly_breakable_by_hand = 1, flammable = 2},
sounds = default.node_sound_leaves_defaults(),
after_dig_node = function(pos, node, metadata, digger)
default.dig_up(pos, node, digger)
end
})
minetest.register_craft({
type = "fuel",
recipe = "ethereal:bamboo",
burntime = 2
})
-- olive
minetest.register_node("ethereal:olive_trunk", {
description = S("Olive Trunk"),
tiles = {
"ethereal_olive_trunk_top.png",
"ethereal_olive_trunk_top.png",
"ethereal_olive_trunk.png"
},
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
sounds = default.node_sound_wood_defaults(),
paramtype2 = "facedir",
on_place = minetest.rotate_node
})
2024-07-09 10:15:46 +03:00
add_wood("ethereal:olive_wood", {
description = S("Olive Wood"),
tiles = {"ethereal_olive_wood.png"},
is_ground_content = false,
groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
2021-06-04 22:54:19 +03:00
sounds = default.node_sound_wood_defaults(),
2024-07-09 10:15:46 +03:00
paramtype2 = "facedir"
})
minetest.register_craft({
output = "ethereal:olive_wood 4",
recipe = {{"ethereal:olive_trunk"}}
})