I've currently been working on a server for a friend of mine, and I've been wanting to implement a magic system that runs off of mana. Since I've found that using flow has been really hard wrap my head around, I've fallen back on coding custom functions to do the heavy lifting for all of the magic items that will consume mana. This implementation, however, does have some drawbacks, specifically in being difficult to communicate directly back to the item being used. One of these drawbacks happens to be that I cannot use a custom player stat, as the execute command and functions don't play well with custom commands added by plugins.
With all of that being said, I'd still like to have a HUD so that my players can see how much mana they have left, so I was wondering if there's some way for me to link a vanilla player stat to a HUD instead of a custom one, or if there's some way for me to have a custom stat update alongside a vanilla stat.
If not, it's alright and won't severely impact gameplay, but any help would be greatly appreciated so I can do my best on this project.