Item Flags π³
Item flags usually determine which information is and isn't displayed on the item, but some add functionality as well.
Flag ID | Description | GUI Icon |
---|---|---|
| When applied on an item, any attributes assigned to it will function both while in main-hand and off-hand. Usually, items attributes only work while in main-hand | Golden Sword |
| When applied on an item it will display the custom attributes and potion effects it has in its lore. If HIDE_ATTRIBUTES (or HIDE_POTION_EFFECTS for potion effects) is also present, which usually just hides vanilla attributes, said vanilla attributes are also converted to lore in the similar style as Valhalla's custom attributes and displayed as such | Name Tag |
| Hides ValhallaMMO's custom durability | Wooden Pickaxe |
| Hides ValhallaMMO's quality flavor text from the item | Coal |
| Hides ValhallaMMO's custom smithing- and alchemy tag flavor texts from the item | Ink Sac |
| If applied on arrows, they may be duplicated by the Infinity enchantment | Arrow |
| Should not be applied manually. Does the same as DISPLAY_ATTRIBUTES, except this tag is removed from the item if it no longer has any potion effects. Is used with the Weapon Coating mechanic to make potion effects temporarily visible on an item | Glass Bottle |
| Should also not be applied manually. This tag is applied to items which fail their condition checks during recipes, which will cause them to display error information or not appear entirely | Barrier |
| Prevents an item from being enchanted | Enchantment Table |
| Prevents an item from being repaired by the Mending enchantment | Anvil |
| Vanilla flag, hides armor trims | Brick |
| Vanilla flag, hides attribute modifiers on the item. If DISPLAY_ATTRIBUTES is also present, these hidden attributes will be displayed in the form of lore instead | Paper |
| Vanilla flag, hides any "destroys" tags on the item | Golden Pickaxe |
| Vanilla flag, hides the colorable item's hex color from the item | Red Dye |
| Vanilla flag, hides any enchantments on the item | Enchanted Book |
| Vanilla flag, hides any "placeable on" tags on the item | Bricks |
| Vanilla flag, hides any potion effects present on the item. If DISPLAY_ATTRIBUTES is also present, these hidden potion effects will be displayed in the form of lore instead | Potion |
| Vanilla flag, if the item is unbreakable its "Unbreakable" flavor text is hidden | Diamond Pickaxe |