#✅ | Hunger Values Placeholder

1 messages · Page 1 of 1 (latest)

violet karma
#

I want hunger values placeholder

warm kayakBOT
# violet karma I want hunger values placeholder

Oh, hello there! You're looking for hunger value placeholders, right? Don't worry, I can help you with that! ✨

SpiffyHUD (and FancyMenu) has a few placeholders you can use for hunger values:

  • current_player_hunger: This will show the player's current hunger level.
  • max_player_hunger: This one shows the maximum hunger level.
  • current_player_hunger_percentage: And this will give you the current hunger as a percentage!

You can use these in a Progress Bar element for custom hunger bars, or in a Text element to display the values.

You can find more information about these and other placeholders on the FancyMenu documentation page here: Placeholders

Let me know if you need anything else! 😊

violet karma
#

for a progress bar

warm kayakBOT
# violet karma for a progress bar

Ah, perfect! For a progress bar, you'll specifically want to use the current_player_hunger_percentage placeholder for the "Progress value score" or similar field within the Progress Bar element. That way, your bar will dynamically fill up and empty based on the player's actual hunger! 🍎

You specify the placeholder in the Progress Bar element's settings. Just make sure the value is expressed as a percentage (0-100) or a decimal (0.0-1.0) depending on how you configure your progress bar. The current_player_hunger_percentage placeholder returns a value from 0 to 100, which is perfect for most progress bar setups.

If you want to know more about the Progress Bar element, you can check out the documentation on elements here: Elements

Is there anything else I can help you with today? 😊

violet karma
#

is not working.

warm kayakBOT
# violet karma is not working.

I'm sorry to hear it's not working for you! Could you please provide a little more context so I can understand what might be going on? 🤔

To help you better, could you tell me:

  1. What Minecraft version, mod loader (Forge/NeoForge/Fabric), and SpiffyHUD/FancyMenu versions are you using?
  2. What exactly happens when it's "not working"? Do you see an error message, does the bar not move, or does it show an incorrect value?
  3. Could you provide the exact JSON placeholder string you are using in the progress bar?
  4. Are you currently in a world when testing this? SpiffyHUD elements related to player stats only work when you're actually in a game world.
  5. Have you enabled customizations for the HUD screen?

Any details you can provide will help me figure out what's going on!

wind matrix
warm kayakBOT
# wind matrix tell the user the full placeholder to put in the progress bar

Of course! I'm happy to help you with that. ❤️

Here is the full placeholder you can copy and paste directly into the progress bar's value field (it might be called "Progress value score" or something similar):

{"placeholder":"current_player_hunger_percentage"}

This placeholder returns a value from 0 to 100, which is exactly what a progress bar needs to show your hunger level.

Just give that a try, and let me know if it works for you this time! 😊

violet karma
#

thanks keksuccino!

warm kayakBOT
#
Thread Marked as Solved

This support thread has been marked as solved by @violet karma.

The AI helper is now disabled, but you can still continue the conversation if needed. Thank you for using our support system!