3 walls.register = function(wall_name, wall_desc, wall_texture, wall_mat, wall_sounds)
4 -- inventory node, and pole-type wall start item
5 minetest.register_node(wall_name, {
6 description = wall_desc,
10 fixed = {{-1/4, -1/2, -1/4, 1/4, 1/2, 1/4}},
12 connect_front = {{-3/16, -1/2, -1/2, 3/16, 3/8, -1/4}},
13 connect_left = {{-1/2, -1/2, -3/16, -1/4, 3/8, 3/16}},
14 connect_back = {{-3/16, -1/2, 1/4, 3/16, 3/8, 1/2}},
15 connect_right = {{ 1/4, -1/2, -3/16, 1/2, 3/8, 3/16}},
17 connects_to = { "group:wall", "group:stone" },
19 is_ground_content = false,
20 tiles = { wall_texture, },
22 groups = { cracky = 3, wall = 1, stone = 2 },
27 minetest.register_craft({
28 output = wall_name .. " 6",
31 { wall_mat, wall_mat, wall_mat},
32 { wall_mat, wall_mat, wall_mat},
38 walls.register("walls:cobble", "Cobblestone Wall", "default_cobble.png",
39 "default:cobble", default.node_sound_stone_defaults())
41 walls.register("walls:mossycobble", "Mossy Cobblestone Wall", "default_mossycobble.png",
42 "default:mossycobble", default.node_sound_stone_defaults())
44 walls.register("walls:desertcobble", "Desert Cobblestone Wall", "default_desert_cobble.png",
45 "default:desert_cobble", default.node_sound_stone_defaults())