#✅ | Value inside a translate key placeholder

1 messages · Page 1 of 1 (latest)

honest mesa
#

I want to display a translation key dynamically based on a player's scoreboard value or using fmvariable.

The translation key format is name.lore.[score].

How can I put the this into text element correct?

hasty moonBOT
#

I’m checking the docs for how FancyMenu handles dynamic translation keys in text elements. If there’s a supported way to build a key from a scoreboard value or fmvariable, I’ll point it out clearly 🙂

#

I found the basic nesting syntax in the docs, and I’m double-checking whether there’s already a known issue around scoreboard placeholders. If there is, I’ll mention the workaround instead of sending you down a dead end 🙏

hasty moonBOT
# honest mesa I want to display a translation key dynamically based on a player's scoreboard v...

Yep , you can do that with the Localize Text placeholder and a nested getvariable value 🙂
If your fmvariable is called score, use this:

{"placeholder":"local","values":{"key":"name.lore.{"placeholder":"getvariable","values":{"name":"score"}}"}}

That will resolve to something like:

  • name.lore.0
  • name.lore.1
  • name.lore.5

depending on the variable value.

A couple of important notes:

  • FancyMenu placeholders are not real JSON, they just look similar.
  • Don’t escape nested placeholders.
  • If you’re trying to read directly from a scoreboard, the docs say scoreboard-related placeholders are currently broken, so the safer workaround is to copy the scoreboard value into an fmvariable first, then use getvariable.

If you want, I can also show you the exact setup for the scoreboard → fmvariable workaround 🛠️

#

✅ | Value inside a translate key placeholder