2020-05-18 17:46:00 +02:00
|
|
|
|
|
|
|
local S = ethereal.intllib
|
|
|
|
|
2020-05-18 21:10:50 +02:00
|
|
|
-- jogan trunk
|
|
|
|
minetest.register_node("ethereal:jogan_trunk", {
|
|
|
|
description = S("Jogan Trunk"),
|
2020-05-18 17:46:00 +02:00
|
|
|
tiles = {
|
2020-05-18 21:10:50 +02:00
|
|
|
"ethereal_jogan_trunk_top.png",
|
|
|
|
"ethereal_jogan_trunk_top.png",
|
|
|
|
"ethereal_jogan_trunk.png"
|
2020-05-18 17:46:00 +02:00
|
|
|
},
|
|
|
|
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,
|
|
|
|
})
|
|
|
|
|
2020-05-18 21:10:50 +02:00
|
|
|
-- jogan wood
|
|
|
|
minetest.register_node("ethereal:jogan_wood", {
|
|
|
|
description = S("Jogan Wood"),
|
|
|
|
tiles = {"ethereal_jogan_wood.png"},
|
2020-05-18 17:46:00 +02:00
|
|
|
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({
|
2020-05-18 21:10:50 +02:00
|
|
|
output = "ethereal:jogan_wood 4",
|
|
|
|
recipe = {{"ethereal:jogan_trunk"}}
|
2020-05-18 17:46:00 +02:00
|
|
|
})
|
|
|
|
|
2020-05-18 21:10:50 +02:00
|
|
|
-- pine trunk
|
|
|
|
minetest.register_node("ethereal:pine_trunk", {
|
|
|
|
description = S("pine Trunk"),
|
2020-05-18 17:46:00 +02:00
|
|
|
tiles = {
|
2020-05-18 21:10:50 +02:00
|
|
|
"pine_trunk_top.png",
|
|
|
|
"pine_trunk_top.png",
|
|
|
|
"pine_trunk.png"
|
2020-05-18 17:46:00 +02:00
|
|
|
},
|
|
|
|
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,
|
|
|
|
})
|
|
|
|
|
2020-05-18 21:10:50 +02:00
|
|
|
-- pine wood
|
|
|
|
minetest.register_node("ethereal:pine_wood", {
|
|
|
|
description = S("Pine Wood"),
|
|
|
|
tiles = {"pine_wood.png"},
|
2020-05-18 17:46:00 +02:00
|
|
|
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({
|
2020-05-18 21:10:50 +02:00
|
|
|
output = "ethereal:pine_wood 4",
|
|
|
|
recipe = {{"ethereal:pine_trunk"}}
|
2020-05-18 17:46:00 +02:00
|
|
|
})
|
|
|
|
|
2020-05-18 21:10:50 +02:00
|
|
|
-- palm trunk
|
|
|
|
minetest.register_node("ethereal:palm_trunk", {
|
|
|
|
description = S("Palm Trunk"),
|
2020-05-18 17:46:00 +02:00
|
|
|
tiles = {
|
2020-05-18 21:10:50 +02:00
|
|
|
"moretrees_palm_trunk_top.png",
|
|
|
|
"moretrees_palm_trunk_top.png",
|
|
|
|
"moretrees_palm_trunk.png"
|
2020-05-18 17:46:00 +02:00
|
|
|
},
|
|
|
|
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,
|
|
|
|
})
|
|
|
|
|
2020-05-18 21:10:50 +02:00
|
|
|
-- palm wood
|
|
|
|
minetest.register_node("ethereal:palm_wood", {
|
|
|
|
description = S("Palm Wood"),
|
|
|
|
tiles = {"moretrees_palm_wood.png"},
|
2020-05-18 17:46:00 +02:00
|
|
|
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({
|
2020-05-18 21:10:50 +02:00
|
|
|
output = "ethereal:palm_wood 4",
|
|
|
|
recipe = {{"ethereal:palm_trunk"}}
|
2020-05-18 17:46:00 +02:00
|
|
|
})
|
|
|
|
|
2020-05-18 21:10:50 +02:00
|
|
|
-- wroshyr trunk
|
|
|
|
minetest.register_node("ethereal:wroshyr_trunk", {
|
|
|
|
description = S("Wroshyr Trunk"),
|
2020-05-18 17:46:00 +02:00
|
|
|
tiles = {
|
2020-05-18 21:10:50 +02:00
|
|
|
"wroshyr_trunk_top.png",
|
|
|
|
"wroshyr_trunk_top.png",
|
|
|
|
"wroshyr_trunk.png"
|
2020-05-18 17:46:00 +02:00
|
|
|
},
|
2020-05-18 21:10:50 +02:00
|
|
|
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
|
2020-05-18 17:46:00 +02:00
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
on_place = minetest.rotate_node,
|
|
|
|
})
|
|
|
|
|
2020-05-18 21:10:50 +02:00
|
|
|
-- wroshyr wood
|
|
|
|
minetest.register_node("ethereal:wroshyr_wood", {
|
|
|
|
description = S("Wroshyr Wood"),
|
|
|
|
tiles = {"wroshyr_wood.png"},
|
2020-05-18 17:46:00 +02:00
|
|
|
is_ground_content = false,
|
2020-05-18 21:10:50 +02:00
|
|
|
groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
|
2020-05-18 17:46:00 +02:00
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2020-05-18 21:10:50 +02:00
|
|
|
output = "ethereal:wroshyr_wood 4",
|
|
|
|
recipe = {{"ethereal:wroshyr_trunk"}},
|
2020-05-18 17:46:00 +02:00
|
|
|
})
|
|
|
|
|
2020-05-18 21:10:50 +02:00
|
|
|
-- brylark trunk
|
2020-05-18 23:25:10 +02:00
|
|
|
minetest.register_node("ethereal:brylark_trunk", {
|
2020-05-18 21:10:50 +02:00
|
|
|
description = S("Brylark Trunk"),
|
2020-05-18 17:46:00 +02:00
|
|
|
tiles = {
|
2020-05-18 21:10:50 +02:00
|
|
|
"ethereal_brylark_trunk_top.png",
|
|
|
|
"ethereal_brylark_trunk_top.png",
|
|
|
|
"ethereal_brylark_trunk.png"
|
2020-05-18 17:46:00 +02:00
|
|
|
},
|
2020-07-16 19:32:17 +02:00
|
|
|
groups = {cracky = 2},
|
2020-05-18 17:46:00 +02:00
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
on_place = minetest.rotate_node,
|
|
|
|
})
|
|
|
|
|
2020-05-18 21:10:50 +02:00
|
|
|
-- brylark wood
|
|
|
|
minetest.register_node("ethereal:brylark_wood", {
|
|
|
|
description = S("Brylark Wood"),
|
|
|
|
tiles = {"brylark_wood.png"},
|
2020-05-18 17:46:00 +02:00
|
|
|
is_ground_content = false,
|
2020-07-16 19:32:17 +02:00
|
|
|
groups = {cracky = 1, level = 2},
|
2020-05-18 17:46:00 +02:00
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2020-05-18 21:10:50 +02:00
|
|
|
output = "ethereal:brylark_wood 4",
|
|
|
|
recipe = {{"ethereal:brylark_trunk"}}
|
2020-05-18 17:46:00 +02:00
|
|
|
})
|
|
|
|
|
2020-05-18 21:10:50 +02:00
|
|
|
-- uneti trunk
|
|
|
|
minetest.register_node("ethereal:uneti_trunk", {
|
|
|
|
description = S("Uneti Trunk"),
|
2020-05-18 17:46:00 +02:00
|
|
|
tiles = {
|
2020-05-18 21:10:50 +02:00
|
|
|
"uneti_trunk_top.png",
|
|
|
|
"uneti_trunk_top.png",
|
|
|
|
"uneti_trunk.png"
|
2020-05-18 17:46:00 +02:00
|
|
|
},
|
2020-05-18 21:10:50 +02:00
|
|
|
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, put_out_fire = 1},
|
2020-05-18 17:46:00 +02:00
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
on_place = minetest.rotate_node,
|
|
|
|
})
|
|
|
|
|
2020-05-18 21:10:50 +02:00
|
|
|
-- uneti wood
|
|
|
|
minetest.register_node("ethereal:uneti_wood", {
|
|
|
|
description = S("Uneti Wood"),
|
|
|
|
tiles = {"uneti_wood.png"},
|
2020-05-18 17:46:00 +02:00
|
|
|
is_ground_content = false,
|
2020-05-18 21:10:50 +02:00
|
|
|
groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1, put_out_fire = 1},
|
2020-05-18 17:46:00 +02:00
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2020-05-18 21:10:50 +02:00
|
|
|
output = "ethereal:uneti_wood 4",
|
|
|
|
recipe = {{"ethereal:uneti_trunk"}}
|
2020-05-18 17:46:00 +02:00
|
|
|
})
|
|
|
|
|
2020-05-18 21:10:50 +02:00
|
|
|
-- gnarltree trunk
|
|
|
|
minetest.register_node("ethereal:gnarltree_trunk", {
|
|
|
|
description = S("Gnarltree Trunk"),
|
2020-05-18 17:46:00 +02:00
|
|
|
tiles = {
|
2020-05-18 21:10:50 +02:00
|
|
|
"gnarltree_trunk_top.png",
|
|
|
|
"gnarltree_trunk_top.png",
|
|
|
|
"gnarltree_trunk.png"
|
2020-05-18 17:46:00 +02:00
|
|
|
},
|
|
|
|
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,
|
|
|
|
})
|
|
|
|
|
2020-05-18 21:10:50 +02:00
|
|
|
-- gnarltree wood
|
|
|
|
minetest.register_node("ethereal:gnarltree_wood", {
|
|
|
|
description = S("Gnarltree Wood"),
|
|
|
|
tiles = {"gnarltree_wood.png"},
|
2020-05-18 17:46:00 +02:00
|
|
|
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({
|
2020-05-18 21:10:50 +02:00
|
|
|
output = "ethereal:gnarltree_wood 4",
|
|
|
|
recipe = {{"ethereal:gnarltree_trunk"}}
|
2020-05-18 17:46:00 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
-- scorched trunk
|
|
|
|
minetest.register_node("ethereal:scorched_tree", {
|
|
|
|
description = S("Scorched Tree"),
|
|
|
|
tiles = {
|
|
|
|
"scorched_tree_top.png",
|
|
|
|
"scorched_tree_top.png",
|
|
|
|
"scorched_tree.png"
|
|
|
|
},
|
|
|
|
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 1},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
on_place = minetest.rotate_node,
|
|
|
|
})
|
|
|
|
|
|
|
|
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 trunk
|
|
|
|
minetest.register_node("ethereal:mushroom_trunk", {
|
2020-05-18 21:10:50 +02:00
|
|
|
description = S("Giant Mushroom Trunk"),
|
2020-05-18 17:46:00 +02: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},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
on_place = minetest.rotate_node,
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Bamboo (thanks to Nelo-slay on DeviantArt for the free Bamboo base image)
|
|
|
|
minetest.register_node("ethereal:bamboo", {
|
|
|
|
description = S("Bamboo"),
|
|
|
|
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}
|
|
|
|
},
|
2020-05-18 21:10:50 +02:00
|
|
|
-- TODO: add to group:stick
|
2020-05-18 17:46:00 +02:00
|
|
|
groups = {choppy = 3, oddly_breakable_by_hand = 1, flammable = 2},--tree = 1
|
|
|
|
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,
|
|
|
|
})
|
2020-07-15 18:59:49 +02:00
|
|
|
|
2020-07-16 01:00:13 +02:00
|
|
|
-- bush stem
|
2020-07-15 18:59:49 +02:00
|
|
|
minetest.register_node("ethereal:bush_stem", {
|
|
|
|
description = S("Bush Stem"),
|
|
|
|
drawtype = "plantlike",
|
2020-07-16 01:00:13 +02:00
|
|
|
visual_scale = 1.41,
|
|
|
|
tiles = {"ethereal_bush_stem.png"},
|
|
|
|
inventory_image = "ethereal_bush_stem.png",
|
|
|
|
wield_image = "ethereal_bush_stem.png",
|
2020-07-15 18:59:49 +02:00
|
|
|
paramtype = "light",
|
|
|
|
sunlight_propagates = true,
|
2020-07-16 01:00:13 +02:00
|
|
|
groups = {choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
2020-07-15 18:59:49 +02:00
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
2020-07-16 01:00:13 +02:00
|
|
|
fixed = {-7 / 16, -0.5, -7 / 16, 7 / 16, 0.5, 7 / 16},
|
2020-07-15 18:59:49 +02:00
|
|
|
},
|
|
|
|
})
|