123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291 |
- local S = ethereal.intllib
- -- 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"}}
- })
- -- willow trunk
- minetest.register_node("ethereal:willow_trunk", {
- description = S("Willow Trunk"),
- tiles = {
- "willow_trunk_top.png",
- "willow_trunk_top.png",
- "willow_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,
- })
- -- willow wood
- minetest.register_node("ethereal:willow_wood", {
- description = S("Willow Wood"),
- tiles = {"willow_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:willow_wood 4",
- recipe = {{"ethereal:willow_trunk"}}
- })
- -- redwood trunk
- minetest.register_node("ethereal:redwood_trunk", {
- description = S("Redwood Trunk"),
- tiles = {
- "redwood_trunk_top.png",
- "redwood_trunk_top.png",
- "redwood_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,
- })
- -- redwood wood
- minetest.register_node("ethereal:redwood_wood", {
- description = S("Redwood Wood"),
- tiles = {"redwood_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:redwood_wood 4",
- recipe = {{"ethereal:redwood_trunk"}},
- })
- -- frost trunk
- minetest.register_node("ethereal:frost_tree", {
- description = S("Frost Tree"),
- 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},
- sounds = default.node_sound_wood_defaults(),
- paramtype2 = "facedir",
- on_place = minetest.rotate_node,
- })
- -- frost wood
- minetest.register_node("ethereal:frost_wood", {
- description = S("Frost Wood"),
- tiles = {"frost_wood.png"},
- is_ground_content = false,
- groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1, put_out_fire = 1},
- sounds = default.node_sound_wood_defaults(),
- })
- minetest.register_craft({
- output = "ethereal:frost_wood 4",
- recipe = {{"ethereal:frost_tree"}}
- })
- -- healing trunk
- minetest.register_node("ethereal:yellow_trunk", {
- description = S("Healing Tree Trunk"),
- 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},
- sounds = default.node_sound_wood_defaults(),
- paramtype2 = "facedir",
- on_place = minetest.rotate_node,
- })
- -- healing wood
- minetest.register_node("ethereal:yellow_wood", {
- description = S("Healing Tree Wood"),
- tiles = {"yellow_wood.png"},
- is_ground_content = false,
- groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1, put_out_fire = 1},
- sounds = default.node_sound_wood_defaults(),
- })
- minetest.register_craft({
- output = "ethereal:yellow_wood 4",
- recipe = {{"ethereal:yellow_trunk"}}
- })
- -- palm trunk (thanks to VanessaE for palm textures)
- minetest.register_node("ethereal:palm_trunk", {
- description = S("Palm Trunk"),
- 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},
- sounds = default.node_sound_wood_defaults(),
- paramtype2 = "facedir",
- on_place = minetest.rotate_node,
- })
- -- palm wood
- minetest.register_node("ethereal:palm_wood", {
- description = S("Palm Wood"),
- tiles = {"moretrees_palm_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:palm_wood 4",
- recipe = {{"ethereal:palm_trunk"}}
- })
- -- banana trunk
- minetest.register_node("ethereal:banana_trunk", {
- description = S("Banana Trunk"),
- tiles = {
- "banana_trunk_top.png",
- "banana_trunk_top.png",
- "banana_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,
- })
- -- banana wood
- minetest.register_node("ethereal:banana_wood", {
- description = S("Banana Wood"),
- tiles = {"banana_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:banana_wood 4",
- recipe = {{"ethereal:banana_trunk"}}
- })
- -- 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", {
- description = S("Mushroom"),
- 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,
- })
- -- birch trunk (thanks to VanessaE for birch textures)
- minetest.register_node("ethereal:birch_trunk", {
- 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,
- })
- -- birch wood
- minetest.register_node("ethereal:birch_wood", {
- 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},
- sounds = default.node_sound_wood_defaults(),
- })
- minetest.register_craft({
- output = "ethereal:birch_wood 4",
- recipe = {{"ethereal:birch_trunk"}}
- })
- -- 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}
- },
- 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,
- })
|