#✅ | Value inside a translate key placeholder
1 messages · Page 1 of 1 (latest)
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 🙏
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.0name.lore.1name.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
fmvariablefirst, then usegetvariable.
If you want, I can also show you the exact setup for the scoreboard → fmvariable workaround 🛠️
✅ | Value inside a translate key placeholder