A tool that can be included within a mod to more easily handle Game State changes caused by the Glowing Hourglass item or the "rewind" command
To add the tool to your mod:
- Download the glowing_hourglass_manager.lua file from the repository.
- Copy the downloaded .lua file into your mod's folder
- either require() or include() the .lua file to add it's functionality to your mod.
- Edit the Save Data section, as well as the MC_PRE_GAME_EXIT callback function to fit the needs of your mod
More info on how to use the tool can be found in the wiki.