I'm making a small mod that should add recipes to the game for crafting special alcoholic drinks that give different bonuses. Bonuses should include gaining experience, receiving a buff for certain player characteristics (attack speed, running speed, etc.). With gaining experience, everything turned out to be extremely easy (I’ll probably even add a switch/case later for some types of alcohol that will give random experience). Now I'm stuck at the temporary bonuses stage. I tried to use the examples from the TimedActions folder, but I feel like I'm going down the wrong road.
I would be grateful for any help or advice.
Here is the link to the mod's github:
blackrainbowtest/PZ_SHALCO: PZ Shelter server alcohol mod (github.com)