Can we have a way to make custom stat bars with events to cause them to change? Like health bars and hungers bars; health changes when the player is injured, poisoned or other things, hunger changes when moving or eating, and oxygen decreases as the player spends more time underwater. A way to make our own status bars with different causes for change would be great.
Issue comments
You can do this by adding multiple overlays for each different stage of the status bar, and use procedures to activate them when different things happen. You can do this with global variables to help, but I don't recommend it as it would not be multiplayer friendly and would act weirdly with other worlds and reloading a world.
Sorry for late reply diamondcarrot, just make lots of different overlays, each one at each different stage of the bar. (so one for full, one for 1 off full, one for 2 off full etc.). Then, add a player nbt tag for your stat bar. Have a player tick update procedure that puts a different overlay on depending on the nbt number tag. Then, when you want something to add or take away from your stat bar, just make it do that for the nbt tag.
There is a workaround solution for this possible until we add this: https://www.youtube.com/watch?v=nDoclprdfV0&list=PLAeL-oIFIEngE6jRgFYeFMfuj8WQsO3Ei&index=62&t=0s
This post is relevant to the other post found here https://mcreator.net/tracker/issue/53749
I thought I would do a quick search before posting the GUI progress bar and glad I did. I should add but could you make one for update ticks as well that way if it's linked to a block the update tick can act as a progress bar?
It is just an idea for that part.
https://www.youtube.com/watch?v=L55G-XOIHr8&list=PLiDUvCGH5WEUEV9nc0Ll2pzUFmSFc21uR&index=22
not sure if this will help but it is for 1.12.2
Reference workspace with example code: https://mcreator.net/tracker/issue/57770
Migrated to https://github.com/MCreator/MCreator/issues/46
A limited way to do this can already be achieved using Overlays and procedures. We will add the support for actual stat bars as hunger, health, air, ... in the future updates.