ethereal/wood.lua

337 lines
9.3 KiB
Lua
Raw Normal View History

2015-07-04 14:22:39 +03:00
2016-06-09 17:08:34 +03:00
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(),
2021-06-04 22:54:19 +03:00
paramtype2 = "facedir",
on_place = minetest.rotate_node
})
minetest.register_craft({
output = "ethereal:sakura_wood 4",
recipe = {{"ethereal:sakura_trunk"}}
})
-- 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 = {
"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
})
-- 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"),
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(),
2021-06-04 22:54:19 +03:00
paramtype2 = "facedir",
on_place = minetest.rotate_node
2014-11-09 22:17:41 +03:00
})
minetest.register_craft({
output = "ethereal:willow_wood 4",
recipe = {{"ethereal:willow_trunk"}}
})
-- 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 = {
"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
})
-- 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"),
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(),
paramtype2 = "facedir",
on_place = minetest.rotate_node
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 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, 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
})
-- 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"),
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(),
paramtype2 = "facedir",
on_place = minetest.rotate_node
2014-11-09 22:17:41 +03:00
})
minetest.register_craft({
output = "ethereal:frost_wood 4",
recipe = {{"ethereal:frost_tree"}}
})
-- 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 = {
"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
})
-- 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"),
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(),
paramtype2 = "facedir",
on_place = minetest.rotate_node
2014-11-09 22:17:41 +03:00
})
minetest.register_craft({
output = "ethereal:yellow_wood 4",
recipe = {{"ethereal:yellow_trunk"}}
})
-- 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",
on_place = minetest.rotate_node
2014-11-09 22:17:41 +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},
2021-06-04 22:54:19 +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:palm_wood 4",
recipe = {{"ethereal:palm_trunk"}}
})
-- 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 = {
"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
})
-- 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"),
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(),
paramtype2 = "facedir",
on_place = minetest.rotate_node
2014-11-09 22:17:41 +03:00
})
minetest.register_craft({
output = "ethereal:banana_wood 4",
recipe = {{"ethereal:banana_trunk"}}
})
-- 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 = {
"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 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 = {
"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 trunk (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
})
-- birch wood
minetest.register_node("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(),
paramtype2 = "facedir",
on_place = minetest.rotate_node
})
minetest.register_craft({
output = "ethereal:birch_wood 4",
recipe = {{"ethereal:birch_trunk"}}
2016-01-09 15:25:33 +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"),
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.3, -0.5, -0.3, 0.3, 0.5, 0.3}
},
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 trunk
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
})
-- olive wood
minetest.register_node("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(),
paramtype2 = "facedir",
on_place = minetest.rotate_node
})
minetest.register_craft({
output = "ethereal:olive_wood 4",
recipe = {{"ethereal:olive_trunk"}}
})