Fallout 4 legendary weapons

Legendary weapons are basic weapons that have special prefix modifiers that cannot be obtained elsewhere. They cannot be scrapped, but can be modified. They will appear on screen when picked up, and are marked with a star. Though unlike unique weapons, they are randomized and are never named.

Legendary weapons are only found on the bodies of "Legendary" variants of enemies. They can spawn at random locations throughout the Commonwealth. They are much more difficult to defeat than regular enemies, as each one has a chance to "mutate" after their health is depleted, restoring it to full. They will always have a legendary piece of equipment in their inventory.

Legendary effects can be added to items by dropping them on the ground and using the console command "attachmod" while having them selected, followed by the mod ID. You can't stack several mods on a single item, but you can stack over multiple pieces (armor). You can also replace a mod with another one via console.