#✅ | Placeholders
1 messages · Page 1 of 1 (latest)
Checking the placeholder names for size/position real quick 🙂
Yep , for FancyMenu, the usual placeholders are these 👇
Element size
{"placeholder":"elementwidth","values":{"id":"your_element_id"}}{"placeholder":"elementheight","values":{"id":"your_element_id"}}
Element position
{"placeholder":"elementposx","values":{"id":"your_element_id"}}{"placeholder":"elementposy","values":{"id":"your_element_id"}}
Replace your_element_id with the actual element ID. You can usually get that by right-clicking the element and using Copy Element Identifier.
If you meant the whole screen size instead:
{"placeholder":"guiwidth"}{"placeholder":"guiheight"}
About not being able to click/select placeholders: that usually means you’re not in the full editor view. The placeholder picker only shows up there, and if it still won’t let you click, you can just type the placeholder manually , that works fine too 🙂
If you want, I can also give you a ready-to-paste example for a specific element like a button, image, or text field.
advanced_width = {"placeholder":"elementwidth","values":{"id":"938990"}}
advanced_height = {"placeholder":"elementheight","values":{"id":"938990"}}
advanced_posx = {"placeholder":"elementposx","values":{"id":"938990"}}
advanced_posy = {"placeholder":"elementposy","values":{"id":"938990"}}
I want you to use these commands to add a border around that element—about 2 pixels on each side.
Figuring out the cleanest way to turn those size/position values into a 2px border around the element 🎯
Got it , FancyMenu doesn’t have a direct border placeholder, so I’m turning that into a simple 2px outline workaround now 🙂
Yep , the clean way to do this is to make a separate rectangle element behind the original one.
There’s no direct “border” placeholder, so the trick is:
width + 4height + 4posx - 2posy - 2
That gives you about 2px on each side 😄
Use this for the border rectangle element:
advanced_width = {"placeholder":"calc","values":{"expression":"{"placeholder":"elementwidth","values":{"id":"938990"}} + 4","decimal":"false"}}
advanced_height = {"placeholder":"calc","values":{"expression":"{"placeholder":"elementheight","values":{"id":"938990"}} + 4","decimal":"false"}}
advanced_posx = {"placeholder":"calc","values":{"expression":"{"placeholder":"elementposx","values":{"id":"938990"}} - 2","decimal":"false"}}
advanced_posy = {"placeholder":"calc","values":{"expression":"{"placeholder":"elementposy","values":{"id":"938990"}} - 2","decimal":"false"}}
A couple of important bits:
- put the border element behind the original element
- both elements should use the same anchor point
- set the border rectangle to the color you want
If you want, I can also format this as a full ready-to-paste border setup for a specific element type, like a button or image.
source = {"placeholder":"local","values":{"key":"selectWorld.version"}} v{"placeholder":"mcversion"}%n%{"placeholder":"local","values":{"key":"selectWorld.version"}} 39.0+beta%n%{"placeholder":"loadername"}: {"placeholder":"loaderver"}
Loaderver has been showing only 0.0.0 for a long time now. Is this a problem with the mod or with the way I set it up?
Checking whether loaderver is a known placeholder issue or just a setup thing 🤔
Quick update: I checked the docs and there doesn’t seem to be a known issue list entry for loaderver yet. Looking at whether this is just an unsupported loader/version readout or a real bug 👀
Short version: your syntax looks fine, so this does not look like a setup mistake 🙂
{"placeholder":"loaderver"} is the right placeholder.
What matters is this:
- FancyMenu docs say
loaderverreturns the mod loader version for Forge/Fabric - I didn’t find an existing GitHub issue about
loaderveralways showing0.0.0 - If you’re on NeoForge / Quilt / another loader, that placeholder may simply not be supported there, which could explain the
0.0.0
So my best guess is:
- Forge/Fabric: likely a mod/environment bug, not your setup
- Other loader: probably just unsupported
Your other placeholders in the string don’t affect loaderver, so the problem is probably not in that text format.
If you want, send me:
- your Minecraft version
- your mod loader and loader version
- your FancyMenu version
and I’ll tell you whether loaderver should work there 👍
fabric = "0.19.2"
minecraft = "26.1.2"
fancymenu = "3.9.0"
Thanks, I’m checking whether loaderver returning 0.0.0 is already reported anywhere 👍
Thanks, that helps 🙂
I checked the FancyMenu issues and didn’t find an existing report for loaderver staying at 0.0.0.
So, based on what you sent:
- your placeholder syntax is fine
- on Fabric,
{"placeholder":"loaderver"}should normally work - so this looks more like a mod/environment bug or conflict than a setup mistake
A good next test is:
- run only FancyMenu + its required dependency
- check whether
loaderverstill shows0.0.0
If it still does, please send me:
- your
/logs/latest.logright after starting the game - the exact Minecraft version again, just to double-check, because
26.1.2looks unusual to me
Then I can help narrow it down properly 🔍
This support thread has been automatically marked as solved because there were no new messages for at least 24 hours.
The AI helper is now disabled. If you still need help, please create a new support thread.