Event Respawn

Hello everyone, I would like you to help me make events that have respawn. For example, in my game I am making areas where you can collect stone and materials, and I would like those events to regenerate automatically after x time passes. Used rpg maker mv, I have the yanfly plugin and I have created a time system with common variables and events
Haha I just created a post about basically the same thing. Anyways I know of two ways.

Tedious Way:
1: Each event has a variable assigned to it that will log what time it was harvested and a self switch to tell that it was harvested
2: Assign a variable for how long it takes for the event to respawn
3: Have a conditional branch in your clock that checks if the harvested event has exceeded the time and turn the self-switch off.
Note: Every single event would need it's own variable so this is not suitable if your game has a lot of harvestables

Laggy Way:
1: Use Yanfly self variable plugin to store the variable instead of a regular variable for harvest time.
2: Instead of a regular variable use a self variable and turn your harvested event into a parallel event that will turn it's own switch off once it has exceeded the time limit.
Note: Do able if your map does not have a lot of harvest spots but will generate lag if you create too many.

If someone helps me with my issue of finding a non laggy way and you are still missing a response. I'll let you know what worked for me

Forgot about the double post feel free to delete this post since it's bad advice lol
Hey ATT_Turan gave me an excellent link to help with your problem. There is a tutorial by Trihan that explains how to do this.

here

Original thread: https://forums.rpgmakerweb.com/threads/event-respawn.162221/