Fallout 4 weapon mods

Weapon mods can be built from raw materials and attached to weapons at weapons workbenches.

Overview
There are over 700 mods, including sights, barrels, stocks, receivers, and magazines. The Gun Nut perk is required to create better modifications for guns. The Science! perk is used to create better modifications for energy weapons and create advanced modifications for bullet based firearms. The Blacksmith perk is used to create better modifications for melee weapons.

Perks
Most firearms, including energy weapons, offer the option to customize the grip/stock, receiver and sight, changing which perks affect the weapon.
 * A firearm with an automatic receiver gets bonuses from the Commando perk.
 * A firearm with a non-automatic receiver and pistol grip get bonuses from the Gunslinger perk.
 * A firearm with a non-automatic receiver and a stock mod get bonuses from the Rifleman perk.
 * The Sniper perk only works with a non-automatic firearm with a scope, which uses the "hold breath" mechanic.

Grip mods create pistol weapons, while stock mods create rifle weapons. This allows for almost any ranged firearm to be customized to fit the player's character build.

Action Points formula
Attacking from V.A.T.S. uses Action Points (AP). There are three numbers that determine what the AP cost is for every type of modded weapon: the weapon's  base AP cost , the weapon's  AP multiplier , and the mod's AP effect , and they do so based on the following formula.


 * Each weapon has a different  base AP cost  of action points that it uses per shot. For instance, a 10mm bare receiver costs 21 AP per shot in V.A.T.S., so its AP base value is 21.
 * Each type of weapon also has an  AP multiplier  that determines how much effect mods have on the AP of that type of weapon. Combat shotguns, for instance, have an AP multiplier of 1.75, while laser guns have an AP multiplier of 1.25, meaning mods applied to combat shotguns will have a greater impact on AP (up or down) than mods on laser guns.
 * Each mod has an AP effect , which is how strongly it changes the weapon's AP cost. There are some general patterns to how strongly the mods affect all gun types, but it's inconsistent. For instance, the reflex sight has a consistent -3 effect on all gun types tested, but the long barrel mod has an effect of +1 on 10mm pistols, but +4 on hunting rifles.