You can be the first to go fight those wars. There's no 'illegal for countries'.
> You can be the first to go fight those wars.
At the end of the day, a public agency can only act on the basis of laws in their respective country. (Principle of Legality) How national laws are passed however is sometimes influenced through supranational organizations - entirely without the need of a war.
What do you do if some countries don't want to play ball, and they turn out to be the biggest emitters?
That is how we can achieve the same with no war.
Your comment is self-contradicting. If you expect solutions to work at a democratic level, you cannot advocate for a solution where a random third-party is able to force it's will upon any country. For instance, where do you fit in your mental model a scenario where a democratic country decides via referendum to meet all it's energy needs with coal?
What kind of democratic process do you expect to follow to make something illegal for countries to do anything when they didn't voted for it?
In more democratic countries the denizens can indeed pick if they want a government for or against nuclear energy.
> We should make it illegal for software engineers to complain about industrialisation unless they give up laptops, gpus, air-conditioning, coffee machines and refrigerators.
What a silly needlessly polarizing sentiment. What we should make illegal is for countries that have the means and know-how to provide on-demand emission-free electricity for the grid to remain on coal and gas - lest the institutional and societal knowledge on nuclear power plants completely atrophies.