Energy In Maps like the Tag Gamemode

Is there a way to add energy in the limit like in the tag game mode? I want to make it like a hide-and-seek map and add energy for the hiders.

Place a movement meter device, set the tracked item to energy, then you can adjust the Item Drain Per Tick and the Drain Interval to your liking.

Then connect it to a speed modifier device and set the speed to 0.

Ok thanks, I was wondering how to do it and if there was a module for energy