module AutoTurret
{
    item TurretAmmoBook
	{
		Weight		=	0.5,
		Type		=	Literature,
		DisplayName	=	TurretAmmoBook,
		Icon		=	TurretBookLV1,
		TeachedRecipes  =   	Craft_30mmAmmo;Craft_20mmAmmo;Craft_50mmAmmo;Craft_60mmAmmo;Craft_88mmAmmo;Craft_EtherAmmoBuilder,
        ReplaceOnUse    =   	TurretAmmoBook,
		DisplayCategory	=   SkillBook,
		StaticModel = Book,
		WorldStaticModel = BookBrown_Ground,
	}
    item 30mmAmmo{
        DisplayCategory 		= Ammo,
		Count 		= 5,
		Weight 		= 0.3,
		Type 		= Normal,
		DisplayName 		= 30mmAmmo,
		Icon 		= 30mmAmmo,
		MetalValue 		= 24,
		WorldStaticModel 		= BoxOfShotGunShells,
    }
    item 20mmAmmo{
        DisplayCategory 		= Ammo,
		Count 		= 5,
		Weight 		= 0.2,
		Type 		= Normal,
		DisplayName 		= 20mmAmmo,
		Icon 		= 20mmAmmo,
		MetalValue 		= 24,
		WorldStaticModel 		= BoxOfShotGunShells,
    }
	item 50mmAmmo{
        DisplayCategory 		= Ammo,
		Count 		= 5,
		Weight 		= 0.5,
		Type 		= Normal,
		DisplayName 		= 50mmAmmo,
		Icon 		= 50mmAmmo,
		MetalValue 		= 24,
		WorldStaticModel 		= BoxOfShotGunShells,
    }
	item 60mmAmmo{
        DisplayCategory 		= Ammo,
		Count 		= 5,
		Weight 		= 1,
		Type 		= Normal,
		DisplayName 		= 60mmAmmo,
		Icon 		= 60mmAmmo,
		MetalValue 		= 24,
		WorldStaticModel 		= BoxOfShotGunShells,
    }
    item 88mmAmmo{
        DisplayCategory 		= Ammo,
		Count 		= 5,
		Weight 		= 1.5,
		Type 		= Normal,
		DisplayName 		= 88mmAmmo,
		Icon 		= 88mmAmmo,
		MetalValue 		= 24,
		WorldStaticModel 		= BoxOfShotGunShells,
    }
    item EtherAmmoBuilder{
        DisplayCategory 		= Ammo,
		Weight 		= 10,
		DisplayName 		= EtherAmmoBuilder,
		Icon 		= EtherAmmoBuilder,
		MetalValue 		= 24,
        WorldStaticModel = EtherAmmoBuilder,
		Type 		= Container,
		Capacity = 10,
    }
    model EtherAmmoBuilder
    {   
        mesh = WorldItems/Replicator,
        texture = WorldItems/Replicator,
    }
    craftRecipe Craft_30mmAmmo
    {
        timedAction = CrushLimestone,
        time            = 2,
        category = AutoTurret,
        Tags = AnySurfaceCraft,
        SkillRequired = MetalWelding:2,
        needTobeLearn = true,
        inputs
        {
            item 2 [Base.GunPowder],
			item 1 tags[WeldingMask] mode:keep,
            item 1 [Base.SmallSheetMetal],
            item 1 [Base.SheetMetal],
        }
        outputs
        {
           item 2 AutoTurret.30mmAmmo,
        }
    }
    craftRecipe Craft_20mmAmmo
    {
        timedAction = CrushLimestone,
        time            = 2,
        category = AutoTurret,
        Tags = AnySurfaceCraft,
        SkillRequired = MetalWelding:2,
        needTobeLearn = true,
        inputs
        {
            item 2 [Base.GunPowder],
			item 1 tags[WeldingMask] mode:keep,
            item 1 [Base.SmallSheetMetal],
        }
        outputs
        {
           item 2 AutoTurret.20mmAmmo,
        }
    }
    craftRecipe Craft_50mmAmmo
    {
        timedAction = CrushLimestone,
        time            = 2,
        category = AutoTurret,
        Tags = AnySurfaceCraft,
        SkillRequired = MetalWelding:3,
        needTobeLearn = true,
        inputs
        {
            item 2 [Base.GunPowder],
			item 1 tags[WeldingMask] mode:keep,
            item 1 [Base.SmallSheetMetal],
            item 1 [Base.SheetMetal],
        }
        outputs
        {
           item 2 AutoTurret.50mmAmmo,
        }
    }
    craftRecipe Craft_60mmAmmo
    {
        timedAction = CrushLimestone,
        time            = 2,
        category = AutoTurret,
        Tags = AnySurfaceCraft,
        SkillRequired = MetalWelding:3,
        needTobeLearn = true,
        inputs
        {
            item 2 [Base.GunPowder],
			item 1 tags[WeldingMask] mode:keep,
            item 1 [Base.SmallSheetMetal],
            item 1 [Base.SheetMetal],
        }
        outputs
        {
           item 2 AutoTurret.60mmAmmo,
        }
    }
    craftRecipe Craft_88mmAmmo
    {
        timedAction = CrushLimestone,
        time            = 2,
        category = AutoTurret,
        Tags = AnySurfaceCraft,
        SkillRequired = MetalWelding:3,
        needTobeLearn = true,
        inputs
        {
            item 2 [Base.GunPowder],
			item 1 tags[WeldingMask] mode:keep,
            item 1 [Base.SmallSheetMetal],
            item 1 [Base.SheetMetal],
        }
        outputs
        {
           item 2 AutoTurret.88mmAmmo,
        }
    }
    craftRecipe Craft_EtherAmmoBuilder
    {
        timedAction = CrushLimestone,
        time            = 2,
        category = AutoTurret,
        Tags = AnySurfaceCraft,
        SkillRequired = MetalWelding:2;Electricity:10,
        needTobeLearn = true,
        inputs
        {
            item 10 [Base.SmallSheetMetal],
            item 10 [Base.SheetMetal],
            item 1 [Base.BlowTorch],
        }
        outputs
        {
           item 1 AutoTurret.EtherAmmoBuilder,
        }
    }
}



