Well, after reading a thread, I checked all the user conditions and contracts of Cave Story+, and I can say with all safety:
1: Modding IS NOT illegal. You can mod the game, and distribute it for FREE. (Well, for free, I think that is obvious)
2: You cannot do ports and distribute them. That...