Skip to content

Adding ItemFlags to GuiItem #143

@imDMK

Description

@imDMK

Adding ItemFlags to GUI items is possible, but they don’t work in-game (tested in 1.21.3+, maybe even lower versions).

To make them work properly, you need to add empty AttributeModifiers to the ItemMeta, for example:
meta.setAttributeModifiers(MultimapBuilder.hashKeys().hashSetValues().build());
Without this, item flags are visually added but have no real effect in-game.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions