2015-07-04 14:22:39 +03:00
|
|
|
local fences = {
|
|
|
|
{"junglewood", "Jungle Wood", "default_junglewood.png", "default:junglewood"},
|
|
|
|
{"scorched", "Scorched", "scorched_tree.png", "ethereal:scorched_tree"},
|
|
|
|
{"frostwood", "Frost Wood", "frost_wood.png", "ethereal:frost_wood"},
|
|
|
|
{"redwood", "Redwood", "redwood_wood.png", "ethereal:redwood_wood"},
|
|
|
|
{"willow", "Willow", "willow_wood.png", "ethereal:willow_wood"},
|
|
|
|
{"yellowwood", "Healing Wood", "yellow_wood.png", "ethereal:yellow_wood"},
|
|
|
|
{"palm", "Palm Wood", "moretrees_palm_wood.png", "ethereal:palm_wood"},
|
|
|
|
{"banana", "Banana Wood", "banana_wood.png", "ethereal:banana_wood"},
|
|
|
|
{"mushroom", "Mushroom", "mushroom_trunk.png", "ethereal:mushroom_trunk"},
|
|
|
|
{"acacia", "Acacia Wood", "moretrees_acacia_wood.png", "ethereal:acacia_wood"},
|
2015-08-13 11:05:12 +03:00
|
|
|
{"pine", "Pine Wood", "default_pine_wood.png", "default:pinewood"},
|
2015-11-14 13:21:06 +03:00
|
|
|
{"birch", "Birch Wood", "moretrees_birch_wood.png", "ethereal:birch_wood"},
|
2014-11-09 22:17:41 +03:00
|
|
|
}
|
|
|
|
|
2016-01-09 15:25:33 +03:00
|
|
|
for _, row in pairs(fences) do
|
2014-11-09 22:17:41 +03:00
|
|
|
|
2016-01-21 17:59:28 +03:00
|
|
|
minetest.register_node("ethereal:fence_"..row[1], {
|
|
|
|
description = row[2].." Fence",
|
|
|
|
drawtype = "fencelike",
|
|
|
|
is_ground_content = false,
|
|
|
|
tiles = {row[3]},
|
|
|
|
inventory_image = "default_fence_overlay.png^" .. row[3]
|
|
|
|
.. "^default_fence_overlay.png^[makealpha:255,126,126",
|
|
|
|
wield_image = "default_fence_overlay.png^" .. row[3]
|
|
|
|
.. "^default_fence_overlay.png^[makealpha:255,126,126",
|
|
|
|
paramtype = "light",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-1/7, -1/2, -1/7, 1/7, 1/2, 1/7},
|
|
|
|
},
|
|
|
|
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
})
|
2014-11-09 22:17:41 +03:00
|
|
|
|
2016-01-21 17:59:28 +03:00
|
|
|
minetest.register_craft({
|
|
|
|
output = "ethereal:fence_"..row[1].." 4",
|
|
|
|
recipe = {
|
|
|
|
{row[4], "group:stick", row[4]},
|
|
|
|
{row[4], "group:stick", row[4]},
|
|
|
|
}
|
|
|
|
})
|
2014-11-09 22:17:41 +03:00
|
|
|
|
2016-01-10 21:43:29 +03:00
|
|
|
end
|