#✅ | vanilla-like player armor bar

1 messages · Page 1 of 1 (latest)

cobalt sundial
#

I've added an armor bar but don't know which requirement I should add to make it only show up when the player is wearing armor. There is no "is player wearing armor" or anything like that on the requirements list.

bright obsidianBOT
#

Hi! 👋 Please first click the button below to start this support ticket.

⚠️ It is not possible for anybody to send messages in this ticket before it has been started, so you need to click the button for others to be able to help/answer you.

bright obsidianBOT
# cobalt sundial I've added an armor bar but don't know which requirement I should add to make it...

I also found a possibly related issue about inventory-state checks not updating correctly: Filled condition not updated when dropping hotbar items with hotkey 👀

For your armor bar, there’s no dedicated “is wearing armor” requirement. The easiest way is:

  1. Right-click the armor bar element
  2. Open Loading Requirements
  3. Add Is Number
  4. Compare {"placeholder":"current_player_armor"} to 0
  5. Set the mode to bigger-than

That makes the bar show only when the player has at least 1 armor point equipped.

If you want, I can also show you the exact field values to enter in the requirement window step by step 🤝

cobalt sundial
#

something like this?

bright obsidianBOT
# cobalt sundial something like this?

Yes, that’s the right window 👍

Set it like this:

  • Compare Mode: Bigger Than
  • Number: {"placeholder":"current_player_armor"}
  • Compare To Number: 0

That will make the armor bar show only when the player has at least 1 armor point.

If you want, I can also show you how to make it hide at exactly 0 and work nicely with the vanilla-like armor bar element 🌸

cobalt sundial
#

is it correct?

bright obsidianBOT
# cobalt sundial is it correct?

Yes, that looks correct

What matters is:

  • mode = bigger-than
  • number = {"placeholder":"current_player_armor"}
  • compare_with = 0

So your armor bar should only show when the player has at least 1 armor point equipped.

The outer Mode: Normal is fine here 👍

If it still doesn’t hide/show correctly, send me a screenshot of the armor bar element itself too and I’ll check the setup with you 👀

cobalt sundial
#

thak you

bright obsidianBOT
#

✅ | vanilla-like player armor bar