module AutoTurret 
{
    imports
    {
        Base
    }
    item BeginnerTurretBook
	{
		Weight		=	0.5,
		Type		=	Literature,
		DisplayName	=	BeginnerTurretBook,
		Icon		=	TurretBookLV1,
		TeachedRecipes  =   	Craft_762MainBaseGround;Craft_9mmMainBaseGround;Place_762Turret;Place_9mmTurret,
        ReplaceOnUse    =   	BeginnerTurretBook,
		DisplayCategory	=   SkillBook,
		StaticModel = Book,
		WorldStaticModel = BookBrown_Ground,
	}
    item 762MainBaseGround{
        DisplayCategory = VehicleMaintenance,
        Weight	=	5,
        Type	=	Normal,
        DisplayName	=	MainBaseGround,
        Icon	=	MainBaseGround,
        
    }
    item 9mmMainBaseGround{
        DisplayCategory = VehicleMaintenance,
        Weight	=	5,
        Type	=	Normal,
        DisplayName	=	9mmMainBaseGround,
        Icon	=	MainBaseGround,
    }

    craftRecipe Craft_762MainBaseGround
    {
        timedAction = CrushLimestone,
        Tags = AnySurfaceCraft,
        time            = 140,
        category = AutoTurret,
        SkillRequired = MetalWelding=3;Electricity=2,
        needTobeLearn = true,
        
        inputs
        {
            item 3 [Base.EngineParts],
            item 5 [Base.SmallSheetMetal],
            item 2 [Base.SheetMetal],
            item 5 [Base.BlowTorch],
            item 1 tags[WeldingMask] mode:keep,
        }
        outputs
        {
           item 1 AutoTurret.762MainBaseGround,
        }
    }
    craftRecipe Craft_9mmMainBaseGround
    {
        timedAction = CrushLimestone,
        time            = 140,
        Tags = AnySurfaceCraft,
        category = AutoTurret,
        SkillRequired = MetalWelding=3;Electricity=2,
        needTobeLearn = true,
        
        inputs
        {
            item 3 [Base.EngineParts],
            item 5 [Base.SmallSheetMetal],
            item 2 [Base.SheetMetal],
            item 5 [BlowTorch],
            item 1 tags[WeldingMask] mode:keep,
        }
        outputs
        {
           item 1 AutoTurret.9mmMainBaseGround,
        }
    }
    craftRecipe Place_762Turret
    {
        timedAction = CrushLimestone,
        time            = 140,
        category = AutoTurret,
        SkillRequired = MetalWelding:5,
        needTobeLearn = true,
        Tags = InHandCraft,
        OnCreate = Recipe.OnCreate.Place_762Turret,
        RemoveResultItem:true,
        inputs
        {
            item 1 [AutoTurret.762MainBaseGround],
        }
        outputs
        {
           
        }
    }
 
    craftRecipe Place_9mmTurret
    {
        timedAction = CrushLimestone,
        time            = 140,
        category = AutoTurret,
        Tags = InHandCraft,
        SkillRequired = MetalWelding:5,
        OnCreate = Recipe.OnCreate.Place_9mmTurret,
        needTobeLearn = true,
        RemoveResultItem:true,
        inputs
        {
            item 1 [AutoTurret.9mmMainBaseGround],
        }
        outputs
        {
           
        }
    }
}
	