Modifying the creative dimension v.1.2.3 datapack to support the Trinkets [fabric] mod

There is a datapack called Creative dimension which is available on Modrinth. The modrinth page has a link to a 1.20-1.20.2 version that is found here: https://github.com/KawaMood/creative_dimension/tree/for_1.20_to_1.20.2. I'm seeking a way to modify this datapack to include the back slot of the Trinkets mod that you can put a backpack from the Travelers backpacks mod into. This is to stop players from taking items out of the creative dimension into the survival world. I have located a function at creative_dimension-for_1.20_to_1.20.2/data/pk_cr_di/functions/player/not_in_creative_dimension/restore_player_inventroy.mcfunction which seems to copy items from a chest back into the players inventory when leaving the dimension. I need help finding the function which moves the players items to the chest and modifying both functions to accommodate for the Trinkets mod slot for the backpack. If you can find a fabric mod or datapack which already does this same thing, that would also work.
Continue to help post