Skip to content

Item Models and Tooltips

Jan Kluka edited this page Oct 21, 2026 · 1 revision

Item Models & Tooltip Styles

Every item X-Prison builds from a config accepts three optional keys that change how it looks with a resource pack:

Key Value Needs
custom_model_data A number from your resource pack. 0 = none. Any version
item_model A namespaced key, e.g. nexo:ruby_pickaxe. Replaces the item's model. 1.21.3+ server
tooltip_style A namespaced key, e.g. nexo:legendary. Replaces the tooltip background and frame. 1.21.3+ server

Because item_model and tooltip_style take plain namespaced keys, the models and tooltip styles your ItemsAdder, Nexo or Oraxen pack generates work directly. Use the same key that plugin puts in its own item config.

info-item:
  slot: 4
  material: ENCHANTED_BOOK
  name: '<light_purple><bold>Information'
  item_model: 'nexo:skins_book'
  tooltip_style: 'nexo:legendary'

Where they work

Item File Key spelling
Every GUI item (buttons, info items, decorations, status icons) all module .yml files item_model / tooltip_style
Enchant icons enchant .json, inside the gui block "itemModel" / "tooltipStyle"
Pickaxe skins (applied to the pickaxe itself) pickaxe-skins.yml, per skin item-model / tooltip-style
First-join pickaxe enchants.yml → first-join-pickaxe item_model / tooltip_style
Bombs bombs.yml → bombs.<type>.item item_model / tooltip_style
Currency notes (withdrawn currency items) currencies.yml → physical-item item_model / tooltip_style
Milestone icons milestones.yml (claimed, locked, buttons, track icons, and milestone icons that set a material) item-model / tooltip-style

The spelling column follows each file's own style. In the YAML files both spellings (item_model and item-model) are accepted.

Enchant icons

"gui": {
  "name": "<aqua>Fortune</aqua>",
  "material": "DIAMOND",
  "customModelData": 0,
  "itemModel": "itemsadder:fortune_icon",
  "tooltipStyle": "itemsadder:rare",
  "slot": 12,
  "page": 1,
  "description": [ "..." ]
}

Pickaxe skins

skins:
  plasma:
    name: '<aqua><bold>Plasma Surge'
    custom-model-data: 110
    item-model: 'nexo:plasma_pickaxe'
    tooltip-style: 'nexo:plasma'

Equipping a skin applies all three to the pickaxe. Switching skins or clicking Reset Skin removes the previous skin's model and tooltip style before the new skin is applied.

Behaviour

  • Older servers - below 1.21.3 the two new keys are ignored and the console logs one warning per key. custom_model_data keeps working.
  • Invalid keys - a value that isn't a valid namespaced key (for example one with spaces) is skipped and logged once. The rest of the item is still built normally.
  • Upper case - keys are lower-cased before use, so Nexo:Ruby_Pickaxe works.
  • Leave it out or empty - '' or a missing key means "don't change it".

For addon developers

PickaxeSkin, XPrisonEnchantmentGuiProperties, XPrisonCurrencyItemConfig and MilestoneDisplay expose getItemModel() and getTooltipStyle() (API 1.10). They return null when the key is not configured.

XPrison Logo

General

Modules

Default Configs

Enchant Configs — Passive

Enchant Configs — Currency Rewards

Enchant Configs — Key & Item Rewards

Enchant Configs — Area of Effect

Enchant Configs — Multipliers

Enchant Configs — Templates

Enchant Configs — Addons

Addons

Support

For Developers

Others

Clone this wiki locally