Automatically enable keepInventory when loading a world for the first time
A super-small and super-simple datapack to automatically enable the keepInventory gamerule when a world is loaded for the first time. Once it enables keepInventory, it will use a hidden scoreboard value to stop itself from enabled keepInventory again on the same world.