3 walls.register = function(wall_name, wall_desc, wall_texture_table, wall_mat, wall_sounds)
4 --make wall_texture_table paramenter backwards compatible for mods passing single texture
5 if type(wall_texture_table) ~= "table" then
6 wall_texture_table = { wall_texture_table }
8 -- inventory node, and pole-type wall start item
9 minetest.register_node(wall_name, {
10 description = wall_desc,
14 fixed = {{-1/4, -1/2, -1/4, 1/4, 1/2, 1/4}},
16 connect_front = {{-3/16, -1/2, -1/2, 3/16, 3/8, -1/4}},
17 connect_left = {{-1/2, -1/2, -3/16, -1/4, 3/8, 3/16}},
18 connect_back = {{-3/16, -1/2, 1/4, 3/16, 3/8, 1/2}},
19 connect_right = {{ 1/4, -1/2, -3/16, 1/2, 3/8, 3/16}},
21 connects_to = { "group:wall", "group:stone", "group:fence" },
23 is_ground_content = false,
24 tiles = wall_texture_table,
26 groups = { cracky = 3, wall = 1, stone = 2 },
31 minetest.register_craft({
32 output = wall_name .. " 6",
35 { wall_mat, wall_mat, wall_mat},
36 { wall_mat, wall_mat, wall_mat},
42 walls.register("walls:cobble", "Cobblestone Wall", {"default_cobble.png"},
43 "default:cobble", default.node_sound_stone_defaults())
45 walls.register("walls:mossycobble", "Mossy Cobblestone Wall", {"default_mossycobble.png"},
46 "default:mossycobble", default.node_sound_stone_defaults())
48 walls.register("walls:desertcobble", "Desert Cobblestone Wall", {"default_desert_cobble.png"},
49 "default:desert_cobble", default.node_sound_stone_defaults())