Repository navigation
Armor Progression
The ladder, armor XP and boosts all live in armors.yml. This page explains the model and how to tune it; the full default file is on the armors.yml page.
- A player owns one set. Its state —
tier,level,xp,skinand aset id— is stored in the persistent data of all four pieces and always written to all four together. -
Tiers are ordered by their position in
armors.yml. Each tier haslevels, an XP cost per level, boosts per level and a look. - Armor XP fills the current level. When it reaches the level's cost the set levels up and the remainder carries over. When the last level of a tier is completed the set moves to level 1 of the next tier and all four pieces are re-rendered with the new tier's look. The last level of the last tier is the cap.
- One XP gain can cross several levels — or tiers — at once (
/armorsadmin addxp, theALLsource). Every crossing is applied, and one feedback effect plays.
xp:
source: MANUAL # MANUAL = only the player's own pickaxe swings; ALL = every block X-Prison counts
per-block: 1.0 # armor XP per raw block; decimals allowed (0.5 = one XP every two blocks)
require-full-set: true # XP only while all four pieces are worn
flush-interval-ticks: 100 # banked XP is written to the items every 5 s
actionbar:
enabled: false
throttle-ticks: 20
format: "<gray>%tier_name% <white>Lv %level% <dark_gray>| %xp_bar% <dark_gray>| <yellow>%xp_percent%"
bar:
length: 20
filled: "<green>|"
empty: "<dark_gray>|"What counts as a raw block depends on xp.source:
xp.source |
Counts | Does not count |
|---|---|---|
MANUAL (default) |
Every block the player breaks with their own pickaxe swing — normal blocks, custom ItemsAdder/Nexo/Oraxen blocks and virtual packet-mine blocks, inside the worlds X-Prison is enabled in | Blocks broken by area enchants (Explosive, Laser, Drill, Cluster Bomb, packet-mine enchants …), bombs, the AutoMiner |
ALL |
Everything X-Prison credits to the player's blocks-broken statistic — manual swings, area-enchant blocks (aggregate or per block), bombs | The AutoMiner (it fires no block event); Block Booster's doubling (armor XP reads the raw number) |
Without X-Prison (standalone, since 2.1.0) there are no X-Prison block events: both modes count every block broken with a pickaxe, in every world, and ALL logs a note on startup saying so.
MANUAL rewards time spent mining rather than enchant levels: a maxed pickaxe and a fresh one earn the same armor XP per swing, so the ladder stays meaningful on an OP server. Switch to ALL if you want the armor to level at the pace of the whole enchant kit.
Multipliers on top of per-block: the worn skin's xp-multiplier, then anything listening to X-Prison's PlayerProgressionXpGainEvent — the Events addon's Armor Training event doubles it.
Banking: XP is accumulated in memory per player and written to the pieces every flush-interval-ticks, immediately on level-up, before any inventory change that touches a piece, and on logout. Nothing is written per block.
Per tier, either a curve or an explicit list:
levels: 10
xp:
base: 175 # level 1 costs 175
growth: 1.2 # level n costs base * growth^(n-1)
# or
levels-xp: [175, 210, 252, 302, 363, 435, 522, 627, 752, 903] # one entry per levelper-block: 1.0, ten levels per tier, growth: 1.2, base tripling per tier:
| Tier | Look | Lv 1 → Lv 10 boosts | Blocks to finish the tier | Cumulative |
|---|---|---|---|---|
| Common | leather, grey | +1 % → +10 % | 4,542 | 4.5k |
| Uncommon | leather, green | +11 % → +25 % | 13,628 | 18.2k |
| Rare | chainmail | +27 % → +45 % | 40,886 | 59.1k |
| Epic | iron | +48 % → +75 % | 122,656 | 181.7k |
| Legendary | gold | +79 % → +115 % | 367,964 | 549.7k |
| Mythic | diamond | +120 % → +160 % | 1,103,894 | 1.65M |
| Insanity | netherite | +165 % → +200 % | 3,311,679 | 4.97M |
The plugin download ships tools/ladder.py, which prints this table for any armors.yml (python tools/ladder.py plugins/XPrisonArmors/armors.yml).
-
Speed — change
xp.per-block. It scales every tier at once. Both setup bundles ship1.0withxp.source: MANUAL; if you switch toALLon an OP server, lowerper-block(for example0.1) because area enchants break blocks by the million. -
Shape — change
baseper tier (how big the jumps between tiers are) andgrowth(how much the last level of a tier costs compared to its first). -
Length — change
levels, or add tiers. Nothing else needs touching; boosts interpolate over whatever number of levels a tier has.
boosts:
currency:
money: { from: 1, to: 10 }
tokens: { from: 1, to: 10 }
gems: { from: 1, to: 10 }
pickaxe-xp: { from: 1, to: 10 }
enchant-proc: { from: 1, to: 10 }Values are percent for the full set. from applies at level 1, to at the tier's max level, every level in between is linear. A +10 % money boost turns a 100 money credit into 110.
| Boost | What it multiplies | Filter |
|---|---|---|
currency.<id> |
Every credit of that X-Prison currency |
bonuses.currency-causes (default MINING, MINING_OTHERS) |
pickaxe-xp |
Pickaxe XP gains |
bonuses.pickaxe-xp-sources (default MANUAL, AREA_ENCHANTS, AUTOMINER) |
enchant-proc |
The chance roll of every enchant | — (the core caps the chance at 100 %) |
Boosts stack multiplicatively with X-Prison's rank / global / personal multipliers and with other addons (pets, Momentum, Events) — Armors applies at HIGH priority, before the core's multipliers.
Keep them growing every level. Make each tier's from a step above the previous tier's to; the bundled ladder has no flat spots. A level-up that changes nothing feels like nothing.
-
bonuses.require-full-set: true(default) — only while all four pieces of one set are worn. -
bonuses.require-full-set: false— each worn piece grants a quarter of the set's value. - Pieces from different sets worn together are a mixed set: no boosts, no XP, and the menu says so. With the default slot lock this cannot happen by accident.
- A skin adds its
boostson top of the tier's, but only while the player still holds the skin's permission.
set:
base: LEATHER # LEATHER | CHAINMAIL | IRON | GOLDEN | DIAMOND | NETHERITE
glow: false
unbreakable: true
enchants: { PROTECTION: 1 }
name: "%tier_name% <gold>Armor"
lore:
- ""
- "<gold><bold>Stats"
- "<gold>| <white>Level: <gold>%level%<white>/<gold>%max_level%"
- "%boost_lines%"
- "<gold>| <white>Next Level XP: <gold>%xp%<white>/<gold>%xp_required%"
- ""
- "<white>More information in <gold>/armors"
- "%skin_line%"
- "%soulbound_line%"
helmet: { material: LEATHER_HELMET, color: "#8C7B6B", custom-model-data: 0 } # per-piece overrides, all optionalbase picks the material family (<BASE>_HELMET …); a per-piece block overrides material, color (leather only; defaults to the tier's color), custom-model-data, name and lore. A skin's look is layered on top — see Skins.
Placeholders in names and lore: %tier_name% %tier_id% %tier_color% %piece_name% %piece_description% %level% %max_level% %next_level% %next_tier% %xp% %xp_required% %xp_raw% %xp_required_raw% %xp_bar% %xp_percent% %skin_name% %skin_xp%.
A lore line that is exactly %boost_lines%, %skin_line% or %soulbound_line% expands to the boost lines (boost-line-format), the skin line (lore-texts.skin-line) or the soulbound tag — and disappears when there is nothing to show.
boost-line-format: # %multiplier% = 1.32x, %value% = percent
currency: "<gold>| <white>%currency% Boost: <gold>%multiplier%"
pickaxe-xp: "<gold>| <white>Pickaxe XP Boost: <gold>%multiplier%"
enchant-proc: "<gold>| <white>Enchant Proc Boost: <gold>%multiplier%"
currency-icons: { money: "$", tokens: "⛃", gems: "💠" }
lore-texts:
piece-names: { helmet: "Helmet", chestplate: "Chestplate", leggings: "Leggings", boots: "Boots" }
piece-descriptions: { helmet: "...", ... }
skin-line: "<gray>Skin: %skin_name% <dark_gray>(+%skin_xp%% armor XP)"
soulbound-line: "<dark_gray>Soulbound"
maxed-text: "MAXED"
no-boosts-line: "<gray>No boosts yet"
multiplier-format: "%.2fx" # Java format for multipliers everywhere
percent-format: "%.1f%%" # Java format for percentages everywhere