
local default_material = {
		{"default:cobble", "default_cobble", "Cobble", {cracky = 3, not_in_creative_inventory=1}},
		{"default:stone","default_stone", "Stone", {cracky = 3, not_in_creative_inventory=1}},
		{"default:desert_stone","default_desert_stone", "Desert Stone", {cracky = 3, not_in_creative_inventory=1}},
		{"default:desert_cobble","default_desert_cobble", "Desert Cobble", {cracky = 3, not_in_creative_inventory=1}},
		{"default:sandstone","default_sandstone", "Sandstone", {cracky = 3, not_in_creative_inventory=1}},
		{"default:desert_sandstone","default_desert_sandstone", "Desert Sandstone", {cracky = 3, not_in_creative_inventory=1}},
		{"default:silver_sandstone","default_silver_sandstone", "Silver Sandstone", {cracky = 3, not_in_creative_inventory=1}},
		{"default:stonebrick","default_stone_brick", "Stone Brick",{cracky = 3, not_in_creative_inventory=1}},
		{"default:desert_stonebrick","default_desert_stone_brick", "Desert Stone Brick",{cracky = 3, not_in_creative_inventory=1}},
		}
for i in ipairs (default_material) do
local item = default_material [i][1]
local mat = default_material [i][2]
local desc = default_material [i][3]
local gro = default_material [i][4]
minetest.register_node("mymasonhammer:"..mat.."_ladder", {
	description =  desc.." Ladder Block",
	drawtype = "nodebox",
	tiles = {
		mat..".png",
		mat..".png",
		mat..".png",
		mat..".png",
		mat..".png",
		mat..".png^mymasonhammer_tint.png",
		},
	paramtype = "light",
	paramtype2 = "facedir",
	walkable = true,
	climbable = true,
	drop = item,
	groups = gro,
	node_box = {
		type = "fixed",
		fixed = {
			{-0.5, -0.5, 0.4375, 0.5, 0.5, 0.5},
			{-0.5, -0.5, 0.3175, -0.3125, 0.5, 0.5},
			{0.3125, -0.5, 0.3175, 0.5, 0.5, 0.5},
			{-0.5, -0.4375, 0.3175, 0.5, -0.3125, 0.5},
			{-0.5, 0.3125, 0.3175, 0.5, 0.4375, 0.5},
			{-0.5, -0.1875, 0.3175, 0.5, -0.0625, 0.5},
			{-0.5, 0.0625, 0.3175, 0.5, 0.1875, 0.5},
		}
	},
	selection_box = {
		type = "fixed",
		fixed = {
			{-0.5, -0.5, 0.3175, 0.5, 0.5, 0.5},
		}
	},
})
minetest.register_node("mymasonhammer:"..mat.."_ladder2", {
	description =  desc.." Ladder Block",
	drawtype = "nodebox",
	tiles = {
		mat..".png",
		mat..".png",
		mat..".png",
		mat..".png",
		mat..".png",
		mat..".png",
		},
	paramtype = "light",
	paramtype2 = "facedir",
	walkable = true,
	climbable = true,
	drop = item,
	groups = gro,
	node_box = {
		type = "fixed",
		fixed = {
			{-0.5, -0.5, -0.3175, 0.5, 0.5, 0.5},
		}
	},
	selection_box = {
		type = "fixed",
		fixed = {
			{-0.5, -0.5, -0.3175, 0.5, 0.5, 0.5},
		}
	},
})
minetest.register_node("mymasonhammer:"..mat.."_ladder3", {
	description =  desc.." Ladder Block",
	drawtype = "nodebox",
	tiles = {
		mat..".png",
		mat..".png",
		mat..".png",
		mat..".png",
		mat..".png",
		mat..".png",
		},
	paramtype = "light",
	paramtype2 = "facedir",
	walkable = true,
	climbable = true,
	drop = item,
	groups = gro,
	node_box = {
		type = "fixed",
		fixed = {
			{-0.5, -0.5, 0.3175, 0.5, 0.5, 0.5},
		}
	},
	selection_box = {
		type = "fixed",
		fixed = {
			{-0.5, -0.5, 0.3175, 0.5, 0.5, 0.5},
		}
	},
})
minetest.register_node("mymasonhammer:"..mat.."_foot", {
	description =  desc.." Foot Hold Block",
	drawtype = "nodebox",
	tiles = {
		mat..".png",
		mat..".png",
		mat..".png",
		mat..".png",
		mat..".png",
		mat..".png^mymasonhammer_tint2.png",
		},
	paramtype = "light",
	paramtype2 = "facedir",
	walkable = true,
	climbable = true,
	drop = item,
	groups = gro,
	node_box = {
		type = "fixed",
		fixed = {
			{0.125, 0.1875, -0.375, 0.375, 0.375, 0.5},
			{-0.375, -0.375, -0.375, -0.125, -0.1875, 0.5},
			{-0.5, -0.5, -0.3125, 0.5, 0.5, 0.5},
		}
	},

})
minetest.register_node("mymasonhammer:"..mat.."_foot2", {
	description =  desc.." Foot Hold Block",
	drawtype = "nodebox",
	tiles = {
		mat..".png",
		mat..".png",
		mat..".png",
		mat..".png",
		mat..".png",
		mat..".png^mymasonhammer_tint2.png",
		},
	paramtype = "light",
	paramtype2 = "facedir",
	walkable = true,
	climbable = true,
	drop = item,
	groups = gro,
	node_box = {
		type = "fixed",
		fixed = {
			{0.125, 0.1875, -0.0625, 0.375, 0.375, 0.5},
			{-0.375, -0.375, -0.0625, -0.125, -0.1875, 0.5},
			{-0.5, -0.5, 0.0625, 0.5, 0.5, 0.5},
		}
	},

})
minetest.register_node("mymasonhammer:"..mat.."_foot3", {
	description =  desc.." Foot Hold Block",
	drawtype = "nodebox",
	tiles = {
		mat..".png",
		mat..".png",
		mat..".png",
		mat..".png",
		mat..".png",
		mat..".png^mymasonhammer_tint2.png",
		},
	paramtype = "light",
	paramtype2 = "facedir",
	walkable = true,
	climbable = true,
	drop = item,
	groups = gro,
	node_box = {
		type = "fixed",
		fixed = {
			{0.125, 0.1875, 0.125, 0.375, 0.375, 0.5},
			{-0.375, -0.375, 0.125, -0.125, -0.1875, 0.5},
			{-0.5, -0.5, 0.375, 0.5, 0.5, 0.5},
		}
	},

})
end
