#🙋 | adding items/item slots to gui

1 messages · Page 1 of 1 (latest)

torn abyssBOT
#

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:

  1. In the layout editor right‑click the background → New Element → Item.
  2. Right‑click the added Item element and configure:
    • Item → pick minecraft:potion for potions or minecraft:diamond_sword.
    • Custom Data / NBT → paste the NBT for the effect or enchantments you want. For example:
      {
        "tag": {
          "Potion": "minecraft:strong_strength"
        }
      }
      
      for Strength potions, or
      {
        "tag": {
          "Enchantments": [
            { "id": "minecraft:sharpness", "lvl": 5 },
            { "id": "minecraft:unbreaking", "lvl": 3 }
          ]
        }
      }
      
      for an enchanted sword.
  3. 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.

#

When the Item element keeps showing a water bottle, it usually means the base item is fine but the Custom Data (NBT) block is missing the tag wrapper FancyMenu expects. You need to supply the full compound, not just the inner keys. Example for a Strength potion:

{
  "tag": {
    "Potion": "minecraft:strong_strength"
  }
}

For a Sharpness V / Unbreaking III diamond sword:

{
  "tag": {
    "Enchantments": [
      { "id": "minecraft:sharpness", "lvl": 5 },
      { "id": "minecraft:unbreaking", "lvl": 3 }
    ]
  }
}

Make sure the Item element is pointing to the correct base (minecraft:potion or minecraft:diamond_sword) and then paste that JSON into its Custom Data field. Once you save, the tooltip and tooltip text will match the NBT you provided.

If you want more detail on the Item element and how to configure its data, check the Elements documentation.

#

Hmm, if the item keeps rendering as a water bottle even with the correct base item and the JSON I shared, there’s likely something else overriding it. Could you double-check:

  1. The Item element’s source tab – is it set to “Single Item” and specifically pointing to minecraft:potion (not e.g. minecraft:potion{} already typed somewhere else)?
  2. The Custom Data JSON – make sure you’re editing the “Custom Data/NBT” field and there’s no leftover text before or after the block (no trailing commas).
  3. That the element isn’t being forced by a loading requirement or variable to reset to another item.

If all that looks correct, I’d need a screenshot of the Item element’s settings (especially the Custom Data field) so I can see if anything funky is going on.

#

It’s the Potion tag that makes the bottle show a Strength effect, so the data you need is exactly what you typed—Minecraft just expects it as a normal JSON object, not wrapped in parentheses. Try this:

  1. Open the Custom Data/NBT editor and disable “Single-line mode” (use the [?] help button if needed). That mode tries to keep the whole JSON on one line, which can break braces when editing manually.
  2. Paste the JSON exactly like this:
{
  "tag": {
    "Potion": "minecraft:strong_strength"
  }
}
  1. Save, then double-check the Item Key is still minecraft:potion.

If it still looks like a water bottle, try toggling the editor’s “Advanced” view (the “Open in Editor” button) to ensure no stray characters are inside. Once it accepts the JSON correctly, the tooltip will show the Strength potion.

If you’re still stuck after that, send another screenshot of the full custom data editor (including the bottom lines) so I can see if something is being trimmed out.

#

Click the [?] next to “SINGLE-LINE MODE ENABLED!” to open the helper panel—there’s a toggle inside that lets you switch Single-line mode off. Once it’s off you can paste your pretty-printed JSON (with braces on their own lines) and it’ll stick.

If you don’t see the toggle, you can also hit “Open in Editor” (the button at the bottom right of the custom data field) and disable the single-line option from there.

#

🙋 | adding items/item slots to gui

#

<@&1365490168563372113>

Human Help Requested

@tidal lion has requested human assistance.

A human moderator will help you as soon as possible. In the meantime, you can continue asking questions to the AI support bot if you'd like.

The support team has been notified.