Weapon mods can be built from raw materials and attached to weapons at weapons workbenches. This includes sights, barrels, stocks, receivers, magazines and more. The Gunsmith 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 Makeshift Warrior perk is used to create better modifications for melee weapons.