Armors
On this page(23)
Every player has one armor level that grows with the experience of their swings. The armor sets are stretches of that level, and players wear the set of their level. The level gives boosters, and skins change the look and improve those boosts. You use armors as a visible sign of progress that never touches the real armor.
| Files | modules/armors/config.yml, modules/armors/sets/ (one file per set), modules/armors/skins/ (one file per skin), modules/armors/guis/, modules/armors/lang/messages_en.yml |
| Player command | /armor (aliases /armors, /wardrobe) |
| Admin commands | /dungeons admin armors ... |
| Switch | enabled: (first key of modules/armors/config.yml) + /dungeons reload |
The armors module needs nms.enabled: true in config.yml. The sets are drawn only through packets. See General Config.
How it works
- Experience. Every counted swing of the zone mob fight gives
exp.per-swingexperience, times the Armor EXP Multi upgrade. The Double Armor EXP chance can double it. - Levels. The experience from level L to L + 1 follows
exp.curve. A level-up can give one more level with the Double Level chance. - Sets. Each set covers the levels after the previous set's
max-level, up to its own. Reaching the level after a set'smax-levelunlocks and equips the next set at once. - Maxed. At the last set's
max-levelthe experience stops. - Boosts. The level gives boosters, the same for every set.
A level reached sends a chat line. A set unlocked sends the title ARMOR UNLOCKED and a chat line. The experience is saved with the player's data, so a swing does no disk or database work.
Boosts
For each entry of boosts:, the level gives base + per-level x (level - 1) as one additive booster armor-<target>. /boosts shows it as "Armor Multiplier" (booster-names.set).
For example, the shipped money boost at level 50 is 0.10 + 0.005 x 49 = 0.345, so +0.345x money.
The armor boosters add to the base of their target, together with perks, auras, totems and attributes. Crystals multiply that total instead. See Boosters.
Multi Boosts
| Boost | Started by | Effect |
|---|---|---|
| Set Multi Boost | A chance per swing (the set-boost upgrade) | The armor boosters are worth set-boost.multiplier times for set-boost.seconds. |
| Skin Multi Boost | A chance per swing (the skin-boost upgrade), while a skin with a boost-multiplier is selected | The skin's percent is worth skin-boost.multiplier times for skin-boost.seconds. |
Both come back to normal by themselves, and a chat line tells the start.
Skins
A skin lays its look: over every piece of the current set: each key it sets wins. It also improves every armor boost by its boost-multiplier: 0.5 adds +50%, and 0 makes it a look only.
A skin is never a booster of its own. /boosts shows only the "Armor Multiplier", already improved.
A skin is unlocked for good with its item armor-skin-<id> (/dungeons admin armors skinitem). A right click takes one item and unlocks the skin. An already unlocked skin takes nothing. The unlock is written to the database at once; if that fails, the item is given back.
In the Armor Skins menu, a click on an unlocked skin selects it (one at a time). A click on the selected one takes it off.
The look, only through packets
Nobody ever gets an item of a set. The server shows the pieces of pieces: in place of the real armor:
- In the player's equipment, so other players see the set.
- In the armor slots of the player's own inventory, so they see it in third person and in their inventory.
The real armor stays in its slots on the server. Its protection, durability, drops and clicks are untouched, and nothing can be duplicated or lost. A slot left out of pieces: shows the real item.
In creative, a player sees their own real armor, because a creative client could turn a shown item into a real one. The others still see the set.
A player with a real elytra who sees their own set cannot start gliding: the client reads the chest it shows. Shown leather boots also make the client expect to walk on powder snow. Leave that piece out of pieces:, give it another material, or let the player switch armors.view-own off.
Where the set shows
visibility.mode | The set shows |
|---|---|
everywhere | In every world (default). |
zone-worlds | Only in the isolated zone worlds (isolation.worlds of the zones config). Everywhere while that list is empty or the zones module is off. |
worlds | Only in the worlds of visibility.worlds. |
Elsewhere the player shows their real armor, to themselves and to others. The armor boosters apply everywhere, whatever the mode. See Isolated Zone Worlds.
visibility:
mode: worlds
worlds: ['dungeons', 'dungeons_nether']Configuration
General
| Key | Default | What it does |
|---|---|---|
enabled | true | The module switch. Off: /armor disappears, every player shows their real armor and the armor boosters stop. Levels, skins and upgrades stay stored. |
display-name | '&6Armors' | The module's name in /dungeons admin modules. |
pieces | [chest, legs, feet] | The pieces every set shows (head, chest, legs, feet), the same for all sets. Empty or a wrong name: chest, legs, feet. |
visibility.mode | everywhere | everywhere, zone-worlds or worlds. |
visibility.worlds | [] | The worlds of mode worlds, by name (any case, keep them quoted). |
booster-names.set | 'Armor Multiplier' | The name of the armor boosters in /boosts. |
upgrade-amounts | [1, 10, 'max'] | The levels a left, right and shift click buy. max = every level the balance covers. |
exp
| Key | Default | What it does |
|---|---|---|
exp.per-swing | 1 | The experience of one counted swing, before the Armor EXP Multi upgrade (a whole number). A fraction from the multiplier counts by chance: 1.25 gives 2 one swing in four. |
exp.curve.type | linear | linear (starting-cost + increase-cost-by x L) or exponential (starting-cost x growth^L). |
exp.curve.starting-cost | 1492 | The experience of level 0 to 1. |
exp.curve.increase-cost-by | 8 | The linear step per level. |
exp.curve.growth | 1.05 | The exponential growth. |
boosts
The boost of the armor level for each booster target, the same for every set. The block is yours (# sn:extensible); {} = no level boost.
| Key | Default | What it does |
|---|---|---|
boosts.<target>.base | 0.10 (money), 0.05 (damage) | The bonus at level 1 (0.10 = +0.10x). |
boosts.<target>.per-level | 0.005 (money), 0.0025 (damage) | What each level after the first adds. |
A target is damage, swings, enchants or currency:<id>, switched on in boosters.yml.
Multi Boosts
| Key | Default | What it does |
|---|---|---|
set-boost.multiplier | 1.5 | How many times the armor boosters are worth during a Set Multi Boost. |
set-boost.seconds | 10 | How long it lasts. |
skin-boost.multiplier | 1.5 | How many times the skin's percent is worth during a Skin Multi Boost. |
skin-boost.seconds | 10 | How long it lasts. |
upgrades
Five upgrades bought in the Armor Upgrades menu. Each has currency, max-level, per-level and a cost curve (the price of level L to L + 1).
| Upgrade | What one level does | per-level | max-level | Cost (souls) |
|---|---|---|---|---|
exp-multi | Adds to the experience multiplier of a swing (0.025 = +0.025x) | 0.025 | 10 | 100000 x 1.3^L |
double-exp | The chance of a swing to give double experience | 0.02 | 10 | 100000 x 1.3^L |
set-boost | The chance of a swing to start the Set Multi Boost | 0.005 | 10 | 100000 x 1.3^L |
double-level | The chance of a level-up to give one more level | 0.02 | 10 | 500000 x 1.3^L |
skin-boost | The chance of a swing to start the Skin Multi Boost | 0.005 | 10 | 500000 x 1.3^L |
A chance of 0.02 is 2%. cost.type can also be linear, with increase-cost-by.
piece, skin-item and commands
| Key | Default | What it does |
|---|---|---|
piece.name | '{color}&l{set} {color}&l{piece}' | The name of a shown piece. {color} and {light} are the set's colors, {piece} the piece's name. |
piece.lore | five lines | Its lore. A {boosts} line becomes one boost-line per boost of the level. |
piece.boost-line | ' {light}│ &f{boost}: {light}+{value}x' | {boost} = the target's name, {value} = its bonus at the player's level. |
skin-item.name | '{skin}' | The name of a skin unlock item. |
skin-item.lore | four lines | Its lore. |
commands.main.command | armor | The command name. '' = no /armor (the API keeps working). |
commands.main.aliases | [armors, wardrobe] | Other names of the command. |
commands.main.permission | '' | Needed for the command and every button of the armors menus ('' = everyone). |
commands.main.menu | wardrobe | The menu /armor opens (a file of modules/armors/guis/). '' = your armor in chat. |
Armor set files
Each file of modules/armors/sets/ is one set. The shipped sets are Guardian (levels 1 to 25), Dragon (26 to 50), Celestial (51 to 75) and Primordial (76 to 100). Copy a file to a new name to make another set.
| Key | Example | What it does |
|---|---|---|
order | 2 | Where the set stands. Sets are sorted by order. |
max-level | 50 | The set's last level. A set whose max-level is not above the one before is skipped, with a warning. |
name | 'Dragon' | The set's name ({set}). |
color | '#A000BB' | The color of the set and piece names ({color}). |
light-color | '#E07CF2' | The color of the lore labels and the unlock title ({light}). |
look.leather-color | '#A000BB' | The dye of leather pieces (empty = the set's color). |
look.material.<piece> | LEATHER_CHESTPLATE | The item of each piece. |
look.trim.pattern, .material | '' | An armor trim, both keys (like 'minecraft:flow' and 'minecraft:gold'). Empty = none. |
look.custom-model-data.<piece> | 0 | The custom model data of each piece (0 = none). |
look.item-model | '' | The item model of the pieces, 'namespace:id'. Empty = the item's own. |
look.equipment-model | '' | The armor body drawn on the player, 'namespace:id'. Empty = the item's own. |
look.glint | false | Whether the pieces glint. |
on-unlock | one [message] line | Action lines that run once when a player reaches this set. Takes {player}, {set}, {color}, {light} and {level}. |
Write item-model and equipment-model between quotes. Unquoted, YAML reads namespace:id as a map.
The first set is never "reached": it is where everyone starts. A player who reached a set once never gets its on-unlock again, even after a level reset. A deleted set file stays deleted; players keep their level and their set is worked out from the sets left.
Armor skin files
Each file of modules/armors/skins/ is one skin. The shipped skins are SOTW (+25%), Blaze (+50%) and Dragon (+100%).
| Key | Example | What it does |
|---|---|---|
order | 2 | Its place in the Armor Skins menu. |
name | '&6&lBlaze Skin' | The skin's name ({skin}). |
look.* | leather-color, custom-model-data, equipment-model | Laid over every piece of the current set. Same keys as a set's look; a key left out is the set's. |
boost-multiplier | 0.5 | The share added to every armor boost while selected (0.25 = +25%, 0 = a look only). |
icon.material | LEATHER_CHESTPLATE | The tile of the menu and the unlock item. |
icon.custom-model-data | 10014 | Its custom model data (0 = none). |
A deleted skin file stays deleted. A player who unlocked or selected it keeps it stored, without look or boost, until the file comes back.
Menus
| Menu id | File | What it shows |
|---|---|---|
armors:wardrobe | modules/armors/guis/wardrobe.yml | "Wardrobe": one column per set |
armors:skins | modules/armors/guis/skins.yml | "Armor Skins" |
armors:upgrades | modules/armors/guis/upgrades.yml | "Armor Upgrades" |
Wardrobe (wardrobe.yml):
| Letter | Tile |
|---|---|
c l f | The pieces of each set (chest, legs, feet with the shipped pieces:), with the boosts of your level. |
s | The state of each set: state-equipped (with your level and experience), state-maxed or state-locked. |
K | Armor Skins. |
P N | The pages. A page holds as many sets as s has cells. |
U | Armor Upgrades. |
I | Armor Info: set, level, experience, boosts and Multi Boosts. |
A set with a helmet needs a fourth piece row: give piece-4 a row with its own letter.
Armor Skins (skins.yml): one t tile per skin in order, paged by the t cells: skin-selected (it glints), skin-unlocked or skin-locked. B goes back, P and N page.
Armor Upgrades (upgrades.yml): E Armor EXP Multi, D Double Armor EXP and S Set Multi Boost. L is Double Level, K Skin Multi Boost and B back. Each upgrade has a normal tile and a max tile.
The actions are [armors] open <wardrobe|upgrades|skins>, [armors] page wardrobe|skins <previous|next>, [armors] skin <id> and [armors] upgrade <id>. They follow the permission of /armor. See Menus and Action Tags.
Player settings
| Setting | Default | What it switches |
|---|---|---|
armors.unlock-notify | on | The title and chat line of a set unlocked. The title also needs core.titles. |
armors.level-messages | on | The chat line of a level reached. |
armors.boost-messages | on | The chat line of a Multi Boost started. |
armors.view-own | on | Your set in your own armor slots. Off shows you your real armor; others still see the set. |
armors.view-others | on | The sets of other players. Off shows you their real armor. |
The levels and boosters never change with these settings. See Player Settings.
Commands
| Command | Permission | Description |
|---|---|---|
/armor (aliases /armors, /wardrobe) | commands.main.permission ('') | Opens the wardrobe. |
/dungeons admin armors level <player> <level> | sndungeons.admin.armors.level | Sets the armor level of an online player (the experience goes back to 0). |
/dungeons admin armors exp <player> <amount> | sndungeons.admin.armors.exp | Adds armor experience to an online player. |
/dungeons admin armors upgrade <player> <upgrade> <level> | sndungeons.admin.armors.upgrade | Sets an armor upgrade level of an online player, free. |
/dungeons admin armors skin <player> <give|take> <skin> | sndungeons.admin.armors.skin | Unlocks or locks again an armor skin of an online player. |
/dungeons admin armors skinitem <player> <skin> [amount] | sndungeons.admin.armors.skinitem | Gives an online player the unlock item of an armor skin. |
/dungeons admin armors info <player> | sndungeons.admin.armors.info | Shows the armor level, set, skins, upgrades, boosters and visual of an online player. |
/dungeons admin armors reset <player> | sndungeons.admin.armors.reset | Resets the armor level, experience, selected skin and upgrades of an online player. Unlocked skins stay. |
Full lists: Commands and Permissions.
Placeholders
The armors expose your level, your set, your boosts, your skin and the upgrades. Full list: Placeholders.
| Placeholder | Description |
|---|---|
%sndungeons_armor_level%, _exp, _exp_needed | Your armor level, its experience and the next level's need |
%sndungeons_armor_set% | The set you wear |
%sndungeons_armor_boost_<target>% | Your armor boost for a target, like armor_boost_currency:money |
%sndungeons_armor_skin%, _skin_multiplier | Your selected skin and the percent it adds |
%sndungeons_armor_multi_<kind>%, _seconds | A Multi Boost (set or skin): on or off, and its seconds left |
Tips
- The Armor Info tile ships with Money and Damage lines only. Add a line there when you add a target to
boosts:. - The shipped curve asks 1500 experience from level 1 to 2, and 2284 from level 99 to 100. Raise
exp.per-swingfor a faster climb. - Test a set with
/dungeons admin armors level <you> 26, then/armor. - Use
visibility.mode: zone-worldsif players should show their real armor in your spawn or survival worlds.
Default modules/armors/config.yml
enabled: true
# ============================================================
# SnDungeons - armors module
# Managed by SnLib: new keys are auto-merged on boot; your values and
# comments are preserved. Re-read on /dungeons reload.
# ============================================================
# Switch of the module (the key above): false turns the armors off on
# /dungeons reload; /armor disappears, every player shows their real armor
# again and the armor boosters stop. The levels, skins and upgrades stay
# stored.
# Every player has ONE armor level that grows with the experience of their
# swings. The armor sets of the sets/ folder of this module
# (one file per set) are stretches of that level: reaching the level after a
# set's max-level unlocks and equips the next set by itself. The
# set is shown ONLY through packets: nobody ever gets an item of it, the
# real armor stays in its slots with its protection and durability. Needs
# nms.enabled: true in config.yml.
# Name of the module in /dungeons admin modules (color codes allowed).
display-name: '&6Armors'
# The pieces every set shows (head, chest, legs, feet), the same for all
# sets. A slot left out shows the real item the player wears there
# (the shipped sets leave the helmet out). Empty or a wrong name: chest,
# legs, feet.
pieces: [chest, legs, feet]
# Where the armor set is shown (to the player and to the others). everywhere
# = in every world; zone-worlds = only in the isolated zone worlds
# (isolation.worlds of modules/zones/config.yml; everywhere while that list is
# empty or the zones module is off); worlds = only in the worlds listed below.
# Elsewhere the player shows their real armor. The boosters of the set apply
# everywhere whatever is written.
visibility:
mode: everywhere
# The worlds of mode worlds, by name (any case; keep them quoted).
worlds: []
# The armor experience.
exp:
# The experience of one counted swing of the zone mob fight, before the
# Armor EXP Multi upgrade (a fraction is rounded by chance: 1.25 gives 2 one
# swing in four).
per-swing: 1
# The experience to pass from level L to L + 1: starting-cost +
# increase-cost-by x L (type: linear; shipped: 1492 + 8 x L), or
# starting-cost x growth^L (type: exponential). At the last set's
# max-level the experience stops.
curve:
type: linear
starting-cost: 1492
increase-cost-by: 8
growth: 1.05
# The boost of the armor level for each booster target (damage, swings,
# enchants or currency:<id>, switched on in boosters.yml), the same for every
# set: base + per-level x (level - 1), an additive bonus (0.10 =
# +0.10x). Shown in /boosts as booster-names.set. Your own entries: an entry
# you delete stays deleted. {} = no level boost.
# sn:extensible
boosts:
'currency:money':
base: 0.10
per-level: 0.005
damage:
base: 0.05
per-level: 0.0025
# The Set Multi Boost (the set-boost upgrade gives a chance per swing): the
# boosters of the level are worth multiplier times for seconds.
set-boost:
multiplier: 1.5
seconds: 10
# The Skin Multi Boost (the skin-boost upgrade gives a chance per swing while
# a skin with a boost-multiplier is selected): the skin's boost-multiplier is
# worth multiplier times for seconds.
skin-boost:
multiplier: 1.5
seconds: 10
# The name of the armor boosters in /boosts. A skin is not a booster of its
# own: its boost-multiplier improves these.
booster-names:
set: 'Armor Multiplier'
# The five armor upgrades (the Armor Upgrades menu). currency: what they are
# bought with; max-level: their highest level; per-level: what one level
# does (exp-multi: added to the experience multiplier of a swing, 0.025 =
# +0.025x; double-exp: the chance of a swing to give double experience;
# set-boost: the chance of a swing to start the Set Multi Boost;
# double-level: the chance of a level-up to give one more level; skin-boost:
# the chance of a swing to start the Skin Multi Boost; a chance of 0.02 =
# 2%); cost: the price of the level L -> L + 1, starting-cost x growth^L
# (type: exponential) or starting-cost + increase-cost-by x L (type: linear).
upgrades:
exp-multi:
currency: souls
max-level: 10
per-level: 0.025
cost:
type: exponential
starting-cost: 100000
growth: 1.3
increase-cost-by: 0
double-exp:
currency: souls
max-level: 10
per-level: 0.02
cost:
type: exponential
starting-cost: 100000
growth: 1.3
increase-cost-by: 0
set-boost:
currency: souls
max-level: 10
per-level: 0.005
cost:
type: exponential
starting-cost: 100000
growth: 1.3
increase-cost-by: 0
double-level:
currency: souls
max-level: 10
per-level: 0.02
cost:
type: exponential
starting-cost: 500000
growth: 1.3
increase-cost-by: 0
skin-boost:
currency: souls
max-level: 10
per-level: 0.005
cost:
type: exponential
starting-cost: 500000
growth: 1.3
increase-cost-by: 0
# The levels a click on an upgrade buys: a left click the first, a right
# click the second, a shift click the third (max = every level the balance
# covers, up to the max-level).
upgrade-amounts: [1, 10, 'max']
# How the pieces are named and described: what the player sees in their own
# armor slots and in the wardrobe. {color} and {light}: the set's colors,
# {set}: its name, {piece}: the piece's name (piece.<head|chest|legs|feet> of
# the module messages). A lore line {boosts} becomes one boost-line per boost
# of the level ({boost}: the target's name of boosters.yml, {value}: its
# bonus at the player's level).
piece:
name: '{color}&l{set} {color}&l{piece}'
lore:
- '&7When equipped, gain insane multipliers'
- '&7which help you progress!'
- ''
- '{light}&lMultipliers'
- '{boosts}'
boost-line: ' {light}│ &f{boost}: {light}+{value}x'
# The unlock items of the armor skins (/dungeons admin armors skinitem): a
# right click unlocks the skin for good. {skin}: the skin's name.
skin-item:
name: '{skin}'
lore:
- '&8ᴀʀᴍᴏʀ ꜱᴋɪɴ'
- ''
- '&7Right click to unlock this armor skin'
- '&7for good, then select it in &f/armor&7.'
commands:
# /armor opens the wardrobe. If another plugin already has this name or an
# alias, SnDungeons takes it (command priority).
main:
# Command name; '' = no /armor command (the API keeps working).
command: armor
# Other names of the command.
aliases:
- armors
- wardrobe
# Permission needed to use the command, and every button of the armors
# menus. '' = everyone.
permission: ''
# The menu /armor opens: a file of modules/armors/guis/ without .yml.
# '' = no menu: /armor shows your armor in chat.
menu: wardrobeExample set: modules/armors/sets/dragon.yml
# ============================================================
# SnDungeons - armor set 'dragon' (modules/armors/sets/dragon.yml)
# Created once with the module; it is yours: never merged. Delete it
# and it stays deleted (the players keep their level; their set is
# worked out from the sets left). Copy it to a new file name to make
# another set.
# ============================================================
# Where the set stands: the sets are sorted by order, and their max-levels
# must grow with it (a set whose max-level is not above the one before is
# skipped with a warning).
order: 2
# The last level of this set. It covers the levels from the max-level of the
# set before + 1 (1 for the first set) up to this one; reaching the level
# after it unlocks and equips the next set.
max-level: 50
# The set's name ({set} of the texts).
name: 'Dragon'
# The color of the set and piece names ({color}), #RRGGBB.
color: '#A000BB'
# The color of the lore labels and the unlock title ({light}), #RRGGBB.
light-color: '#E07CF2'
# How the pieces of pieces: (module config) look.
look:
# The dye of leather pieces, #RRGGBB (empty = the set's color).
leather-color: '#A000BB'
# The item of each piece (an item that is worn in that slot, or any item
# with equipment-model below).
material:
chest: LEATHER_CHESTPLATE
legs: LEATHER_LEGGINGS
feet: LEATHER_BOOTS
head: LEATHER_HELMET
# An armor trim: both keys, e.g. pattern: 'minecraft:flow' and material:
# 'minecraft:gold'; empty = none.
trim:
pattern: ''
material: ''
# The custom model data of each piece (0 = none).
custom-model-data:
chest: 0
legs: 0
feet: 0
head: 0
# The item_model of the pieces, 'namespace:id' BETWEEN QUOTES (unquoted
# YAML reads it as a map); empty = the item's own.
item-model: ''
# The armor body drawn on the player (the asset of the equippable
# component, set WITH the piece's slot), 'namespace:id' between quotes;
# empty = the item's own.
equipment-model: ''
# Whether the pieces glint.
glint: false
# What runs ONCE when a player reaches this set (SnLib action lines;
# {player}, {set}, {color}, {light}, {level}). The first set is never
# reached: it is where everyone starts. A player who reached it once never
# gets it again, even after a reset of the level.
on-unlock:
- '[message] {light}&lThe {set} Armor is yours!'Example skin: modules/armors/skins/blaze.yml
# ============================================================
# SnDungeons - armor skin 'blaze' (modules/armors/skins/blaze.yml)
# Created once with the module; it is yours: never merged. Delete it
# and it stays deleted (a player who unlocked or selected it keeps it
# stored, without look or boost, until it comes back). Copy it to a new
# file name to make another skin.
# Unlocked with its item: /dungeons admin armors skinitem <player> blaze
# ============================================================
# Where it stands in the Armor Skins menu.
order: 2
# The skin's name ({skin} of the texts).
name: '&6&lBlaze Skin'
# While selected, the skin's look is laid over every piece of the current
# set: each key set here wins, a key left out is the set's (same keys as the
# look of a set file).
look:
leather-color: '#FF8C00'
custom-model-data:
chest: 10014
legs: 10014
feet: 10014
head: 10014
# 'namespace:id' between quotes; empty = the set's.
equipment-model: ''
# While selected the skin improves every boost of the armor level (the boosts
# of the module config): +50% on each of them (0.25 = +25%). It is not a
# booster of its own. 0 = a look only.
boost-multiplier: 0.5
# The tile of the Armor Skins menu and the unlock item.
icon:
material: LEATHER_CHESTPLATE
# 0 = none.
custom-model-data: 10014