You can do exactly that with an Item element: it renders like an inventory slot and shows the vanilla tooltip when hovered, including any custom name, lore or NBT you give it.
Steps:
- In the layout editor right‑click the background → New Element → Item.
- Right‑click the added Item element and configure:
- Item → pick
minecraft:potionfor potions orminecraft:diamond_sword. - Custom Data / NBT → paste the NBT for the effect or enchantments you want. For example:
for Strength potions, or{ "tag": { "Potion": "minecraft:strong_strength" } }for an enchanted sword.{ "tag": { "Enchantments": [ { "id": "minecraft:sharpness", "lvl": 5 }, { "id": "minecraft:unbreaking", "lvl": 3 } ] } }
- Item → pick
- Adjust count, display name, lore, etc., as needed. The tooltip and tooltip text follow the NBT you set automatically.
If your custom NBT wasn’t working before, double-check the JSON structure (Quotes around IDs, integers for levels) and paste it into the Custom Data field when editing the Item element.
More detail on the Item element is in the FancyMenu documentation: Item element overview.