A mod that allows for global GameRules that applies when a world is loaded.
Also alows for default world difficulty when loaded and locking of the difficulty
When locking a worlds difficulty it can't be unlocked again and it's done after any difficulty changes. A locked world won't have it's difficulty changed when loaded.
All changes made to the GameRules or the difficulty in one world is applied to all other worlds when they are loaded and saved to the config.
Changes made in either config file or in-game config gui is applied on world loads.
Example of changed config
You are free to use my mod in your mod pack.