Repository navigation
Item Models and Tooltips
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'| 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.
"gui": {
"name": "<aqua>Fortune</aqua>",
"material": "DIAMOND",
"customModelData": 0,
"itemModel": "itemsadder:fortune_icon",
"tooltipStyle": "itemsadder:rare",
"slot": 12,
"page": 1,
"description": [ "..." ]
}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.
-
Older servers - below 1.21.3 the two new keys are ignored and the console logs one warning per
key.
custom_model_datakeeps 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_Pickaxeworks. -
Leave it out or empty -
''or a missing key means "don't change it".
PickaxeSkin, XPrisonEnchantmentGuiProperties, XPrisonCurrencyItemConfig and MilestoneDisplay
expose getItemModel() and getTooltipStyle() (API 1.10). They return null when the key is not
configured.
- Home
- Features
- Setup
- Commands & Permissions
- Placeholders
- Logging
- Season Reset
- Translations
- Item Models & Tooltips
- Changelog
- Currencies
- Ranks
- Prestiges
- Rebirths
- Mines
- AutoSell
- AutoMiner
- Enchants
- Pickaxe Levels
- Pickaxe Skins
- Pickaxe Quality
- Pickaxe Settings
- Gangs
- Multipliers
- Blocks
- Bombs
- History
- Mining Stats
- Nicknames
- Battle Pass
- Quests
- Daily Rewards
- Milestones
- Leaderboards
- Boosters
- config.yml
- autominer.yml
- autosell.yml
- block-rewards.yml
- enchants.yml
- currencies.yml
- multipliers.yml
- ranks.yml
- prestiges.yml
- pickaxe-levels.yml
- pickaxe-skins.yml
- pickaxe-quality.yml
- gangs.yml
- mines.yml
- bombs.yml
- blocks.yml
- history.yml
- logging.yml
- mining-stats.yml
- rebirths.yml
- battlepass.yml
- quests.yml
- dailyrewards.yml
- milestones.yml
- leaderboards.yml
- boosters.yml
- efficiency.json
- fortune.json
- unbreaking.json
- haste.json
- speed.json
- fly.json
- nightvision.json
- jumpboost.json
- autosell.json
- tokenfinder.json
- gemfinder.json
- salary.json
- charity.json
- blessing.json
- gangvaluefinder.json
- prestigefinder.json
- explosive.json
- nuke.json
- layer.json
- laserbeam.json
- second-hand.json
- sixth-hand.json
- doomfall.json
- prism-break.json
- gem-merchant.json
- token-merchant.json
- super-token-miner.json
- double-strike.json
- prodigy.json
- blockbooster.json
