Consider separating the mod into two mods under a modpack, one for swamp_worldgen (name as an example) and the other which should retain the "swamp" modname under the modpack to add the nodes and do all the other stuff.
Specifically the idea is, that with the worldgeneration separate from the registering of nodes and other features, this allows other mods to use the mangrove trees, mud and other nodes as dependencies, without actually adding the swamp biome into the world. The user will thus have the option when selecting mods for a worldsave whether to enable the swamp biome worldgen or not, in case the swamp biome got pulled as a dependency for another mod that relies on the mangrove trees etc, that the user installed.
Consider separating the mod into two mods under a modpack, one for swamp_worldgen (name as an example) and the other which should retain the "swamp" modname under the modpack to add the nodes and do all the other stuff.
Specifically the idea is, that with the worldgeneration separate from the registering of nodes and other features, this allows other mods to use the mangrove trees, mud and other nodes as dependencies, without actually adding the swamp biome into the world. The user will thus have the option when selecting mods for a worldsave whether to enable the swamp biome worldgen or not, in case the swamp biome got pulled as a dependency for another mod that relies on the mangrove trees etc, that the user installed.