#✅ | How to properly make a text element display the name of an item

1 messages · Page 1 of 1 (latest)

long finch
#

How do I make a text element display the name of an item properly?

hexed sapphireBOT
# long finch How do I make a text element display the name of an item properly?

Use a Single-Line Text element instead of the normal Text element—only that one parses JSON components like the item-display-name placeholder returns.

  1. Right-click the editor background → New Element → Single-Line Text.
  2. In the text field, paste the slot_item_display_name placeholder for the slot you care about (e.g. {"placeholder":"slot_item_display_name","values":{"slot":"0"}}).
  3. Make sure the element isn’t appending other text; the placeholder must be the only content so it can parse the component into the localized name.
  4. If you need a different slot (helmet, selected hotbar, etc.) search the placeholder list in-game for the exact name you need.

That placeholder list lives in the FancyMenu docs; it explains slot_item_display_name and how to target specific slots: FancyMenu placeholders.