Zones
On this page(23)
Zones are where your players grind. Each zone has stages that players buy in order, and each stage shows its own mob in the zone's mob area. A player kills those mobs with their sword to earn currencies, then buys the next stage. The mobs, the NPC and the fight exist only for that player.
| Files | modules/zones/config.yml, modules/zones/zones/ (one file per zone), modules/zones/guis/ (zones.yml, stages.yml, visibility.yml), modules/zones/lang/messages_en.yml |
| Player commands | /zone, /zones |
| Admin commands | /dungeons admin zones ... |
| Switch | enabled: (first key of modules/zones/config.yml) + /dungeons reload |
| Needs | The packet layer (nms.enabled: true in config.yml) for the mobs, the NPC and the holograms; PlaceholderAPI for the menus |
Switching the module off removes /zone, /zones and /dungeons admin zones. The progress every player reached stays stored.
The zones have several pages:
| Page | What it covers |
|---|---|
| Zone Files and Stages | The zone file key by key, stage prices and mobs, adding a zone |
| Mob Areas | The box where the mobs show, the wand, setarea, the facing |
| Fighting and Rarities | Targeting, auto swings, rewards, rarities, the boss bar and the damage hologram |
| Zone NPC and Mob Refresh | The NPC that throws the mobs, the refresh and the extra mobs |
| Zone HUD | The action bar, the leveling bars and the experience bar |
| Isolated Zone Worlds | Hiding the other players, solo and island visibility |
| Visits | /zone visit and /zone spectate |
How it works
- Zones and stages. Each file of
modules/zones/zones/is one zone, with numbered stages.zones-orderlists the zones in progression order. - One linear ladder. The progression runs through every stage of the first zone, lowest number first. Then it moves to the next zone.
- The start. Every player starts at the lowest stage of the first zone. Its cost is never charged.
- Progress. A player's progress is the highest stage they unlocked. It never goes down on its own.
- Buying.
/zone buytakes the price of the next stage from the player's balance of its currency. That is the stage's owncurrency, ordefault-currency. - Mobs. In the zone's mob area, each player sees the mob of the stage they are at. Killing them pays the stage's rewards (see Fighting and Rarities).
- Travel. A zone has one spawn, shared by all its stages.
/zone go,/zone back,/zone nextand a purchase that teleports take you to it.
The stage you are at
The stage you are at can be lower than your progress. Its mobs are the ones you see, and /zone back and /zone next start from it.
- It is the stage of your last
/zoneteleport that arrived (go,back,next, or a purchase that teleported). - A
buyormaxthat did not teleport also sets it, to the stage reached. - A click on an unlocked stage of the
/zonesmenu and an admingoset it too. - Walking, dying or another plugin's teleport do not change it.
It is stored with the player data, so it survives quits, restarts and the module being switched off and on. Your highest stage counts instead when none is stored, or when a reload removed that stage. An admin setprogress, lock or reset of an online player lowers it along with the progress. /zone alone shows it on a second line when it is below your progress.
Back and next
/zone back and /zone next only move you: no price, no log row, no event. The one exception is /zone next from your highest stage. It buys the next stage exactly like /zone buy, then always teleports you there, whatever teleport-on-purchase says.
Only a player who may use /zone buy (enabled, with its permission) buys that way. Anyone else gets next.cannot-buy. With next enabled and buy disabled, the console warns that /zone next never buys.
A zone without a spawn
A zone without a usable spawn (none written, or its world is not loaded) teleports nobody. The command says so, and the stage still becomes the stage you are at. A back or next therefore goes on past such a stage.
Purchases and the log
/zone max buys stage by stage, and each stage is its own purchase. Each one writes one COST change with the cause zone:<zone>:<stage> and one STAGE_UNLOCK row. With teleport-on-purchase: true the player is teleported once, to the last stage bought.
The zone changes go to the same transaction log as the balances, with the currency zone:<zone>. Purchases are STAGE_UNLOCK rows and admin changes are ZONE_SET rows. See Currencies for the log.
Automatic purchases
Two settings of /settings (tab Automation) buy stages by themselves, each for one player and off by default:
| Setting | What it does |
|---|---|
zones.auto-max | Buys every next stage the player can afford, like /zone max. |
zones.auto-max-killable | Buys only the next stages whose mob the player kills within auto-max.killable-seconds. It applies whenever it is on, also with zones.auto-max on. |
Both keep the gates of /zone max: it must be enabled and the player needs its permissions. The chat line auto.bought is sent only while the player has core.auto-notices on. See Player Settings.
Removed or broken zone files
- A removed zone. A player whose progress was in it reads as the start.
- A removed stage. It reads as the highest stage below it in the same zone. With none below, it reads as the zone's lowest stage.
- A file that cannot be read at startup (a YAML error, no stage, a file name in another case). Its players keep their progress, but cannot buy, go back or go forward until it reads again.
/zonetells them so. - A file that breaks after it loaded keeps its last readable content.
The menus
The three menus live in modules/zones/guis/. They are managed by SnLib: new keys merge in and your values stay. Every tile under items: is yours (# sn:extensible), and the menus need PlaceholderAPI. See Menus and Action Tags for the general rules.
Zones menu
/zones opens zones.yml. Each zone is a block of 3x2 slots.
GM..I..VX
aaa......
aaa......
.........
.........
.........| Letter | Tile |
|---|---|
G | Go to Zone: /zone go |
M | Max Purchase: /zone max |
I | Your head: the stage you are at, your highest stage, the next stage with its price and your balance |
V | The visibility menu: /zone visibility |
X | Close |
a | The zone barn |
. | Filler |
A zone is four items on the same cells, one per state of %sndungeons_zone_<id>_state%. The first item whose view-requirements pass shows:
| State | Meaning | Shipped item | Click |
|---|---|---|---|
current | Unlocked, and the zone of the stage you are at. It glows. | barn-current | Opens its stages |
unlocked | You unlocked at least one of its stages. | barn-unlocked | Opens its stages |
next | Not reached yet, but its first stage is the next one to buy. Shows its price. | barn-next | Opens its stages |
locked | Any zone after that one. | barn-locked | Says it is locked |
Give each zone you add its own letter and its four items. More zones than fit go to another menu file you open with [open] from a button.
Stages menu
A click on a zone opens its stages in stages.yml. One file serves every zone: its items read the zone you opened (%sndungeons_viewzone_...%). The title {zone} Stages shows its name.
..abcde..
..fghij..
.........
.TTTBMMM.| Letter | Tile |
|---|---|
a to j | Stages 1 to 10 of the viewed zone. A stage number the zone does not have shows nothing. |
T | Teleportation Device: /zone go |
B | Back to the zones menu |
M | Max Purchase: /zone max |
A stage is four items on its cells, one per state of %sndungeons_viewzone_stage_<n>_state%:
| State | Meaning | Click |
|---|---|---|
current | Unlocked, and the stage you are at. It glows. | Travels there |
unlocked | You unlocked it. Shows its mob and health. | Travels there and makes it the stage you are at |
next | The next stage to buy. Shows its price and your balance. | Buys it exactly like /zone buy |
locked | Any stage after that one. | Names the stage to buy first |
A zone with more stages: give each stage its own letter and items, or open a second stages file with [open].
Visibility menu
/zone visibility opens visibility.yml: s is solo, i is island, x closes. See Isolated Zone Worlds.
Action tags of the menus
| Tag | What it does | Follows |
|---|---|---|
[zones-menu] zones | Opens the zones menu | the /zones permission |
[zones-menu] stages <zone> | Opens the stages of a zone | the /zones permission |
[zones-menu] locked-zone <zone> | Says the zone is locked | the /zones permission |
[zones-menu] go | Like /zone go | commands.go |
[zones-menu] max | Like /zone max | commands.max |
[zones-menu] visibility | Opens the visibility menu | commands.visibility |
[zones-menu] tp viewed <n> | Travels to unlocked stage <n> of the viewed zone | commands.go |
[zones-menu] buy viewed <n> | Buys stage <n> of the viewed zone like /zone buy | commands.buy |
[zones-menu] locked-stage viewed <n> | Names the stage to buy first | the /zones permission |
[zones-visibility] solo or island | Chooses that mode | commands.visibility |
[open] zones:zones runs [zones-menu] zones with the same gates. [open] zones:stages opens the stages of the zone the player viewed last.
Gates. Every [zones-menu] tag needs the permission of /zones, also when another action list runs it (a leveling reward, for example). That is the /zone permission while commands.menu.permission is '' or there is no /zones, and none when neither command exists. The two visibility buttons need the permission of /zone or of /zones. A travel click goes to any stage you unlocked, lower ones too: commands.back and next do not apply to it.
A click the player may not make answers menu.not-allowed and does nothing. The tile stays: take its letter out of the layout to hide it.
Clicks. strict-clicks: true: only single left and right clicks (and their shift forms) act. Each click runs one tick later and is checked again then. A click that no longer applies repaints the menu and says why. An open menu repaints after its own purchase and whenever your stage or progress changes. A teleport closes the menu.
Configuration
modules/zones/config.yml is managed: new keys merge in on boot and /dungeons reload reads it again. The blocks the other pages own are listed at the end of this section.
General
| Key | Default | What it does |
|---|---|---|
enabled | true | The module switch. |
display-name | '&6Zones' | The module's name in /dungeons admin modules. |
zones-order | ['barn'] | The zones in progression order, by id (the file name without .yml). A zone file not listed goes after the listed ones, with a warning. Keep the ids quoted: YAML reads a bare no as false. |
default-currency | money | The currency of a stage that sets none, an id of currencies/. An unknown id falls back to the first loaded currency, with a warning. |
teleport-on-purchase | true | true: /zone buy and /zone max teleport the player to the spawn of the stage reached. false: they stay put, and the stage reached still becomes the stage they are at. /zone next always teleports after its purchase. |
auto-max
| Key | Default | What it does |
|---|---|---|
auto-max.killable-seconds | 10.0 | The most seconds a kill may take for zones.auto-max-killable, from 0.5 to 3600. The kill time is the health of a next-stage mob (no rarity) over the player's damage per second. That damage is one swing's damage x their swings per second, boosters included. |
auto-max.teleport | true | true: an automatic purchase that reaches another zone takes the player to its spawn. It does so only when they stood at their progress and are in that zone's world. false: automatic purchases stop at the last stage of the zone of their progress. |
Command settings
The commands: block sets the /zone and /zones commands. Both take the same subcommands: /zones max works like /zone max.
| Key | Default | What it does |
|---|---|---|
commands.main.command | zone | The name of /zone. '' = no /zone at all. The admin commands, the API and /zones keep working, and a warning says /zones still offers every subcommand. |
commands.main.aliases | [] | Other names. An alias equal to the menu command's name is left out. |
commands.main.permission | '' | The permission to use /zone at all. '' = none. |
commands.menu.command | zones | The name of /zones, which opens the zones menu when run bare. '' = no /zones (the [zones-menu] zones tag still opens the menu). |
commands.menu.aliases | [] | Other names. |
commands.menu.permission | '' | The permission of /zones and of every [zones-menu] button. '' here means the permission of commands.main (none while /zone does not exist). |
commands.<sub>.enable | true | false: the subcommand does not exist. It is not tab-completed or listed in the help, and typing it answers "unknown subcommand". Its menu button refuses. |
commands.<sub>.aliases | [] | Other names of the subcommand. |
commands.<sub>.permission | '' | The permission of the subcommand. '' = none. |
<sub> is one of go, buy, max, next, back and visibility. The blocks visit and spectate take the same keys but ship with their own permissions (see Visits).
A public /zones runs every enabled subcommand that has no permission of its own, such as /zones buy. To keep /zones open while /zone needs a node, give /zones a node and grant it to every player. A node nobody was granted is OP-only.
Taken names. When another plugin already has the name or an alias of /zone or /zones, SnDungeons takes it. That plugin keeps answering as /<plugin>:<name>, and gets the name back when SnDungeons drops it. A server, vanilla or Brigadier command, or a root of another SnLib plugin with command priority, is never taken. Then this command answers only as /sndungeons:<name>. To leave a name to another plugin, pick another one.
Blocks documented on other pages
| Block | Page |
|---|---|
isolation: | Isolated Zone Worlds |
mobs.facing, mobs.wand | Mob Areas |
mobs.name-format, respawn-seconds, leave-area-distance, hurt-flash, bossbar, damage-hologram, rarities | Fighting and Rarities |
mobs.refresh, mobs.max-extra-mobs, npc-launch: | Zone NPC and Mob Refresh |
hud: | Zone HUD |
commands.visit, commands.spectate | Visits |
Commands
Player commands
| Command | Default permission | Description |
|---|---|---|
/zone | none | Your zone and stage, and the price of the next stage. The console gets the help. |
/zones | the /zone permission | Opens the zones menu. Every /zone subcommand also works as /zones <sub>. |
/zone go | none | Teleports you to the zone of the highest stage you unlocked. |
/zone buy | none | Buys the next stage when your balance covers it. Otherwise it shows how much you lack. |
/zone max | none | Buys every next stage your balance covers, one after another. |
/zone next | none | Moves you one stage forward. It buys the stage first when you may use /zone buy. |
/zone back | none | Teleports you one stage back. Your progress never goes down. |
/zone visibility | none | Opens the menu where you choose who you see in the zone worlds. |
/zone visit <player> | sndungeons.zones.visit (everyone) | Teleports you next to a player and shows you their fight. |
/zone spectate <player> (alias spect) | sndungeons.zones.spectate (operators only until granted) | The same as visit, invisible and silent. |
/zone help | none | Lists the subcommands you can use. |
Admin commands
| Command | Permission | Description |
|---|---|---|
/dungeons admin zones setspawn <zone> | sndungeons.admin.zones.setspawn | Writes where you stand as the spawn of a zone, used by all its stages. |
/dungeons admin zones setnpc <zone> [skin] | sndungeons.admin.zones.setnpc | Places the zone's NPC where you stand, optionally with a player's skin. |
/dungeons admin zones list | sndungeons.admin.zones.list | The loaded zones in progression order, with their stages. |
/dungeons admin zones setprogress <player> <zone> <stage> | sndungeons.admin.zones.setprogress | Sets a player's zone progress, online or offline. |
/dungeons admin zones info [player] | sndungeons.admin.zones.info | A player's zone progress and next stage, or yours without a player. Works online or offline. |
/dungeons admin zones go <player> <zone> [stage] | sndungeons.admin.zones.go | Teleports an online player to a zone stage they unlocked. |
/dungeons admin zones unlock <player> [count] | sndungeons.admin.zones.unlock | Gives a player the next stages for free, 1 without a count, online or offline. |
/dungeons admin zones lock <player> [count] | sndungeons.admin.zones.lock | Takes away the last stages a player unlocked, 1 without a count, online or offline. |
/dungeons admin zones reset <player> | sndungeons.admin.zones.reset | Sets a player back to the first stage of the first zone, online or offline. |
/dungeons admin zones wand | sndungeons.admin.zones.wand | Gives you the wand that marks the mob area of a zone. The node also allows using the wand. |
/dungeons admin zones setarea <zone> | sndungeons.admin.zones.setarea | Writes the box you marked with the wand as the zone's mob area. |
/dungeons admin zones respawn [zone] | sndungeons.admin.zones.respawn | Reads the ground again and respawns the mobs. |
What the admin commands do in detail:
setspawn <zone>saves where you stand as the zone spawn, and removes any spawn a stage still has. It rewrites the whole file from what was loaded last.listshows every zone with its stage count, and how many stages have a usable spawn (all of them, or 0).info [player]shows the progress, the stage they are at and the next stage with its price. For an online player it adds their balance of that currency and their visibility mode. An offline player is read from the database.go <player> <zone> [stage]teleports an online player and makes that stage the one they are at. Without a stage it takes their highest stage in that zone. A stage above their progress is refused: raise it first withunlockorsetprogress.unlock,lock,resetchange the progress of online and offline players. The count applies to the progress the player has when the change runs. Nobody is teleported, and an online player's mobs follow.wand,setarea,respawnmark and refresh the mob area: see Mob Areas.setnpcplaces the NPC: see Zone NPC and Mob Refresh.
setprogress, unlock, lock and reset are sets: no price is taken or refunded and no stage unlock event fires. Each one logs ONE ZONE_SET row, with the cause command, command:unlock, command:lock or command:reset and the admin as the actor.
A change whose zone or stage a reload removed while it waited answers admin.refused and writes nothing. unlock, lock and go refuse a player whose stored zone file could not be read (admin.unreadable); setprogress and reset still apply. An offline player is found by name only while the server's name cache (usercache.json) still has them.
See Commands and Permissions for the full reference.
Placeholders
The zones fill the sndungeons expansion of PlaceholderAPI. The full list is in Placeholders.
| Placeholder | Value |
|---|---|
%sndungeons_zone%, %sndungeons_stage% | The zone and stage you are at |
%sndungeons_progress_zone%, %sndungeons_progress_stage% | Your highest stage |
%sndungeons_next_zone%, %sndungeons_next_stage% | The next stage to buy |
%sndungeons_next_cost%, _currency, _balance, _missing | Its price, its currency, your balance and what you miss |
%sndungeons_next_done% | true once every stage is bought |
%sndungeons_zone_<zone>_state% | unlocked, current, next or locked |
%sndungeons_stage_<zone>_<n>_state% | unlocked, current, next, locked or none |
%sndungeons_viewzone_stage_<n>_<field>% | A stage field of the zone open in the stages menu |
Other plugins can read zones and progress, and buy or set stages, through the public API. See Developer API.
Tips
- After editing a zone file by hand, run
/dungeons reloadbeforesetspawn,setareaorsetnpc. They rewrite the whole file from what was loaded last. - Test a zone without grinding:
/dungeons admin zones setprogress <you> <zone> <stage>, then/zone go. /dungeons admin zones info <player>shows where a player stands when they report a problem.- To hide a menu button, take its letter out of the layout. Disabling the subcommand only makes the button refuse.
Default modules/zones/config.yml
enabled: true
# ============================================================
# SnDungeons - zones module
# Managed by SnLib: new keys are auto-merged on boot; your values and
# comments are preserved. Re-read on /dungeons reload.
# Each zone is a file of modules/zones/zones/ (barn.yml is the example).
# ============================================================
# Switch of the module (the key above): false turns the zones off on
# /dungeons reload; /zone, /zones and /dungeons admin zones disappear and the
# progress players reached stays stored.
# Name of the module in /dungeons admin modules (color codes allowed).
display-name: '&6Zones'
# The zones in progression order, by id (the zone file name without .yml).
# Every player starts at the lowest stage of the first zone; after the last
# stage of a zone comes the lowest stage of the next one. A zone file that is
# not listed here goes after the listed ones, with a warning. Keep the ids
# quoted: YAML reads a bare no as false.
zones-order: ['barn']
# Currency a stage is paid with when its zone file sets none (an id of the
# currencies folder). An unknown id falls back to the first loaded currency,
# with a warning.
default-currency: money
# true = /zone buy and /zone max teleport the player to the spawn of the zone
# of the stage they reached (every stage of a zone shares its spawn; no
# teleport when that zone has no spawn, and the stage reached still becomes
# the stage they are at). /zone next always teleports after its purchase.
# false = they stay where they are, and the stage reached still becomes the
# stage they are at (its mobs show, and /zone back starts from it).
teleport-on-purchase: true
# The automatic stage purchases of /settings (Automation): zones.auto-max
# buys every next stage the player can afford as soon as they can;
# zones.auto-max-killable buys only the stages whose mob they kill fast
# enough (it applies whenever it is on, also with zones.auto-max on).
auto-max:
# The most seconds a kill may take for zones.auto-max-killable: the health
# of a mob of the next stage (no rarity) over the player's damage per second
# (one swing's damage x their swings per second, boosters included).
# 0.5 to 3600.
killable-seconds: 10.0
# true = a purchase that reaches another zone takes the player to its spawn
# when they stood at their progress and are in that zone's world (else the
# stage reached only becomes the stage they are at). false = the automatic
# purchase stops at the last stage of the zone of their progress.
teleport: true
# Isolated zone worlds: in these worlds every player is alone. They do not see
# the other players there (body, armor, held item, animations), nor the items
# those players drop, their projectiles, or the sounds and particles around
# them; they cannot pick up those items either. The chat does not change.
# Outside these worlds nothing changes. Each player picks who they see with
# /zone visibility.
isolation:
# The worlds where the zones are, by name. Keep the names quoted: YAML reads
# a bare no as false. An empty list turns the isolation off.
worlds: ['dungeons']
# true = a player you do not see is also taken out of your tab list;
# false = they stay in it (needs nms.enabled: true in config.yml).
hide-in-tab: true
# Who a player sees until they choose in /zone visibility: solo (nobody) or
# island (the members of their SnSuperiorSkyblock island; without an island,
# or without SnSuperiorSkyblock, island works like solo).
default-mode: solo
# Sounds and particles only carry a position, not who made them. In the
# isolated worlds, one that happens within this many blocks of another
# player of that world, and nearer to them than to you, counts as theirs and
# is not sent to you, even when they stand next to you; the rest reaches
# you. Example with 4: a player you do not see hits a mob 2 blocks from them
# and 3 blocks from you: you neither hear the hit nor see its particles.
# Too low (1-2): the sounds and particles of their fights reach you. Too
# high: the effects near them that are yours or the world's are lost too.
# From 1 to 16 (other values are clamped, with a warning); 3 to 5 suits
# melee. The effects of island mates are filtered the same way. Needs
# nms.enabled: true in config.yml; without it the players and their items
# stay hidden but these are not filtered.
effect-radius: 4.0
# Zone mobs: in the mob-area of a zone file (marked with the wand below and
# /dungeons admin zones setarea <zone>), each player sees up to max-mobs mobs
# of the stage they are at (the mob of that stage in the zone file; fewer when
# no more fit the distances or a placement runs out of draws). The mobs exist
# only for that player (nobody else sees them, whatever /zone visibility says)
# and stand still. Attacking one with the sword makes it the player's target
# (see combat: in modules/sword/config.yml); a mob killed pays the rewards of
# its stage (the mob's rewards in the zone file, plus the reward-bonus of its
# rarity) and comes back after respawn-seconds. Each mob rolls a rarity.
# Needs nms.enabled: true in config.yml; /dungeons reload applies every change:
# a mob whose look changed is shown again with full health, the others keep
# their health.
mobs:
# Name shown above each mob (color codes allowed). {rarity-prefix} is the
# prefix of its rarity, {stage} the stage number, {mob} the name of the
# stage's mob and {health} the health it has left: the stage's health plus
# the rarity's health-bonus until it is hit, in the currencies.number-format
# of config.yml.
name-format: '{rarity-prefix}&fLVL{stage} {mob} &c❤{health}'
# The side every mob of every zone looks at (body and head): NORTH, SOUTH,
# EAST or WEST; RANDOM turns each mob its own way. Any other value is SOUTH,
# with a warning. /dungeons reload applies a change.
facing: SOUTH
# Seconds from a mob's death until a new mob of the same stage appears at
# another place of the mob area (the same distances apply, the rarity is
# rolled again and the health is full), from 1 to 3600; decimals work. The
# death animation is the first second of it. /dungeons reload applies a
# change.
respawn-seconds: 3
# Blocks a player may walk out of the columns of the mob area while
# fighting (measured flat, to the nearest edge of the area): the swings go
# on while the target stays within the sword's hit-distance (combat: in
# modules/sword/config.yml) and the sword stays in hand, and a click from
# there starts a fight too. 0 = the swings stop at the edge of the area.
# From 0 to 64; decimals work.
leave-area-distance: 8
# true = a mob flashes red on every hit it survives (the vanilla hurt
# tint, about half a second per hit, so with fast swings it stays red
# while it is hit). false = no flash. /dungeons reload applies a change.
hurt-flash: false
# The boss bar of the mob a player is hitting, seen by that player alone:
# it empties with the mob's health (swings and enchants), goes when the mob
# dies or the fight ends, and moves to the new mob when the target changes.
# title takes {rarity-prefix}, {stage}, {mob} and {health} like
# name-format (color codes allowed). color: PINK, BLUE, RED, GREEN, YELLOW,
# PURPLE or WHITE. style: SOLID, SEGMENTED_6, SEGMENTED_10, SEGMENTED_12 or
# SEGMENTED_20. Any other value uses the shipped one, with a warning.
bossbar:
enabled: true
title: '{rarity-prefix}&f{mob} &c❤{health}'
color: RED
style: SOLID
# A text above the name of each mob a player hits, seen by that player
# alone: the total damage they did to that mob (swings and enchants),
# rounded to a whole number, in the currencies.number-format of config.yml.
# It goes when the mob dies, when the player's fight ends or moves to
# another mob (the next hit starts a new count), and after linger-ticks
# without a hit. Every hit makes it a little bigger and turns it a little
# more, and pulses it (a quick shrink in pulse-color, then back).
# Needs nms.enabled: true in config.yml, like the mobs.
damage-hologram:
enabled: true
# {damage} is the total (color codes allowed).
format: '&c{damage}'
# Blocks between the top of the name and the bottom of the text (the
# text grows upward from there), from -4 to 8.
offset-y: 0.5
# true = the text has a shadow. It never has a background.
shadow: true
# true = the text shows through the mob and through blocks (like a name
# tag), so it is seen even from inside the mob.
see-through: true
# true = the text is drawn at full light, also in the dark.
full-bright: true
# The size of the text on the first hit (1 = the size of the name), 0.1
# to 8.
initial-scale: 1.0
# The size it stops growing at, from initial-scale to 16.
max-scale: 8.0
# The size every later hit adds, 0 to 8 (0 = it never grows).
scale-per-hit: 0.2
# On every hit the text shrinks by this share of its size and grows back
# (0.2 = to 80% and back), 0 to 0.9 (0 = no pulse).
pulse-shrink: 0.2
# Ticks the text takes to shrink, and the same again to grow back, 1 to
# 20.
pulse-ticks: 2
# The color of the text while it pulses (#RRGGBB); it then goes back to
# the colors of format. '' = keep the colors of format.
pulse-color: '#FAFAFA'
# The tilt of the text on the first hit, in degrees, -180 to 180.
initial-angle: 0
# The tilt it stops turning at, in degrees, -180 to 180.
max-angle: 45
# Degrees every later hit turns it toward max-angle, 0 to 90 (0 = it
# never turns).
angle-per-hit: 1
# Ticks without a hit after which the text goes (a mob hit by an enchant
# that is not the one the player fights), 0 to 1200; 0 = it stays until
# the mob dies or the fight ends or moves to another mob.
linger-ticks: 60
# Every interval-seconds (10 to 86400) the mobs alive of each player vanish
# with a poof and new ones take their place, their rarity rolled again
# (thrown by the zone's NPC when it has one, see npc-launch). The mob the
# player is hitting goes too (the fight ends). Each player's clock starts
# when their mobs appear.
refresh:
enabled: true
interval-seconds: 300
# The most extra mobs a player can have at once, thrown by the zone's NPC
# above the area's max-mobs when a sword enchant asks for them (the
# spawn-mobs action), 0 to 200; 0 = none. Extra mobs never come back when
# they die, and a refresh takes them all away. Without an NPC they appear
# in place.
max-extra-mobs: 20
# The rarities a mob can roll. chance is a weight: a rarity is picked with
# probability chance / (sum of every chance). glow is the color of the mob's
# outline (a color name such as AQUA, YELLOW, DARK_PURPLE or its alias
# PURPLE; NONE for no outline), health-bonus the percentage added to the
# stage's health, reward-bonus the percentage added to every reward of the
# stage's mob (100 doubles them) and prefix the {rarity-prefix} of
# name-format. A missing chance is 0 (never rolled, with a warning), a
# missing glow NONE, a missing health-bonus or reward-bonus 0 and a missing
# prefix empty; when no chance is above 0 every mob is plain.
# sn:extensible
rarities:
common:
chance: 70
glow: NONE
health-bonus: 0
reward-bonus: 0
prefix: ''
rare:
chance: 15
glow: AQUA
health-bonus: 100
reward-bonus: 100
prefix: '&b[RARE] '
epic:
chance: 10
glow: PURPLE
health-bonus: 200
reward-bonus: 200
prefix: '&5[EPIC] '
legendary:
chance: 5
glow: YELLOW
health-bonus: 300
reward-bonus: 300
prefix: '&e[LEGENDARY] '
boss:
chance: 1
glow: RED
health-bonus: 600
reward-bonus: 600
prefix: '&r&l[BOSS] '
# The selection wand of /dungeons admin zones wand: left click a block for
# the first corner and right click a block for the second; the edges of the
# box show with particles while you select. Then run
# /dungeons admin zones setarea <zone>; the marks disappear once setarea
# writes the area. Using it needs the permission sndungeons.admin.zones.wand.
wand:
# The wand item (display-name, material, lore, glow, ...).
item:
material: BLAZE_ROD
display-name: '&6&lZone Mob Area Wand'
lore:
- '&7Left click a block: &ffirst corner'
- '&7Right click a block: &fsecond corner'
- '&7Then: &f/dungeons admin zones setarea <zone>'
glow: true
# The particles of the box edges.
particle:
# Any particle name; DUST takes the color and size below.
type: DUST
# DUST color: 'R, G, B' or '#RRGGBB'.
color: '255, 140, 0'
# DUST size, from 0.1 to 4.0.
size: 1.2
# Blocks between two edge particles (0.1 or more).
step: 0.5
# Ticks between two redraws of the edges.
interval-ticks: 5
# Largest box, in blocks, the wand accepts; setarea refuses a bigger one.
# 0 = no limit of the wand (setarea still stops at 1000000 blocks, the most
# a zone file takes).
max-volume: 250000
# How the NPC of a zone (npc: of the zone file, placed with
# /dungeons admin zones setnpc <zone>) throws the NEW mobs: one that
# respawns or comes with a refresh leaves the NPC's hand and flies in an arc
# to its spot, and cannot be hit while it flies. The area is still full the
# moment a player arrives. A zone without an NPC spawns them in place.
npc-launch:
# Blocks the arc rises above the higher of its two ends (0 to 64).
height: 4.0
# Ticks a mob takes to land (1 to 200; 20 = one second).
flight-ticks: 20
# true = the mob spins while it flies.
spin: true
# Ticks between two throws of the same player's NPC (0 to 200; 0 = every
# waiting mob at once).
throw-interval-ticks: 3
# Sound of each throw, heard by that player only ('' = none): a sound name
# (ENTITY_SNOWBALL_THROW) or key (minecraft:entity.snowball.throw).
sound: ENTITY_SNOWBALL_THROW
# Particle a flying mob leaves behind ('' = none); one that needs data
# (DUST, BLOCK, ...) is not accepted.
trail-particle: CLOUD
# Ticks the NPC takes to turn and tilt its head toward where it throws
# (0 to 20; 0 = at once). It keeps looking there until its next throw.
turn-ticks: 4
# Ticks a landed mob takes to turn the short way to the side it faces
# (0 to 40; 0 = at once). It can be hit meanwhile.
settle-ticks: 6
# Where the NPC faces before its first throw (after it, it keeps looking
# where it last threw): mobs = the side of mobs.facing (the side the mobs
# look at; with RANDOM the yaw of the zone file), file = the yaw of the
# zone file (where setnpc looked).
rest-facing: mobs
# The zone HUD, for each player alone and only where show-in says: a fixed
# action bar and an experience bar that shows a leveling. The player's real
# experience never changes: it shows again as soon as they leave that place
# (or the HUD is turned off). Without this block (an older file kept with
# update-configs: false) there is no HUD.
hud:
# zones = inside the columns of the mob-area of a zone, widened by
# mobs.leave-area-distance; worlds = anywhere in the worlds of
# isolation.worlds; both = either one.
show-in: both
# The fixed action bar, sent again every second.
actionbar:
enabled: true
# {per-minute:<currency>} = what the player earned of that currency in
# the last 60 seconds (mob kills and enchant gains, boosters included),
# {balance:<currency>} = their balance, both in the
# currencies.number-format of config.yml; {level:<leveling>} = their
# level; {bar:<id>} = a bar of bars: below. PlaceholderAPI placeholders
# (%...%) work too. An unknown id shows nothing, with one warning per
# reload.
format: '&a+{per-minute:money}/m &8| &b+{per-minute:souls}/m &8| {bar:rebirth}'
# When something else shows the player an action bar (an enchant, a
# reward, another plugin), the fixed one leaves it this many ticks (20 =
# 1 second) before it shows again, from 0 to 1200. Another plugin's is
# only noticed with nms.enabled: true in config.yml.
pause-ticks: 60
# The green experience bar shows the progress to the next level of a
# leveling (an id of the levelings folder), and the green number its level.
xp-bar:
enabled: true
leveling: level
# The bars of {bar:<id>}. leveling: the leveling it follows; its progress is
# the balance of its cost currency over the cost of the next level or, for a
# leveling paid with the level of another (cost type: level), that level
# over the level asked for. length: the cells; filled and empty: the text of
# a filled and of an empty cell; format takes {bar}, {percent} (0 to 100)
# and {next} (the next level); max-format shows at the max level. A missing
# key uses the shipped value; a bar you delete stays deleted.
# sn:extensible
bars:
rebirth:
leveling: rebirth
length: 10
filled: '&a▮'
empty: '&7▯'
format: '{bar} &f({percent}%) &7to Rebirth {next}'
max-format: '&d&lMAX REBIRTH'
# The /zone and /zones commands. A permission of '' means no permission is
# needed, except commands.menu.permission, where '' means the permission of
# commands.main. A subcommand with enable: false does not exist in either
# command (it is not tab-completed, not listed in the help, and typing it
# answers "unknown subcommand"), and its button in the zones menu refuses; so
# does the button of a subcommand whose permission the player lacks.
commands:
# /zone alone shows the zone and stage the sender reached, the stage they
# are at when it is a lower one, and the price of the next stage. If
# another plugin already has this name or an alias, SnDungeons takes it
# (command priority); that plugin keeps answering as /<plugin>:<name> while
# its command answers under that prefix, and gets the name back when
# SnDungeons drops it (never during a shutdown). A server, vanilla or
# Brigadier command, or a root of another SnLib plugin with command
# priority, is never taken: then this one answers only as
# /sndungeons:<name> (an alias as /sndungeons:<alias>). To leave a name to
# another plugin, pick another one.
main:
# Command name; '' = no /zone command at all (the admin commands, the API
# and /zones keep working; a WARN says /zones still offers every
# subcommand).
command: zone
# Other names of the command. zones is the menu command now: an alias that
# is the name of the menu command below is left out.
aliases: []
# Permission needed to use the command at all; while this command exists
# (command is not ''), /zones asks for it too when commands.menu.permission
# is ''.
permission: ''
# /zones alone opens the zones menu (modules/zones/guis/zones.yml): every
# zone in order, then the stages of one zone, to travel to one you unlocked
# or buy the next one. /zones also takes every subcommand below (/zones max
# works like /zone max). Names are taken from other plugins like for main.
menu:
# Command name; '' = no /zones command (the [zones-menu] zones action still
# opens the menu).
command: zones
# Other names of the command.
aliases: []
# Permission needed to use the command at all, and every [zones-menu]
# button of the zones menus. '' = the permission of commands.main (none
# while commands.main.command is ''; then give /zones a node here to
# restrict it). To keep /zones open while /zone needs a node, set a node
# here and grant it to every player (the default group of your permissions
# plugin): a node nobody was granted is OP-only. A public /zones runs every
# enabled subcommand that has no permission of its own, like /zones buy and
# /zones max.
permission: ''
# /zone go: teleports to the spawn of the zone of the highest stage
# unlocked. Every subcommand block below takes the same keys.
go:
# false = this subcommand does not exist.
enable: true
# Other names of the subcommand.
aliases: []
# Permission needed.
permission: ''
# /zone buy: buys the next stage when the balance covers its price.
buy:
enable: true
aliases: []
permission: ''
# /zone max: buys, one after another, every next stage the balance covers.
max:
enable: true
aliases: []
permission: ''
# /zone next: goes one stage forward from the stage the player is at. A
# stage they already unlocked: teleports them to the spawn of its zone, for
# free. The next stage to buy: buys it like /zone buy and always teleports
# them there (whatever teleport-on-purchase says), only for a player who may
# use /zone buy (enabled, with its permission when it has one); anyone else
# is told they cannot buy it. At the last stage of the last zone it says
# there is none after it.
next:
enable: true
aliases: []
permission: ''
# /zone back: goes one stage back from the stage the player is at (their
# last /zone teleport, or the stage a purchase or a step reached when it did
# not teleport; their highest stage when none is known) and teleports
# them to the spawn of the zone of that stage; the progress stays (/zone go
# returns to the highest stage unlocked). The stage the player is at is kept
# across quits and restarts.
back:
enable: true
aliases: []
permission: ''
# /zone visibility: opens the menu where the player chooses who they see in
# the isolated worlds (solo or island, see isolation: above).
visibility:
enable: true
aliases: []
permission: ''
# /zone visit <player>: teleports next to a player who fights in their zone
# and shows you everything they see (their mobs, holograms, enchants, clones,
# heroes, autofighter); you cannot hit their mobs and your own mobs rest
# until you leave (any teleport, /zone go|back|next, a world change). They
# see you unless they switched zones.show-visitors off in /settings and get
# the zones.visit-notice line. sndungeons.zones.visit is given to everyone by
# plugin.yml (default true; take it away with a permissions plugin); another
# node you write here is OP-only until granted.
visit:
enable: true
aliases: []
permission: 'sndungeons.zones.visit'
# /zone spectate <player>: like visit, but invisible and silent (the player
# never sees you nor gets the notice): a staff tool.
spectate:
enable: true
aliases: ['spect']
permission: 'sndungeons.zones.spectate'