Downloading and playing modded versions of games is not illegal, but it is against the terms and conditions of most game developers.