Totems
On this page(27)
Totems are virtual boosters a player keeps in /totems. Players get them from Totem Boxes, equip them in slots and level them up by killing zone mobs. Three equal totems merge into a stronger one, and skins improve the totem of their slot. You use totems as a collection and crafting loop with permanent rewards.
| Files | modules/totems/config.yml, modules/totems/types/ (one file per totem type), modules/totems/skins/ (one file per skin), modules/totems/guis/, modules/totems/lang/messages_en.yml |
| Player command | /totems (alias /totem) |
| Admin commands | /dungeons admin totems ... |
| Switch | enabled: (first key of modules/totems/config.yml) + /dungeons reload |
How it works
- Get a totem. A Totem Box of a tier picks a type by
boxes.<tier>.weightsand rolls its value. The totem goes straight into the player's storage. - Equip it. A click on a storage totem equips it in the first free slot. A click on an equipped totem takes it back.
- Level it. Every zone mob the player kills gives each equipped totem experience. Each level adds
levels.level-percentof its rolled value. - Merge. A shift click on a storage totem merges
merge.amountequal totems into one of the next tier. - Skin it. A skin sits on a slot and improves whatever totem is equipped there.
A totem is permanent: no time, no fuel, and it only helps its owner.
Value
A new totem rolls its base value once, uniform in its tier's range (or its star's range), with 2 decimals. What it adds while equipped is:
base x (1 + level x levels.level-percent) x (1 + skin multiplier) x (1 + multiplier upgrade)For example, a Money totem with base 0.20 at level 25 adds 0.20 x 1.5 = 0.30 without skin or upgrade.
Boosters
Each equipped totem of a loaded type is one additive booster totem-<slot>, shown in /boosts under the type's name. It adds to the base of its target, together with perks, auras, attributes and armors. Its skin's multiplier is already inside its value. Crystals multiply that total instead. See Boosters.
The boosters update on a join, an equip, a level-up, an upgrade and a skin change. A reload that changed a totem file updates them too. They all go when the module is switched off.
Getting totems
| Source | What it does |
|---|---|
| Totem Box item | A right click opens one, a shift right click the whole stack. One chat line tells the result. |
[give-totem-box] <tier> [amount] | A reward tag that gives Totem Box items. |
[give-totem] <type> <tier> [stars] | A reward tag that puts a rolled totem straight into the storage. |
[give-skin-box] [amount] | A reward tag that gives Totem Skin Box items. |
/dungeons admin totems add | Puts a rolled totem into the storage, also offline. |
/dungeons admin totems give | Gives a totem item. |
The totem item
Withdraw Mode of /totems takes a storage totem out as an item. The item keeps its id, value, level and experience, so players can trade it by hand. A right click stores it again as it was.
Every totem and skin has a global id. An item whose id any player already has (a duplicate) is refused with a console warning and given back.
Slots
A player has slots.base, plus the highest <n> of the permissions sndungeons.totems.slots.<n>, plus the extra slots an admin gave. The total never passes slots.max (1 to 9).
A player who has fewer slots than before (a rank lost) gets the extra totems back in the storage. This happens when they join or open /totems. The skins of those slots stay on them.
Levels
- Every zone mob killed (by a swing, an enchant or the second hand) gives each equipped totem
levels.xp-per-killexperience. - The slot's skin xp bonus adds to that (its fraction counts as a chance), and the double-exp upgrade can double it.
- The experience from level L to L + 1 follows
levels.xp-curve. - The cap is
levels.max-levelplus the level-cap upgrade. At the cap the experience stops counting. - A level reached sends a chat line and raises the booster at once.
The experience is saved with the player's data, so a kill does no disk or database work.
Merge and stars
A shift click on a storage totem merges merge.amount equal totems (same type, tier and stars), lowest values first. The result is one totem of the next tier, rolled again in its new range, at level 0.
At the type's max tier, a merge adds one star instead. That needs the player's star cap: stars.base-cap plus the max-star upgrade, never more than stars.max. With the shipped base-cap: 0, players need the Max Star upgrade to earn any star.
Merge All (the beacon) merges every group of the storage, chained. Three T1 make a T2 that may complete a trio of T2. It never touches the equipped totems.
Skins
A Totem Skin Box gives a skin picked by skin-box.weights. The skin's bonuses: roll when it is created, and each copy keeps its own values.
multiplier: a share added to the value of its slot's totem.xp: more experience for that totem.
A skin is applied to a slot, not a totem, so changing the totem keeps the skin. A click on the skin place of a slot opens Your Totem Skins to pick one. A click on an applied skin takes it off. A skin is never a booster of its own.
Filtering and Bulk Delete
Totem Filtering (the hopper) lists every loaded type. A click filters the type (its tile glows) or receives it again. Clear Filtering receives every type again. Filters are saved per player.
A Totem Box roll of a filtered type is destroyed, and the box is used up. One chat line says how many were discarded. Admin and API gives, rewards and deposited items are never filtered.
Bulk Delete (the TNT) deletes storage totems by bucket, after a second click within confirm-seconds:
- One tile per tier, from tier 1 to the highest tier of the loaded types. It takes the totems of that tier without stars.
- Five value quality buckets, 0-20% up to 81-100%. The quality is where a totem's base value sits in its range: 0% the lowest, 100% the highest. Starred totems are included.
Equipped totems and totems of a type that is not loaded are never deleted.
Configuration
General
| Key | Default | What it does |
|---|---|---|
enabled | true | The module switch. Off: /totems disappears and every totem booster goes. Totems, skins and upgrades stay stored. |
display-name | '&dTotems' | The module's name in /dungeons admin modules. |
slots.base | 1 | The slots every player has. |
slots.max | 5 | The most slots anyone can have (1 to 9). |
merge.amount | 3 | How many equal totems one merge takes (2 to 64). |
confirm-seconds | 5 | How long a delete waits for its confirming click (1 to 300). |
box-cooldown-ticks | 4 | The wait between two uses of a box or a totem item (0 to 200 ticks). |
value-decimals | 2 | The decimals of every value shown (0 to 6). Trailing zeros are dropped. |
upgrade-amounts | ['1', '10', 'max'] | The amounts the upgrade buttons may buy. max = every level the balance pays. Keep the quotes. |
levels and stars
| Key | Default | What it does |
|---|---|---|
levels.max-level | 50 | The level cap before the level-cap upgrade. |
levels.level-percent | 0.02 | What each level adds, as a share of the rolled value (0.02 = 2%). |
levels.xp-per-kill | 1 | The experience of one kill for each equipped totem. |
levels.xp-curve.type | exponential | exponential (starting-cost x growth^L) or linear (starting-cost + increase-cost-by x L). |
levels.xp-curve.starting-cost | 100 | The experience of level 0 to 1. |
levels.xp-curve.growth | 1.08 | The exponential growth. |
levels.xp-curve.increase-cost-by | 50 | The linear step. |
stars.max | 5 | The most stars a totem can have. |
stars.base-cap | 0 | The star cap every player has before the max-star upgrade. |
boxes and skin-box
| Key | Default | What it does |
|---|---|---|
boxes.<tier>.weights.<type> | money: 30, souls: 30, damage: 15, swings: 15, enchants: 10 | The type a box of that tier gives, by weight. A type that is not loaded is skipped. |
skin-box.weights.<skin> | flame: 20, ice: 20, nature: 20, devil: 10, angel: 10 | The skin a Skin Box gives, by weight. |
The tiers under boxes: are the boxes that exist. The shipped ones are 1 to 4, all with the same weights. Both blocks are yours (# sn:extensible).
upgrades
Four upgrades per player, for all their totems. Each one has name, currency, max-level, per-level and a cost curve (the price of level L to L + 1).
| Upgrade | What one level does | Default per-level | max-level | Cost (souls) |
|---|---|---|---|---|
level-cap | More levels to the cap of every totem | 1 | 50 | 1500000 x 1.10^L |
max-star | One more star to the merge star cap | 1 | 5 | 100000000 x 2.0^L |
double-exp | More chance that a kill's experience counts double (0.01 = 1%) | 0.01 | 50 | 1250000 x 1.10^L |
multiplier | More value for every totem (0.04 = 4%) | 0.04 | 25 | 2500000 x 1.15^L |
Items
| Key | Default | What it does |
|---|---|---|
item.name | '{name} &7[Tier {tier}] {stars}' | The name of a totem item and of the totem icons. |
item.lore | six lines | Its lore. A line holding {description} becomes the type's description. |
item.deposit-lore | two lines | Lines a real (withdrawn) totem item adds under its lore. |
item.star-on, item.star-off | '&e★', '&7★' | One per star, then empty stars up to stars.max. |
item.description-width | 34 | Wraps the description at this width (0 = never). |
item.progress-bar.length | 20 | The length of {bar}. |
item.progress-bar.filled, .empty | '&a|', '&7|' | The bar's characters. |
item.flags | ['HIDE_ATTRIBUTES', 'HIDE_ADDITIONAL_TOOLTIP'] | Tooltip flags of totem and skin items. Keep them quoted. |
box-item.* | ENDER_CHEST, '&d&lTier {tier} Totem Box' | The Totem Box item: material, name, lore, glow, custom-model-data (0 = none). |
skin-box-item.* | SHULKER_SHELL, '&6&lTotem Skin Box' | The Totem Skin Box item, same keys. |
skin-item.name | '{name}' | The skin item and icons. {skin} is the skin id. |
skin-item.lore | two lines | A line holding {bonuses} becomes one line per rolled bonus. |
skin-item.deposit-lore | two lines | Lines a withdrawn skin item adds. |
skin-item.bonus-lines.multiplier, .xp | '&f┃ &7Totem Boost: &a+{value}%' | The line of each bonus. {value} is its percent. |
The totem name and lore take {name}, {tier}, {stars}, {stars_count}, {level}, {max_level}, {xp}, {xp_needed}, {bar}, {percent}, {value}, {base} and {type}. {value} is what it adds now (level, skin and multiplier upgrade included); {base} is the rolled value.
commands
| Key | Default | What it does |
|---|---|---|
commands.main.command | totems | The command name. '' = no /totems (totems, boxes and the API keep working). |
commands.main.aliases | ['totem'] | Other names of the command. |
commands.main.permission | '' | Needed for the command and every button of the five totems menus ('' = everyone). |
commands.main.menu | totems | The menu /totems opens (a file of modules/totems/guis/). |
Totem type files
Each file of modules/totems/types/ is one type; its id is the file name (lowercase letters, digits, _ and -). The shipped types are money, souls, damage, swings and enchants. Copy a file to a new name to make another type.
| Key | Example | What it does |
|---|---|---|
target | currency:money | The booster target: damage, swings, enchants, enchant:<id> or a currency id. |
name | '&aMoney Totem' | The type's name. |
description | one sentence | The text of {description} in the item lore. |
icon.material | TOTEM_OF_UNDYING | The totem's item. |
icon.custom-model-data | '1': 10001 ... | The custom model data per tier, or one number for every tier (0 = none). |
tiers.<n>.min, .max | '1': 0.15 to 0.25 | The value range a new totem of that tier rolls in. The highest key is the max tier. |
stars.<n>.min, .max | '1': 1.60 to 2.00 | The range of a max-tier totem with that many stars. |
A type whose target is unknown or switched off in boosters.yml does not load (one console warning). The totems of it that players have are kept and boost nothing. A deleted file stays deleted.
Totem skin files
Each file of modules/totems/skins/ is one skin. The shipped skins are flame, ice, nature, devil and angel.
| Key | Example | What it does |
|---|---|---|
name | '&6Flame Skin' | The skin's name. |
icon.material | BLAZE_POWDER | The skin's item. |
icon.custom-model-data | 10013 | Its custom model data (0 = none). |
bonuses | a list | Each entry has type (multiplier or xp), min and max. Each bonus rolls with 4 decimals when the skin is created. |
A deleted skin file stays deleted, and the stored skins of it keep their bonuses.
Menus
| Menu id | File | Opened by |
|---|---|---|
totems:totems | modules/totems/guis/totems.yml | /totems |
totems:skins | modules/totems/guis/skins.yml | The Totem Skins button, or a click on an empty skin place |
totems:upgrades | modules/totems/guis/upgrades.yml | The Totem Upgrades button |
totems:filter | modules/totems/guis/filter.yml | The Totem Filtering button |
totems:bulk | modules/totems/guis/bulk.yml | The Bulk Delete button |
Totems (totems.yml):
| Letter | Tile |
|---|---|
T | The totem slots, left to right: slot-totem, slot-free or slot-locked. |
K | The skin of the slot above: skin-equipped, skin-empty or skin-locked. |
S | The storage, paged: storage, storage-withdraw (in Withdraw Mode) or storage-empty. |
X | Totem Skins. |
U | Totem Upgrades. |
L | Bulk Delete. |
< > | Previous and next page, each with a -none state. |
M | Merge All. |
D | Totem Filtering. |
W | Withdraw Mode, on or off. |
Your Totem Skins (skins.yml): S is the skins (paged), and I shows the slot a skin is picked for. B goes back, W is Withdraw Mode and D is Deletion Mode. X deletes every storage skin (never an applied one) after a second click.
Totem Upgrades (upgrades.yml): a to d are the four upgrades. 1-4 buy 1 level, 5-8 buy 10, and e-h buy every level the balance pays. Each upgrade has maxed, buyable and missing states.
Totem Filtering (filter.yml): one t tile per loaded type, C clears every filter, B goes back. Add t cells when you add types: the plugin warns once when there are more types than cells.
Bulk Delete (bulk.yml): one t tile per tier, a to e the value buckets, B back. The buckets are the actions [totems-menu] bulk tier <n> and [totems-menu] bulk value <lo> <hi>, so you can add or change tiles.
Every button runs a [totems-menu] ... action and needs the permission of /totems. See Menus and Action Tags.
Player settings
| Setting | Default | What it switches |
|---|---|---|
totems.levelup-messages | on | The chat line of a totem that reached a level. The level and its boost happen either way. |
See Player Settings.
Commands
| Command | Permission | Description |
|---|---|---|
/totems (alias /totem) | commands.main.permission ('') | Opens the totems menu. |
/dungeons admin totems give <player> <type> <tier> [stars] [value] | sndungeons.admin.totems.give | Gives an online player a totem item. |
/dungeons admin totems add <player> <type> <tier> [stars] [value] | sndungeons.admin.totems.add | Adds a totem straight into a player's storage, also offline. |
/dungeons admin totems box <player> <tier> [amount] | sndungeons.admin.totems.box | Gives an online player Totem Boxes. |
/dungeons admin totems skinbox <player> [amount] | sndungeons.admin.totems.skinbox | Gives an online player Totem Skin Boxes. |
/dungeons admin totems skin <player> <skin> | sndungeons.admin.totems.skin | Adds a totem skin to a player's skins, also offline. |
/dungeons admin totems slots <player> <add|set|take> <slots> | sndungeons.admin.totems.slots | Changes the extra totem slots of a player. |
/dungeons admin totems upgrade <player> <upgrade> <level> | sndungeons.admin.totems.upgrade | Sets a totem upgrade level of a player, free. |
/dungeons admin totems list <player> | sndungeons.admin.totems.list | Lists the slots, totems, skins and upgrades of an online player. |
/dungeons admin totems reset <player> | sndungeons.admin.totems.reset | Takes every totem, skin, extra slot and upgrade of a player. |
The rank nodes sndungeons.totems.slots.1 to .9 add slots (default false).
Full lists: Commands and Permissions.
Placeholders
The totems expose your slots, each slot's totem, the upgrades and the menu states. Full list: Placeholders.
| Placeholder | Description |
|---|---|
%sndungeons_totems_slots%, _slots_max, _slots_used | Your slots, the most slots, and the slots holding a totem |
%sndungeons_totems_storage_count% | Totems in your storage |
%sndungeons_totems_slot_<n>_name%, _value, _level | The totem of slot n (empty without one) |
%sndungeons_totems_boost_<target>% | What your totems add to a booster target |
%sndungeons_totems_upgrade_<id>_level%, _cost, _state | A totem upgrade's level, price and state |
Tips
- A kill gives whole points. The fraction of a skin xp bonus counts as a chance. With
xp-per-kill: 1, a +40% skin gives 2 points four kills in ten. - Keep each tier's range above the one before. The shipped types make tier 4 max meet star 1 min, so merging never feels like a loss.
- Filtering destroys box rolls. Tell players this in the menu lore you write.
- Test a full loop with
/dungeons admin totems box <you> 1 9, then merge in/totems.
Default modules/totems/config.yml
enabled: true
# ============================================================
# SnDungeons - totems 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 totems off on
# /dungeons reload; /totems disappears and every totem booster goes. The
# totems, skins and upgrades every player has stay stored.
# The totem types live in types/ of this folder (one file each, created
# once), the skins in skins/. Deleting a file there really deletes it.
# Name of the module in /dungeons admin modules (color codes allowed).
display-name: '&dTotems'
# The slots a player equips totems in. A player has base slots, plus the
# highest n of the permissions sndungeons.totems.slots.<n> they have, plus
# the extra slots an admin gave (/dungeons admin totems slots), never more
# than max (1 to 9). A player who has fewer slots than totems equipped gets
# the extra totems back in the storage when they join or open /totems.
slots:
base: 1
max: 5
# The levels of a totem. Every zone mob a player kills gives each equipped
# totem xp-per-kill experience (more with the xp bonus of its slot's skin,
# whose fraction counts as a chance: +40% on 1 gives 2 four kills in ten;
# doubled by the double-exp upgrade). Each level adds level-percent of the
# totem's rolled value (0.02 = 2%). At the cap (max-level, plus the
# level-cap upgrade) the experience stops counting.
levels:
max-level: 50
level-percent: 0.02
xp-per-kill: 1
# The experience from level L to L+1, like a leveling's cost:
# exponential = starting-cost x growth^L, linear = starting-cost +
# increase-cost-by x L.
xp-curve:
type: exponential
starting-cost: 100
growth: 1.08
increase-cost-by: 50
# Stars: a merge at the max tier of a type adds one star (the value rolls in
# the stars: ranges of the type) while the player's star cap allows it:
# base-cap plus the max-star upgrade, never more than max.
stars:
max: 5
base-cap: 0
# How many equal totems (same type, tier and stars) one merge takes (2 to
# 64). The result rolls again in the range of the next tier (or star), at
# level 0.
merge:
amount: 3
# The Totem Box of each tier: the type it gives, by weight (a type that is
# not loaded is skipped). The tiers here are the boxes that exist
# (/dungeons admin totems box, [give-totem-box] <tier>).
# sn:extensible
boxes:
'1':
weights:
money: 30
souls: 30
damage: 15
swings: 15
enchants: 10
'2':
weights:
money: 30
souls: 30
damage: 15
swings: 15
enchants: 10
'3':
weights:
money: 30
souls: 30
damage: 15
swings: 15
enchants: 10
'4':
weights:
money: 30
souls: 30
damage: 15
swings: 15
enchants: 10
# The Totem Skin Box: the skin it gives, by weight (a skin that is not
# loaded is skipped).
skin-box:
# sn:extensible
weights:
flame: 20
ice: 20
nature: 20
devil: 10
angel: 10
# The four upgrades of /totems (per player, for all their totems): each
# has its currency, its highest level, its effect per level and its price
# per level (cost: like a leveling's cost; the price of level L to L+1).
# level-cap: +per-level levels to the level cap of every totem
# max-star: +per-level to the star cap of a merge
# double-exp: +per-level chance (0.01 = 1%) that a kill's experience
# counts double
# multiplier: +per-level (0.04 = 4%) to the value of every totem
upgrades:
level-cap:
name: '&eLevel Cap'
currency: souls
max-level: 50
per-level: 1
cost:
type: exponential
starting-cost: 1500000
growth: 1.10
max-star:
name: '&6Max Star'
currency: souls
max-level: 5
per-level: 1
cost:
type: exponential
starting-cost: 100000000
growth: 2.0
double-exp:
name: '&bDouble Exp'
currency: souls
max-level: 50
per-level: 0.01
cost:
type: exponential
starting-cost: 1250000
growth: 1.10
multiplier:
name: '&aMultiplier'
currency: souls
max-level: 25
per-level: 0.04
cost:
type: exponential
starting-cost: 2500000
growth: 1.15
# The amounts the upgrade buttons of the upgrades menu may buy: whole
# numbers and max (every level the balance pays). Keep the quotes.
upgrade-amounts: ['1', '10', 'max']
# How long a delete waits for its confirming click, in seconds (1 to 300).
confirm-seconds: 5
# The wait between two uses of a box or a totem item, in ticks (0 to 200).
box-cooldown-ticks: 4
# The decimals of every value shown (0 to 6); trailing zeros are dropped.
value-decimals: 2
# The totem item and the totem icons of the menus. name and lore take
# {name} (the type's name), {tier}, {stars} (star-on once per star, then
# star-off up to stars.max), {stars_count}, {level}, {max_level}, {xp},
# {xp_needed}, {bar} (the progress bar), {percent}, {value} (the value it
# adds now: level, skin and multiplier upgrade included), {base} (its
# rolled value) and {type}. A lore line holding {description} becomes the
# type's description, wrapped at description-width (0 = never).
item:
name: '{name} &7[Tier {tier}] {stars}'
lore:
- '&7&lᴛᴏᴛᴇᴍ ʙᴏᴏꜱᴛᴇʀ'
- '&7{description}'
- ''
- '&f┃ &7Level: &f{level} &7/ &f{max_level}'
- '&f┃ &7Progress: {bar} &f{percent}%'
- '&f┃ &7Boost: &a{value}x'
# The lines a real totem item (a withdrawn one) adds under its lore.
deposit-lore:
- ''
- '&8(( Right Click to add this totem to /totems ))'
star-on: '&e★'
star-off: '&7★'
description-width: 34
progress-bar:
length: 20
filled: '&a|'
empty: '&7|'
# Tooltip flags of the totem and skin items. Keep them quoted.
flags: ['HIDE_ATTRIBUTES', 'HIDE_ADDITIONAL_TOOLTIP']
# The Totem Box item of every tier ({tier} in its name and lore).
box-item:
material: ENDER_CHEST
name: '&d&lTier {tier} Totem Box'
lore:
- '&7A mystery Totem Box...'
- '&7Chance to get any &dTier {tier} &7Totem.'
- ''
- '&8(( Right Click to open this Totem Box. ))'
- '&8(( Shift Right Click to open them all. ))'
glow: true
# 0 = none.
custom-model-data: 0
# The Totem Skin Box item.
skin-box-item:
material: SHULKER_SHELL
name: '&6&lTotem Skin Box'
lore:
- '&7A mystery Totem Skin Box...'
- '&7Chance to get any Totem Skin.'
- ''
- '&8(( Right Click to open this Skin Box. ))'
- '&8(( Shift Right Click to open them all. ))'
glow: true
custom-model-data: 0
# The skin item and the skin icons of the menus: {name} (the skin's name),
# {skin} (its id). A lore line holding {bonuses} becomes one line per
# rolled bonus (bonus-lines: {value} is the percent of a multiplier or xp
# bonus; a skin improves its totem, it is never a booster of its own).
skin-item:
name: '{name}'
lore:
- '&7&lᴛᴏᴛᴇᴍ ꜱᴋɪɴ'
- '{bonuses}'
deposit-lore:
- ''
- '&8(( Right Click to add this skin to /totems ))'
bonus-lines:
multiplier: '&f┃ &7Totem Boost: &a+{value}%'
xp: '&f┃ &7Totem XP: &a+{value}%'
commands:
# /totems alone opens the menu below (the console gets the help). If
# another plugin already has this name or an alias, SnDungeons takes it
# (command priority) and that plugin keeps answering as /<plugin>:<name>.
main:
# Command name; '' = no /totems command at all (the totems, the boxes
# and the API keep working).
command: totems
# Other names of the command.
aliases: ['totem']
# Permission needed to use the command and every button of its menus.
permission: ''
# The menu /totems opens: a file of modules/totems/guis/ without .yml.
menu: totemsExample totem type: modules/totems/types/money.yml
# ============================================================
# SnDungeons - totem type 'money' (modules/totems/types/money.yml)
# Created once with the module; it is yours: never merged. Delete it
# and it stays deleted (its stored totems are kept and boost nothing).
# Copy it to a new file name to make another type (the file name is the
# type id: lowercase letters, digits, _ and -).
# ============================================================
# The booster type it boosts: damage, swings, enchants, enchant:<id> or a
# currency id (a type whose target is unknown or switched off in
# boosters.yml is not loaded). An equipped totem adds its value to it as an
# additive booster (+0.25 = x1.25 on its own), shown in /boosts by name.
target: currency:money
name: '&aMoney Totem'
# The description of its item and icon ({description} in item.lore of the
# module config).
description: 'This is a Money Booster Totem that will provide you with an OP money boost to help you progress.'
icon:
material: TOTEM_OF_UNDYING
# The custom model data of each tier (or one number for every tier);
# 0 = none.
custom-model-data:
'1': 10001
'2': 10001
'3': 10001
'4': 10001
# The range a new totem of each tier rolls its value in (2 decimals). The
# tiers are these keys: the highest one is the max tier, where a merge adds
# stars instead of a tier.
tiers:
'1':
min: 0.15
max: 0.25
'2':
min: 0.30
max: 0.50
'3':
min: 0.60
max: 1.00
'4':
min: 1.20
max: 1.60
# The range of a totem of the max tier with N stars (a merge at the max
# tier rolls again in the next star's range).
stars:
'1':
min: 1.60
max: 2.00
'2':
min: 2.00
max: 2.50
'3':
min: 2.50
max: 3.10
'4':
min: 3.10
max: 3.80
'5':
min: 3.80
max: 4.60Example skin: modules/totems/skins/flame.yml
# ============================================================
# SnDungeons - totem skin 'flame' (modules/totems/skins/flame.yml)
# Created once with the module; it is yours: never merged. Delete it
# and it stays deleted (the stored skins of it keep their bonuses).
# Copy it to a new file name to make another skin.
# ============================================================
name: '&6Flame Skin'
icon:
material: BLAZE_POWDER
# 0 = none.
custom-model-data: 10013
# Every bonus listed is rolled (4 decimals) when a skin is created; each
# copy keeps its own values. A skin applies to its slot of /totems, to
# whatever totem is equipped there:
# multiplier: +percent to the value of the totem it is applied to
# (0.08 = +8%)
# xp: +percent to its xp
# A skin improves the totem of its slot; it is never a booster of its own.
bonuses:
- type: multiplier
min: 0.10
max: 0.20
- type: xp
min: 0.1
max: 0.4