ethereal/wood.lua

268 lines
7.4 KiB
Lua
Raw Normal View History

2015-07-04 04:22:39 -07:00
--= Define Trunks and Wood
-- Acacia Trunk (thanks to VanessaE for acacia textures)
if minetest.registered_nodes["default:acacia_tree"] then
minetest.register_alias("ethereal:acacia_trunk", "default:acacia_tree")
minetest.register_alias("ethereal:acacia_wood", "default:acacia_wood")
2015-07-25 08:45:29 -07:00
print ("using acacia tree in default game")
else
2015-07-04 04:22:39 -07:00
minetest.register_node("ethereal:acacia_trunk", {
2014-11-09 11:17:41 -08:00
description = "Acacia Trunk",
2015-07-04 04:22:39 -07:00
tiles = {
"moretrees_acacia_trunk_top.png",
"moretrees_acacia_trunk_top.png",
"moretrees_acacia_trunk.png"
},
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
2014-11-09 11:17:41 -08:00
sounds = default.node_sound_wood_defaults(),
paramtype2 = "facedir",
2015-07-10 01:04:07 -07:00
on_place = minetest.rotate_node,
2014-11-09 11:17:41 -08:00
})
2015-07-04 04:22:39 -07:00
-- Acacia Wood
minetest.register_node("ethereal:acacia_wood", {
2014-11-09 11:17:41 -08:00
description = "Acacia Wood",
tiles = {"moretrees_acacia_wood.png"},
2015-06-24 02:00:12 -07:00
is_ground_content = false,
2015-07-04 04:22:39 -07:00
groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
2014-11-09 11:17:41 -08:00
sounds = default.node_sound_wood_defaults(),
})
minetest.register_craft({
output = "ethereal:acacia_wood 4",
recipe = {{"ethereal:acacia_trunk"}}
})
end
2014-11-09 11:17:41 -08:00
2015-07-04 04:22:39 -07:00
-- Willow Trunk
minetest.register_node("ethereal:willow_trunk", {
2014-11-09 11:17:41 -08:00
description = "Willow Trunk",
2015-07-04 04:22:39 -07: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 11:17:41 -08:00
sounds = default.node_sound_wood_defaults(),
paramtype2 = "facedir",
2015-07-10 01:04:07 -07:00
on_place = minetest.rotate_node,
2014-11-09 11:17:41 -08:00
})
2015-07-04 04:22:39 -07:00
-- Willow Wood
minetest.register_node("ethereal:willow_wood", {
2014-11-09 11:17:41 -08:00
description = "Willow Wood",
tiles = {"willow_wood.png"},
2015-06-24 02:00:12 -07:00
is_ground_content = false,
2015-07-04 04:22:39 -07:00
groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
2014-11-09 11:17:41 -08:00
sounds = default.node_sound_wood_defaults(),
})
minetest.register_craft({
output = "ethereal:willow_wood 4",
recipe = {{"ethereal:willow_trunk"}}
})
2015-07-04 04:22:39 -07:00
-- Redwood Trunk
minetest.register_node("ethereal:redwood_trunk", {
2014-11-09 11:17:41 -08:00
description = "Redwood Trunk",
2015-07-04 04:22:39 -07: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 11:17:41 -08:00
sounds = default.node_sound_wood_defaults(),
paramtype2 = "facedir",
2015-07-10 01:04:07 -07:00
on_place = minetest.rotate_node,
2014-11-09 11:17:41 -08:00
})
2015-07-04 04:22:39 -07:00
-- Redwood Wood
minetest.register_node("ethereal:redwood_wood", {
2014-11-09 11:17:41 -08:00
description = "Redwood Wood",
tiles = {"redwood_wood.png"},
2015-06-24 02:00:12 -07:00
is_ground_content = false,
2015-07-04 04:22:39 -07:00
groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
2014-11-09 11:17:41 -08:00
sounds = default.node_sound_wood_defaults(),
})
minetest.register_craft({
output = "ethereal:redwood_wood 4",
recipe = {{"ethereal:redwood_trunk"}},
})
2015-07-04 04:22:39 -07:00
-- Frost Trunk
minetest.register_node("ethereal:frost_tree", {
2014-11-09 11:17:41 -08:00
description = "Frost Tree",
2015-07-04 04:22:39 -07: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 11:17:41 -08:00
sounds = default.node_sound_wood_defaults(),
paramtype2 = "facedir",
2015-07-10 01:04:07 -07:00
on_place = minetest.rotate_node,
2014-11-09 11:17:41 -08:00
})
2015-07-04 04:22:39 -07:00
-- Frost Wood
minetest.register_node("ethereal:frost_wood", {
2014-11-09 11:17:41 -08:00
description = "Frost Wood",
tiles = {"frost_wood.png"},
2015-06-24 02:00:12 -07:00
is_ground_content = false,
2015-07-04 04:22:39 -07:00
groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1, put_out_fire = 1},
2014-11-09 11:17:41 -08:00
sounds = default.node_sound_wood_defaults(),
})
minetest.register_craft({
output = "ethereal:frost_wood 4",
recipe = {{"ethereal:frost_tree"}}
})
2015-07-04 04:22:39 -07:00
-- Healing Trunk
minetest.register_node("ethereal:yellow_trunk", {
2014-11-09 11:17:41 -08:00
description = "Healing Tree Trunk",
2015-07-04 04:22:39 -07: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 11:17:41 -08:00
sounds = default.node_sound_wood_defaults(),
paramtype2 = "facedir",
2015-07-10 01:04:07 -07:00
on_place = minetest.rotate_node,
2014-11-09 11:17:41 -08:00
})
2015-07-04 04:22:39 -07:00
-- Healing Wood
minetest.register_node("ethereal:yellow_wood", {
2014-11-09 11:17:41 -08:00
description = "Healing Tree Wood",
tiles = {"yellow_wood.png"},
2015-06-24 02:00:12 -07:00
is_ground_content = false,
2015-07-04 04:22:39 -07:00
groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1, put_out_fire = 1},
2014-11-09 11:17:41 -08:00
sounds = default.node_sound_wood_defaults(),
})
minetest.register_craft({
output = "ethereal:yellow_wood 4",
recipe = {{"ethereal:yellow_trunk"}}
})
2015-07-04 04:22:39 -07:00
-- Palm Trunk (thanks to VanessaE for palm textures)
minetest.register_node("ethereal:palm_trunk", {
2014-11-09 11:17:41 -08:00
description = "Palm Trunk",
2015-07-04 04:22:39 -07: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 11:17:41 -08:00
sounds = default.node_sound_wood_defaults(),
paramtype2 = "facedir",
2015-07-10 01:04:07 -07:00
on_place = minetest.rotate_node,
2014-11-09 11:17:41 -08:00
})
2015-07-04 04:22:39 -07:00
-- Palm Wood
minetest.register_node("ethereal:palm_wood", {
2014-11-09 11:17:41 -08:00
description = "Palm Wood",
tiles = {"moretrees_palm_wood.png"},
2015-06-24 02:00:12 -07:00
is_ground_content = false,
2015-07-04 04:22:39 -07:00
groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
2014-11-09 11:17:41 -08:00
sounds = default.node_sound_wood_defaults(),
})
minetest.register_craft({
output = "ethereal:palm_wood 4",
recipe = {{"ethereal:palm_trunk"}}
})
2015-07-04 04:22:39 -07:00
-- Banana Tree Trunk
minetest.register_node("ethereal:banana_trunk", {
2014-11-09 11:17:41 -08:00
description = "Banana Trunk",
2015-07-04 04:22:39 -07: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 11:17:41 -08:00
sounds = default.node_sound_wood_defaults(),
paramtype2 = "facedir",
2015-07-10 01:04:07 -07:00
on_place = minetest.rotate_node,
2014-11-09 11:17:41 -08:00
})
2015-07-04 04:22:39 -07:00
-- Banana Tree Wood
minetest.register_node("ethereal:banana_wood", {
2014-11-09 11:17:41 -08:00
description = "Banana Wood",
tiles = {"banana_wood.png"},
2015-06-24 02:00:12 -07:00
is_ground_content = false,
2015-07-04 04:22:39 -07:00
groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
2014-11-09 11:17:41 -08:00
sounds = default.node_sound_wood_defaults(),
})
minetest.register_craft({
output = "ethereal:banana_wood 4",
recipe = {{"ethereal:banana_trunk"}}
})
2015-07-04 04:22:39 -07:00
-- Scorched Trunk
minetest.register_node("ethereal:scorched_tree", {
2014-11-09 11:17:41 -08:00
description = "Scorched Tree",
2015-07-04 04:22:39 -07: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 11:17:41 -08:00
sounds = default.node_sound_wood_defaults(),
paramtype2 = "facedir",
2015-07-10 01:04:07 -07:00
on_place = minetest.rotate_node,
2014-11-09 11:17:41 -08: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"},
}
})
2015-07-04 04:22:39 -07:00
-- Mushroom Trunk
minetest.register_node("ethereal:mushroom_trunk", {
2014-11-09 11:17:41 -08:00
description = "Mushroom",
2015-07-04 04:22:39 -07: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 11:17:41 -08:00
sounds = default.node_sound_wood_defaults(),
paramtype2 = "facedir",
2015-07-10 01:04:07 -07:00
on_place = minetest.rotate_node,
})
-- Birch Trunk (thanks to VanessaE for birch textures)
minetest.register_node("ethereal:birch_trunk", {
description = "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 = "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"}}
2015-07-04 04:22:39 -07:00
})