local ladders = {
    {'default:ladder_wood', 'default_ladder_wood.png', 'default_wood.png'},
    {'default:ladder_steel', 'default_ladder_steel.png', 'default_steel_block.png'},
    {'ctf_map:ladder_wood', 'default_ladder_wood.png', 'default_wood.png'},
    {'ctf_map:ladder_steel', 'default_ladder_steel.png', 'default_steel_block.png'},
    {'ctf_mode_classes:scaling_ladder', 'default_ladder_steel.png', 'default_steel_block.png'},
}


for l,def in pairs(ladders) do
    core.override_item(def[1], {
        tiles = { def[2], def[2], def[3], def[3], def[3], def[3] },
        use_texture_alpha = 'clip',
        drawtype = 'nodebox',
        paramtype = 'light',
        node_box = {
            type = 'fixed',
            fixed = {
                {-0.375, -0.5, -0.5, -0.25, -0.375, 0.5}, -- strut_1
                {0.25, -0.5, -0.5, 0.375, -0.375, 0.5}, -- strut_2
                {-0.4375, -0.5, 0.3125, 0.4375, -0.375, 0.4375}, -- rung_1
                {-0.4375, -0.5, 0.0625, 0.4375, -0.375, 0.1875}, -- rung_2
                {-0.4375, -0.5, -0.1875, 0.4375, -0.375, -0.0625}, -- rung_3
                {-0.4375, -0.5, -0.4375, 0.4375, -0.375, -0.3125} -- rung_4
            }
        },
        selection_box = {
            type = 'wallmounted',
            wall_top = {-0.4375, 0.375, -0.5, 0.4375, 0.5, 0.5},
            wall_side = {-0.5, -0.5, -0.4375, -0.375, 0.5, 0.4375},
            wall_bottom = {-0.4375, -0.5, -0.5, 0.4375, -0.375, 0.5}
        }
    })
end
