Skip to main content

Structure

Introduction

Icon configuration properties are widely used,
The parent can be a standard element panel or serve as a template icon for a generator

Usually, the icon configuration structure is a key-value pair configured under the panel icons | items node
The key serves as the icon ID, and the value is an object containing the icon's related properties

For example, an icon:

'myCustomIcon':
material: apple
name: 'Custom Apple'
lore: |-
Description 1
Description 2
  • myCustomIcon is the ID of this icon
  • material, name, lore, etc. are all properties of the icon

Root Nodes

The following lists the nodes available for icon configuration
Please note that except for declaring the material of the root node which is necessary, all other nodes are optional

Display Properties

Common display properties

NodeAliasesAccepted ValuesDescription
materialtexture, matString / ObjectIcon material (vanilla or special source)
name-StringItem display name
loreloresString / ListItem display description
amountcount, amtIntItem quantity
damagedurability, durIntItem durability
customModelDatamodelIntItem model ID (1.14+)
color-StringItem color
glowshinyBoolWhether item glows
enchantmentsenchantment, enchantMapItem enchantment properties
flagsflagListItem flags
unbreakable-BoolWhether item is unbreakable
nbt-MapItem NBT properties
enhancedLore-BoolEnable enhanced Lore parsing
slotslots(List) Int / StringSpecify display slot
hide-tooltiphide_tooltipBoolWhether to hide item tooltip (1.20.5+)
item-modelitem_modelStringItem model (1.21.2+)

Special material source properties
All nodes below accept String type values

NodeAliasesDescription
headskullCustom skull material
AzureFlowafAzureFlow plugin support
craftengineceCraftEngine plugin support
EcoItemsecoEcoItems plugin support
HeadDatabasehdbHeadDatabase plugin support
HMCCosmeticshmcHMCCosmetics plugin support
itemsadderiaItemsAdder plugin support
ItemToolsitItemTools plugin support
MagicCosmeticsmagicMagicCosmetics plugin support
MagicGemgemMagicGem plugin support
MMOItemsmiMMOItems plugin support
NeigeItemsniNeigeItems plugin support
Nexo-Nexo plugin support
oraxen-Oraxen plugin support
ratziel-Ratziel plugin support
SX-ItemsiSX-Item plugin support
SlimefunsfSlimefun plugin support
zaphkielzapZaphkiel plugin support
serializedbase64Serialized base64 item
kether-Kether script item

Interaction Handling

This node accepts multiple types of configuration values, which will be explained in detail in subsequent chapters

NodeAliasesDescription
actionactions, handler, clickInteraction action

Icon Properties

NodeAliasesAccepted ValuesDescription
idkeyStringOverride icon ID
update-LongIcon auto-translate variable cycle
relocate-LongIcon auto-filter locate sub-icon cycle
frames-ListDynamic item frames
frames-propertiesframes-prop, propObjectDynamic item frame default settings
sub-ListConditional sub-icons