Hi there! 👋 It sounds like you want to create a custom health bar for your HUD. That's a super fun way to personalize your game!
You'll want to use a Progress Bar element for this. It allows you to display a value like your health using a customizable bar. You can link it to your player's health using placeholders.
Here’s a general idea of how to do it:
- Open the SpiffyHUD editor (in the Pause screen, click the button in the top-left, then Customization -> New Layout for Current Screen).
- Right-click on the editor background.
- Select New Element -> Progress Bar.
- Right-click on the new Progress Bar element to customize it.
- In the settings, you can use placeholders to set the "Progress Value" to your current health. You'll likely use placeholders like
current_player_health_percentor combinecurrent_player_healthandmax_player_healthwith acalcplaceholder to get a percentage.
You can also customize its appearance with different textures, colors, and directions!
If you'd like a more detailed guide on how Progress Bars work, especially with placeholders, you can check out this example from Drippy (another one of Keksuccino's mods, but the concept is very similar and helpful): Custom Progress Bar Example
And for the basics of how FancyMenu (which SpiffyHUD builds upon) works, including elements and placeholders, definitely check out the FancyMenu documentation: FancyMenu Documentation
Let me know if you have more questions as you start building it! 😊