-- Translation support
local S = minetest.get_translator("camomese")

-- Register the Digiline Core Acacia Wood Planks node
minetest.register_node("camomese:digicore_acacia_wood", {
    description = S("Digiline Core Acacia Wood Planks"),
    paramtype2 = "facedir",
    place_param2 = 0,
    tiles = {"default_acacia_wood.png^camomese_digicore.png"},
    is_ground_content = false,
    inventory_image = minetest.inventorycube("default_acacia_wood.png^camomese_digicore.png"),
    groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2, wood = 1},
    sounds = default.node_sound_wood_defaults(),
    digilines = {
        wire = {
            rules = {
                { x =  0, y =  0, z = -1 },
                { x =  1, y =  0, z =  0 },
                { x = -1, y =  0, z =  0 },
                { x =  0, y =  0, z =  1 },
                { x =  0, y =  1, z =  0 },
                { x =  0, y = -1, z =  0 }
            },
        },
    },
})

-- Register the recipe
minetest.register_craft({
    output = "camomese:digicore_acacia_wood 8",
    recipe = {
        {"default:acacia_wood", "default:acacia_wood", "default:acacia_wood"},
        {"default:acacia_wood", "digilines:wire_std_00000000", "default:acacia_wood"},
        {"default:acacia_wood", "default:acacia_wood", "default:acacia_wood"},
    }
})
