2015-07-04 14:22:39 +03:00
|
|
|
|
2016-06-09 17:08:34 +03:00
|
|
|
local S = ethereal.intllib
|
|
|
|
|
2019-02-16 15:23:14 +03:00
|
|
|
-- sakura trunk
|
|
|
|
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,
|
|
|
|
})
|
|
|
|
|
|
|
|
-- sakura wood
|
|
|
|
minetest.register_node("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(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "ethereal:sakura_wood 4",
|
|
|
|
recipe = {{"ethereal:sakura_trunk"}}
|
|
|
|
})
|
|
|
|
|
2016-05-17 23:40:05 +03:00
|
|
|
-- willow trunk
|
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 = {
|
|
|
|
"willow_trunk_top.png",
|
|
|
|
"willow_trunk_top.png",
|
|
|
|
"willow_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",
|
2015-07-10 11:04:07 +03:00
|
|
|
on_place = minetest.rotate_node,
|
2014-11-09 22:17:41 +03:00
|
|
|
})
|
|
|
|
|
2016-05-17 23:40:05 +03:00
|
|
|
-- willow wood
|
2015-07-04 14:22:39 +03:00
|
|
|
minetest.register_node("ethereal:willow_wood", {
|
2016-06-09 17:08:34 +03:00
|
|
|
description = S("Willow Wood"),
|
2014-11-09 22:17:41 +03:00
|
|
|
tiles = {"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(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "ethereal:willow_wood 4",
|
|
|
|
recipe = {{"ethereal:willow_trunk"}}
|
|
|
|
})
|
|
|
|
|
2016-05-17 23:40:05 +03:00
|
|
|
-- redwood trunk
|
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 = {
|
|
|
|
"redwood_trunk_top.png",
|
|
|
|
"redwood_trunk_top.png",
|
|
|
|
"redwood_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",
|
2015-07-10 11:04:07 +03:00
|
|
|
on_place = minetest.rotate_node,
|
2014-11-09 22:17:41 +03:00
|
|
|
})
|
|
|
|
|
2016-05-17 23:40:05 +03:00
|
|
|
-- redwood wood
|
2015-07-04 14:22:39 +03:00
|
|
|
minetest.register_node("ethereal:redwood_wood", {
|
2016-06-09 17:08:34 +03:00
|
|
|
description = S("Redwood Wood"),
|
2014-11-09 22:17:41 +03:00
|
|
|
tiles = {"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},
|
2014-11-09 22:17:41 +03:00
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "ethereal:redwood_wood 4",
|
|
|
|
recipe = {{"ethereal:redwood_trunk"}},
|
|
|
|
})
|
|
|
|
|
2016-05-17 23:40:05 +03:00
|
|
|
-- frost trunk
|
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, put_out_fire = 1},
|
2014-11-09 22:17:41 +03:00
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
paramtype2 = "facedir",
|
2015-07-10 11:04:07 +03:00
|
|
|
on_place = minetest.rotate_node,
|
2014-11-09 22:17:41 +03:00
|
|
|
})
|
|
|
|
|
2016-05-17 23:40:05 +03:00
|
|
|
-- frost wood
|
2015-07-04 14:22:39 +03:00
|
|
|
minetest.register_node("ethereal:frost_wood", {
|
2016-06-09 17:08:34 +03:00
|
|
|
description = S("Frost Wood"),
|
2014-11-09 22:17:41 +03:00
|
|
|
tiles = {"frost_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, put_out_fire = 1},
|
2014-11-09 22:17:41 +03:00
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "ethereal:frost_wood 4",
|
|
|
|
recipe = {{"ethereal:frost_tree"}}
|
|
|
|
})
|
|
|
|
|
2016-05-17 23:40:05 +03:00
|
|
|
-- healing trunk
|
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 = {
|
|
|
|
"yellow_tree_top.png",
|
|
|
|
"yellow_tree_top.png",
|
|
|
|
"yellow_tree.png"
|
|
|
|
},
|
|
|
|
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, put_out_fire = 1},
|
2014-11-09 22:17:41 +03:00
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
paramtype2 = "facedir",
|
2015-07-10 11:04:07 +03:00
|
|
|
on_place = minetest.rotate_node,
|
2014-11-09 22:17:41 +03:00
|
|
|
})
|
|
|
|
|
2016-05-17 23:40:05 +03:00
|
|
|
-- healing wood
|
2015-07-04 14:22:39 +03:00
|
|
|
minetest.register_node("ethereal:yellow_wood", {
|
2016-06-09 17:08:34 +03:00
|
|
|
description = S("Healing Tree Wood"),
|
2014-11-09 22:17:41 +03:00
|
|
|
tiles = {"yellow_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, put_out_fire = 1},
|
2014-11-09 22:17:41 +03:00
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "ethereal:yellow_wood 4",
|
|
|
|
recipe = {{"ethereal:yellow_trunk"}}
|
|
|
|
})
|
|
|
|
|
2016-05-17 23:40:05 +03:00
|
|
|
-- palm trunk (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",
|
2015-07-10 11:04:07 +03:00
|
|
|
on_place = minetest.rotate_node,
|
2014-11-09 22:17:41 +03:00
|
|
|
})
|
|
|
|
|
2016-05-17 23:40:05 +03:00
|
|
|
-- palm wood
|
2015-07-04 14:22:39 +03:00
|
|
|
minetest.register_node("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},
|
2014-11-09 22:17:41 +03:00
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "ethereal:palm_wood 4",
|
|
|
|
recipe = {{"ethereal:palm_trunk"}}
|
|
|
|
})
|
|
|
|
|
2016-05-17 23:40:05 +03:00
|
|
|
-- banana trunk
|
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 = {
|
|
|
|
"banana_trunk_top.png",
|
|
|
|
"banana_trunk_top.png",
|
|
|
|
"banana_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",
|
2015-07-10 11:04:07 +03:00
|
|
|
on_place = minetest.rotate_node,
|
2014-11-09 22:17:41 +03:00
|
|
|
})
|
|
|
|
|
2016-05-17 23:40:05 +03:00
|
|
|
-- banana wood
|
2015-07-04 14:22:39 +03:00
|
|
|
minetest.register_node("ethereal:banana_wood", {
|
2016-06-09 17:08:34 +03:00
|
|
|
description = S("Banana Wood"),
|
2014-11-09 22:17:41 +03:00
|
|
|
tiles = {"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},
|
2014-11-09 22:17:41 +03:00
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "ethereal:banana_wood 4",
|
|
|
|
recipe = {{"ethereal:banana_trunk"}}
|
|
|
|
})
|
|
|
|
|
2016-05-17 23:40:05 +03:00
|
|
|
-- scorched trunk
|
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 = {
|
|
|
|
"scorched_tree_top.png",
|
|
|
|
"scorched_tree_top.png",
|
|
|
|
"scorched_tree.png"
|
|
|
|
},
|
|
|
|
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",
|
2015-07-10 11:04:07 +03:00
|
|
|
on_place = minetest.rotate_node,
|
2014-11-09 22:17:41 +03:00
|
|
|
})
|
|
|
|
|
2015-05-20 18:57:17 +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"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2016-05-17 23:40:05 +03:00
|
|
|
-- mushroom trunk
|
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 = {
|
|
|
|
"mushroom_trunk_top.png",
|
|
|
|
"mushroom_trunk_top.png",
|
|
|
|
"mushroom_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",
|
2015-07-10 11:04:07 +03:00
|
|
|
on_place = minetest.rotate_node,
|
2015-11-14 13:21:06 +03:00
|
|
|
})
|
|
|
|
|
2016-05-17 23:40:05 +03:00
|
|
|
-- birch trunk (thanks to VanessaE for birch textures)
|
2015-11-14 13:21:06 +03:00
|
|
|
minetest.register_node("ethereal:birch_trunk", {
|
2016-06-09 17:08:34 +03:00
|
|
|
description = S("Birch Trunk"),
|
2015-11-14 13:21:06 +03:00
|
|
|
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,
|
|
|
|
})
|
|
|
|
|
2016-05-17 23:40:05 +03:00
|
|
|
-- birch wood
|
2015-11-14 13:21:06 +03:00
|
|
|
minetest.register_node("ethereal:birch_wood", {
|
2016-06-09 17:08:34 +03:00
|
|
|
description = S("Birch Wood"),
|
2015-11-14 13:21:06 +03:00
|
|
|
tiles = {"moretrees_birch_wood.png"},
|
|
|
|
is_ground_content = false,
|
|
|
|
groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "ethereal:birch_wood 4",
|
|
|
|
recipe = {{"ethereal:birch_trunk"}}
|
2016-01-09 15:25:33 +03:00
|
|
|
})
|
2016-05-17 23:40:05 +03:00
|
|
|
|
|
|
|
-- Bamboo (thanks to Nelo-slay on DeviantArt for the free Bamboo base image)
|
|
|
|
minetest.register_node("ethereal:bamboo", {
|
2016-06-09 17:08:34 +03:00
|
|
|
description = S("Bamboo"),
|
2016-05-17 23:40:05 +03:00
|
|
|
drawtype = "plantlike",
|
|
|
|
tiles = {"bamboo.png"},
|
|
|
|
inventory_image = "bamboo.png",
|
|
|
|
wield_image = "bamboo.png",
|
|
|
|
paramtype = "light",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
walkable = true,
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3}
|
|
|
|
},
|
2018-11-01 17:43:06 +03:00
|
|
|
groups = {choppy = 3, oddly_breakable_by_hand = 1, flammable = 2},--tree = 1
|
2016-05-17 23:40:05 +03:00
|
|
|
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 = 1,
|
|
|
|
})
|