Generally, game mods are legal if they do not infringe on a product's copyrights. However, they can be illegal depending on the game studio and country laws.