module Base
{
    template vehicle Ovens
    {
        part OvenFrontLeft
        {
            area = Common,
        }
        part OvenFrontRight
        {
            area = Common,
        }
        part OvenMiddleLeft
        {
            area = Common,
        }
        part OvenMiddleRight
        {
            area = Common,
        }
        part OvenRearLeft
        {
            area = Common,
        }
        part OvenRearRight
        {
            area = Common,
        }
        
        part Oven*
        {
            category = nodisplay,
            specificItem = false,
            itemType = Base.TransportOven,
            container
            {
                capacity = 10,
                test = CommonTemplates.ContainerAccess.ContainerByName,
            }
            table install
            {
                items
                {
                        1
                        {
                            type = Base.Screwdriver,
                            count = 1,
                            keep = true,
                            equip = primary,
                        }
                }
                time = 300,
                skills = Mechanics:1,
                recipes = Basic Mechanics,
                test = CommonTemplates.InstallTest.PartInCabin,
            }
            table uninstall
            {
                items
                {
                        1
                        {
                            type = Base.Screwdriver,
                            count = 1,
                            keep = true,
                equip = primary,
                        }
                }
                time = 300,
                skills = Mechanics:1,
                recipes = Basic Mechanics,
                test = CommonTemplates.UninstallTest.PartInCabin,
                requireEmpty = true,
            }
            lua
            {
                create = CommonTemplates.Create.Oven,
                init = CommonTemplates.Init.Oven,
                update = CommonTemplates.Update.Oven,
            }
        }
    }
}

