Configuration
On this page(8)
SnMines ships with the following YAML files. New keys are auto-merged on boot; your edits and comments are preserved.
Mines themselves are stored one file per mine in plugins/SnMines/mines/<id>.yml. The plugin writes them from the menus, so do not edit them by hand.
config.yml
# ============================================================
# SnMines - configuration
# Managed by SnLib: new keys are auto-merged on boot; your values and
# comments are preserved. Do NOT add a config-version key (retired).
# Set update-configs: false to freeze this file (SnLib only warns about
# missing keys instead of inserting them).
# ============================================================
# Active language code; loads lang/messages_<code>.yml (falls back to en).
lang: en
# Master switch of the SnLib auto-updater for this plugin's managed files.
update-configs: true
# Runtime debug output (also toggleable live via /mines debug).
debug:
# Master toggle of the debug output.
enabled: false
# Verbosity threshold: OFF, INFO, DEBUG or TRACE.
level: DEBUG
# Category filter; an empty list lets every category through.
categories: []
# ------------------------------------------------------------
# Main command.
# ------------------------------------------------------------
command:
# Aliases of /mines. Re-read on /mines reload.
aliases: [snmines]
# ------------------------------------------------------------
# Public developer API.
# ------------------------------------------------------------
# Public developer API events. When false, no API event is dispatched (zero
# cost) and cancellable hooks report "not cancelled" so gameplay proceeds.
# The query facade stays available either way. Re-read on /mines reload.
api-events:
enabled: true
# ------------------------------------------------------------
# Selection wand (/mines wand). Left click sets pos1, right click
# sets pos2; then /mines create <id> or /mines redefine <id>.
# ------------------------------------------------------------
selection-wand:
# Wand item appearance (full SnItem schema).
item:
material: BLAZE_ROD
display-name: "₢f2&lMine Wand"
lore:
- "&7Left click: &fpos1"
- "&7Right click: &fpos2"
- "&7Then: &f/mines create <id>"
glow: true
particle:
# Edge particle (any Particle name; DUST takes the color and size below).
type: DUST
# Only for DUST: "R, G, B" or "#RRGGBB".
color: "131, 84, 242"
# Only for DUST: dust size, 0.1 - 4.0.
size: 1.2
# Distance between edge points in blocks.
step: 0.5
# Render refresh period in ticks.
interval-ticks: 5
# Max distance (blocks) from the viewer to the box for the edges to show.
render-distance: 64
# Largest selection the wand accepts, in blocks; 0 = no wand limit. A mine can never
# exceed 67108864 blocks or 4096 chunk columns, whatever this says.
max-volume: 4000000
# ------------------------------------------------------------
# New mines. Values a mine starts with on /mines create; every
# one of them is then edited per mine from /mines edit.
# ------------------------------------------------------------
new-mine:
# Seconds between timed resets; 0 = no timed reset.
reset-interval: 600
# Reset when this percentage of the mine has been mined; 0 = off.
reset-mined-percent: 0
# Teleport players standing inside the mine to its point when it resets.
teleport-players: true
# Material of the mine's icon in /mines edit until one is dragged in.
icon: STONE
# ------------------------------------------------------------
# Resets.
# ------------------------------------------------------------
reset:
# Blocks placed per tick while a mine refills, shared by all running refills.
# Lower = smoother, slower. Kept within 1..50000 (a WARN is logged otherwise).
blocks-per-tick: 5000
# Reset every mine with a complete composition when the server starts.
on-startup: true
# Seconds between reaching a mine's mined-percent threshold and its reset.
threshold-delay: 0
# ------------------------------------------------------------
# Drops.
# ------------------------------------------------------------
drops:
# Players in creative mode also receive the composition drop of the blocks
# they break (the vanilla drop is replaced either way).
allow-creative: false
# Exclusive drops: a block of a mine's composition gives ONLY its configured
# drop. Items and experience that other plugins spawn at that block (custom
# enchants that smelt, multiply drops or add experience) are removed, and its
# vanilla experience is cancelled. What another plugin puts straight into the
# inventory cannot be stopped. Blocks outside the composition keep every drop.
cancel-foreign: true
# ------------------------------------------------------------
# Menu editor.
# ------------------------------------------------------------
editor:
# Percentage added or removed by a plain left/right click on a block.
percent-step: 1
# Percentage added or removed by a shift left/right click on a block.
percent-step-shift: 10
# Seconds added or removed by the small reset interval buttons.
interval-step: 60
# Seconds added or removed by the large reset interval buttons.
interval-step-large: 600
# Percentage added or removed by the mined-percent threshold buttons.
threshold-step: 5
# Items added or removed by a shift click on the drop amount buttons.
amount-step-shift: 8
# Seconds an admin has to type a value in chat after a menu asks for it.
prompt-timeout: 60
# Typing this word in chat cancels a pending value prompt.
cancel-word: cancel
# Seconds an admin has to place an unrecognized custom block so the
# mine can learn its exact state.
learn-timeout: 60
# ------------------------------------------------------------
# Protection.
# ------------------------------------------------------------
protection:
# Inside an enabled mine, breaking a block is always allowed even when
# WorldGuard or any other plugin cancelled it. Only breaking: placing and
# interacting stay under the normal protection. This also overrides a
# cancel from an anticheat or a jail plugin inside mines.
bypass: true
# Seconds between two "mine is resetting" messages to the same player
# while they try to break blocks of a refilling mine; 0 = every attempt.
resetting-message-cooldown: 1
# ------------------------------------------------------------
# Integrations.
# ------------------------------------------------------------
integrations:
# Resolve SnTexturePack block items dragged into the composition menu
# (needs SnTexturePack 1.30.0 or newer). Off: they use learn mode.
sntexturepack: true
# ------------------------------------------------------------
# Reset warnings.
# ------------------------------------------------------------
warnings:
# Warn players before a timed reset.
enabled: true
# Seconds before the reset at which a warning is sent.
seconds: [60, 30, 10, 5, 3, 2, 1]
# Players within this many blocks of the mine region get the warnings.
radius: 32
# Also show the warning as a title.
title: falselang/messages_en.yml
# ============================================================
# SnMines - language file (English)
# Managed by SnLib: new keys merge in on boot, your values are kept.
# Restyle any line freely; your edits survive updates.
# ============================================================
# Prefix prepended to every single-line message sent via sn.lang().send(...)
prefix: "₢f2&lSnMines &8| &7"
# snlib.* is SnLib's shared command contract (14 keys; the two help.group-*
# keys exist since SnLib 1.36.0). Every Sn plugin ships
# this block UNCHANGED: SnLib bundles NEUTRAL defaults for any key you omit and
# merges them in on boot, so an incomplete block leaks unbranded lines. Shipping
# the FULL block is what keeps the whole fleet visually identical. Placeholders
# {plugin} {usage} {description} {page} {total} {min} {max} {value} {command}
# {group} {path} are filled by SnLib. NEVER put {prefix} here (it is auto-prepended).
snlib:
no-permission: "&cYou do not have permission to use this command."
usage: "&cUsage: &e{usage}"
invalid-number: "&cInvalid number: &e{value}"
invalid-value: "&cInvalid value: &e{value}"
out-of-range: "&cValue must be between &e{min} &cand &e{max}&c: &e{value}"
number-too-small: "&cValue must be at least &e{min}&c: &e{value}"
player-not-found: "&cPlayer not found: &e{value}"
unknown-subcommand: "&cUnknown subcommand: &e{value}"
reload-done: "&aConfiguration reloaded."
help:
header: "&8&m----------&r ₢f2&l{plugin} &8&m----------"
# Branded no-separator form. SnLib's neutral default is "&e{usage} &7{description}".
entry: "₢f2{usage} &7{description}"
footer: "&7Page &f{page}&7/&f{total} &8- ₢f2/{command} help <page>"
# Own help of a groupHelp() command group (/<cmd> admin <module> help).
group-header: "&8&m----------&r ₢f2&l{group} &8&m----------"
group-footer: "&7Page &f{page}&7/&f{total} &8- ₢f2{path} help <page>"
selection:
pos1-set: "&aPos1 set: &e{x}, {y}, {z} &7({world})"
pos2-set: "&aPos2 set: &e{x}, {y}, {z} &7({world})"
different-worlds: "&cBoth positions must be in the same world."
too-big: "&cSelection too big: &e{volume} &7(max {max})"
no-permission: "&cYou cannot use this wand."
timeout: "&7Selection expired."
# Your own plugin messages. Do NOT write {prefix} in any value: SnLib
# auto-prepends the prefix above to every single-line message sent via
# sn.lang().send(...). A literal {prefix} renders verbatim, and SnLib
# logs a one-time WARN when the active lang file contains one.
messages:
# Shared by every command and menu that names a mine.
mine-not-found: "&cNo mine named &e{mine}&c."
player-only: "&cOnly players can do that."
# Chat prompt: hint after the prompt line. {cancel} is editor.cancel-word, {seconds} is editor.prompt-timeout.
prompt-hint: "&7Type your answer in chat, or &f{cancel} &7to cancel. &8({seconds}s)"
# Chat prompt: the cancel word was typed.
prompt-cancelled: "&7Cancelled."
# Chat prompt: editor.prompt-timeout ran out.
prompt-timed-out: "&cYou ran out of time to answer."
# Learn mode: asks to place the item once. {seconds} is editor.learn-timeout.
learn-instructions: "&7Hold the item and place it once anywhere so its block can be learned. &8({seconds}s)"
# Learn mode: editor.learn-timeout ran out.
learn-timed-out: "&cNo block was learned in time."
# Reset warning sent to players within warnings.radius of the mine. {mine} display name, {id} mine id, {seconds} left. Empty = not sent.
reset-warning: "&e{mine} &7resets in &f{seconds}s&7."
# Title shown with the warning when warnings.title is true: title;subtitle;fadeIn;stay;fadeOut (ticks). Same placeholders.
reset-warning-title: "₢f2{mine};&7Resets in &f{seconds}s;5;30;10"
# Sent to players within warnings.radius when a mine starts refilling. {mine}, {id}. Empty = not sent.
reset-started: "&e{mine} &7is resetting..."
# Sent to players within warnings.radius when a mine finished refilling. {mine}, {id}. Empty = not sent.
reset-done: "&e{mine} &ahas been reset."
# A player tried to break a block of a mine that is refilling. {mine} is its display name.
mine-resetting: "&e{mine} &cis resetting, wait a moment."
# Menus: the mine being edited was deleted (from the command or by another admin).
menu-mine-gone: "&cThat mine no longer exists."
# Menus: the block being edited is no longer part of the composition.
menu-block-gone: "&cThat block is no longer part of the composition."
# Menus and commands: a manual reset was started. {mine} is the display name.
menu-reset-started: "&aResetting &e{mine}&a..."
# Menus and commands: a manual reset was refused because the mine is already refilling.
menu-reset-busy: "&e{mine} &cis already resetting."
# Menus and commands: a manual reset was refused because the mine is disabled.
menu-reset-disabled: "&e{mine} &cis disabled, enable it first."
# Menus and commands: a manual reset was refused because the composition is not complete. {missing} is the unassigned share.
menu-reset-incomplete: "&e{mine} &ccannot reset: its composition is missing &e{missing}%&c."
# Menus and commands: a manual reset was refused for another reason (for example its world is not loaded).
menu-reset-failed: "&e{mine} &ccannot reset right now. Is its world loaded?"
# Menus and commands: the mine was deleted from the confirmation menu.
menu-deleted: "&e{mine} &7was deleted."
# Menus and commands: another plugin cancelled a create, redefine, delete or manual reset
# through the SnMines developer API. {mine} is the display name (the id for a new mine).
action-cancelled: "&cAnother plugin stopped this change to &e{mine}&c."
# Menus: asks for the new display name. Color codes written with the ampersand work.
menu-prompt-name: "&7Type the new display name of &e{mine}&7. Color codes written with the ampersand work."
# Menus: the display name was changed.
menu-name-set: "&aThe mine is now called &e{mine}&a."
menu-name-rejected: "&cThat name was refused: use &-color codes and decorations only, without the characters < and the backslash."
# Menus: clicking the icon cell without an item.
menu-icon-hint: "&7Drag an item from your inventory onto the icon cell, or shift-click it, to use it as the icon."
# Menus: the icon was changed.
menu-icon-set: "&aThe icon of &e{mine} &awas updated."
# Menus: the teleport point was set to the admin's position.
menu-teleport-set: "&aThe teleport point of &e{mine} &awas set to your position."
# Menus and commands: teleporting to a mine whose world is not loaded.
menu-teleport-world: "&cThe world of &e{mine} &cis not loaded."
# Menus and commands: redefining a region without a complete wand selection.
menu-no-selection: "&cSelect an area with the wand first (get it with &f/mines wand&c): left click sets pos1, right click sets pos2."
# Menus and commands: the new region overlaps another mine. {other} is its display name.
menu-redefine-overlap: "&cThat region overlaps the mine &e{other}&c."
# Commands and menus: the selection is beyond the hard size limit of a mine. {size} is the
# selection in blocks, {max} the largest volume and {columns} the most chunk columns allowed.
region-too-large: "&cThat selection is too large for a mine (&e{size} &cblocks). A mine holds at most &e{max} &cblocks and &e{columns} &cchunk columns."
# Menus and commands: the new region was refused at the last moment (another mine took the space).
menu-redefine-refused: "&cThat region cannot be used: it overlaps another mine."
# Menus and commands: the region was replaced. {size} is the number of blocks.
menu-redefined: "&aThe region of &e{mine} &awas redefined &7({size} blocks)&a."
# Menus: clicking the composition header without an item.
menu-block-hint: "&7Drag an item from your inventory onto the header, or shift-click it, to add the block it places."
# Menus: the dragged item places no block.
menu-block-rejected: "&cThat item does not place a block."
# Menus: the block is already in the composition.
menu-block-duplicate: "&cThat block is already in the composition."
# Menus: a block was added. {block} is its item name, {percent} the share it starts with.
menu-block-added: "&aAdded &e{block} &ato &e{mine} &7({percent}%)&a."
# Menus: a block was removed.
menu-block-removed: "&e{block} &7was removed from &e{mine}&7."
# Menus: clicking the drop item cell without an item.
menu-drop-hint: "&7Drag an item from your inventory onto the drop item cell, or shift-click it, to change what drops."
# Menus: the drop item of a block was changed.
menu-drop-item-set: "&aThe drop item of &e{block} &awas updated."
# Menus: asks for an exact share. {max} is the most this block can take.
menu-prompt-percent: "&7Type the share of &e{block} &7(0 to {max}, up to two decimals, like 12.5)."
# Menus: the typed share is not a number from 0 to 100 with up to two decimals.
menu-percent-invalid: "&cInvalid share: &e{value}&c. Use a number from 0 to 100 with up to two decimals, like 12.5."
# Menus (action bar): a share was cut so the composition does not pass 100%. {percent} is what the block got.
menu-percent-capped: "&e{block} &7is capped at &f{percent}%&7: the composition cannot pass 100%."
# Menus: asks for a reset interval. {current} is the present value.
menu-prompt-interval: "&7Type the reset interval of &e{mine} &7(now &f{current}&7), like 10m or 1h30m. Type 0 to turn it off."
# Menus: the typed interval is not a duration.
menu-interval-invalid: "&cInvalid duration: &e{value}&c. Use units like 30s, 10m or 1h30m, or 0 to turn it off."
# /mines wand: the wand was given.
wand-given: "&aYou received the mine wand: left click sets &fpos1&a, right click sets &fpos2&a."
# /mines create: the id is not [a-z0-9_-]. {id} is what was typed, {max} the longest id.
invalid-id: "&cInvalid mine id &e{id}&c. Use up to &e{max} &ccharacters among a-z, 0-9, _ and -."
# /mines create: a mine with that id exists, or its file in mines/ was skipped at boot and is
# kept as it is (see the console). {mine} is the id.
mine-exists: "&cA mine named &e{mine} &calready exists (or its file in mines/ was skipped at boot and is reserved)."
# /mines create: the mine was created. {mine} id, {size} blocks, {label} the command label in use.
mine-created: "&aMine &e{mine} &acreated &7({size} blocks)&a. Add its blocks with &f/{label} edit {mine}&a; it resets once its composition adds up to 100%."
# /mines tp: the admin was teleported. {mine} is the display name.
teleported: "&aTeleported to &e{mine}&a."
# /mines list: first line. {count} is the number of mines.
list-header: "&7Mines &8(&f{count}&8)&7:"
# /mines list: one line per mine. {id}, {mine} display name, {status}, {complete}, {mined} percent, {size} blocks.
list-entry: "[noprefix]&8- &e{id} &7{mine}&r &8| {status} &8| {complete} &8| &f{mined}% &7mined &8| &f{size} &7blocks"
# /mines list: there are no mines. {label} is the command label in use.
list-empty: "&7There are no mines yet. Select an area with &f/{label} wand&7, then run &f/{label} create&7 with a name."
# Short state words. Each is substituted into a {status} or {state} slot of the
# messages above, of the menus under guis/ and of the PlaceholderAPI output, so a
# restyle here applies everywhere at once.
status:
enabled: "&aEnabled"
disabled: "&cDisabled"
complete: "&aComplete"
incomplete: "&cIncomplete"
resetting: "&eResetting"
drop-ground: "&eGround"
drop-inventory: "&bInventory"
# Drop mode of a block that gives nothing.
drop-none: "&7Nothing"
# A value that was overridden (teleport point, drop item).
custom: "&aCustom"
# A value that was not overridden and uses the default.
default: "&7Default"
# Shown where a value is off or missing (no timed reset, no threshold).
none: "None"guis/mines-list.yml
# ============================================================
# SnMines - mine list menu (/mines edit)
# One icon per mine. Managed by SnLib: new keys are auto-merged on boot; your
# values and comments are preserved. There is no version key to maintain.
# ============================================================
#
# TOKENS. Usable in the display-name and lore of the elements that list them.
# info {count}
# mine {mine} {id} {status} {enabled} {complete} {total} {free} {blocks}
# {size} {world} {mined} {reset-in} {interval} {threshold}
# {tp-players} {teleport} {teleport-kind}
# {free} is the share of the composition still unassigned. {mined} is a
# percentage, {reset-in} the time to the next timed reset. The state words
# ({status}, {complete}, ...) come from the status: section of the lang file.
#
# LAYOUT. One character per slot, nine per row.
# f = background p = the mines (paged) i = header
# < = previous page > = next page x = close
# To remove an element, delete its letter from the map.
# ============================================================
title: "₢f2&lMines"
pagination: true
paged-key: p
# Only the four basic mouse clicks reach a mine; the lists below enable the rest.
strict-clicks: true
# Redraws the grid every second so the mined share and the countdown stay live.
update-interval: 20
layout:
- "ffffiffff"
- "fpppppppf"
- "fpppppppf"
- "fpppppppf"
- "fpppppppf"
- "<fffxfff>"
items:
filler:
key: f
material: GRAY_STAINED_GLASS_PANE
display-name: " "
close:
key: x
material: BARRIER
display-name: "&cClose"
click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[close]"
previous-page:
key: "<"
material: ARROW
display-name: "₢f2Previous Page"
click-actions:
- "[previous-page]"
- "[sound] UI_BUTTON_CLICK"
nav-disabled:
material: GRAY_STAINED_GLASS_PANE
display-name: "&7No previous page"
lore:
- "&8You are on the first page"
next-page:
key: ">"
material: ARROW
display-name: "₢f2Next Page"
click-actions:
- "[next-page]"
- "[sound] UI_BUTTON_CLICK"
nav-disabled:
material: GRAY_STAINED_GLASS_PANE
display-name: "&7No next page"
lore:
- "&8You are on the last page"
templates:
# Header: how many mines exist and what the clicks do.
info:
key: i
material: BOOK
display-name: "₢f2&lMines &8({count})"
lore:
- "&7Left click a mine: &fedit it"
- "&7Shift + right click: &freset it now"
- ""
- "&8Get the wand with /mines wand, then /mines create <id>"
# One mine. Its icon is the mine's own icon item; the material below is only
# the fallback and is never shown.
mine:
material: STONE
display-name: "{mine} &8({id})"
lore:
- "&7Status: {status}"
- "&7Composition: {complete} &8| &7Free: &f{free}%"
- "&7Blocks: &f{blocks} &8| &7Size: &f{size}"
- "&7Mined: &f{mined}%"
- "&7Next reset: &f{reset-in}"
- ""
- "&8Left click: &7edit"
- "&8Shift + right click: &7reset now"
left-click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[mines] list edit {id}"
shift-right-click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[mines] list reset {id}"guis/mine-editor.yml
# ============================================================
# SnMines - mine editor menu (/mines edit <id>, or a click in /mines edit)
# Managed by SnLib: new keys are auto-merged on boot; your values and
# comments are preserved. There is no version key to maintain.
# ============================================================
#
# TOKENS. Usable in the title and in the display-name and lore of every element.
# title {mine}
# elements {mine} {id} {status} {enabled} {complete} {total} {free} {blocks}
# {size} {world} {mined} {reset-in} {interval} {threshold}
# {tp-players} {teleport} {teleport-kind}
# {mine} is the display name, {id} the mine id. {free} is the share of the
# composition still unassigned. The state words ({status}, {enabled},
# {complete}, ...) come from the status: section of the lang file.
#
# LAYOUT. One character per slot, nine per row.
# f = background i = mine summary b = back to the list
# n = display name m = icon (receives an item)
# c = composition s = reset settings
# t = set teleport here g = teleport there d = redefine region
# e = enable / disable r = reset now k = delete
# To remove an element, delete its letter from the map; its section below
# stays and is simply not placed.
# ============================================================
title: "₢f2&lMine &8| &r{mine}"
# Only the four basic mouse clicks reach a control.
strict-clicks: true
# The icon cell receives the item you drag onto it (or shift-click in your own
# inventory); the item is read, never taken from you.
player-inventory: open
layout:
- "fffffffff"
- "fnmfifcsf"
- "ffftgdfff"
- "ffferkfff"
- "ffffbffff"
items:
filler:
key: f
material: GRAY_STAINED_GLASS_PANE
display-name: " "
back:
key: b
material: ARROW
display-name: "&cBack"
lore:
- "&7Return to the mine list."
click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[mines] editor back"
templates:
info:
key: i
material: PAPER
display-name: "₢f2&l{mine}"
lore:
- "&7Id: &f{id}"
- "&7Status: {status}"
- "&7Composition: {complete} &8| &7Free: &f{free}%"
- "&7Blocks: &f{blocks}"
- "&7Region: &f{size} blocks &8({world})"
- "&7Mined: &f{mined}%"
- "&7Next reset: &f{reset-in}"
- "&7Teleport: &f{teleport} &8({teleport-kind}&8)"
name:
key: n
material: NAME_TAG
display-name: "₢f2&lDisplay name"
lore:
- "&7Current: &r{mine}"
- ""
- "&8Click to type a new name in chat."
click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[mines] editor name"
# The cell shows the mine's icon item and receives a new one. The material is
# only the fallback and is never shown.
icon:
key: m
input: true
material: STONE
display-name: "₢f2&lIcon"
lore:
- "&7The item that represents this mine."
- ""
- "&8Drag an item from your inventory onto this"
- "&8cell, or shift-click it, to use it as the icon."
- "&8The item is not taken from you."
click-actions:
- "[mines] editor icon-hint"
composition:
key: c
material: CHEST
display-name: "₢f2&lComposition"
lore:
- "&7Blocks: &f{blocks}"
- "&7Composition: {complete}"
- "&7Free share: &f{free}%"
- ""
- "&8Click to edit the blocks and their share."
click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[mines] editor blocks"
reset-settings:
key: s
material: CLOCK
display-name: "₢f2&lReset settings"
lore:
- "&7Every: &f{interval}"
- "&7Mined threshold: &f{threshold}"
- "&7Teleport players: {tp-players}"
- ""
- "&8Click to change when the mine resets."
click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[mines] editor reset-settings"
tp-set:
key: t
material: ENDER_PEARL
display-name: "₢f2&lSet teleport here"
lore:
- "&7Current: &f{teleport} &8({teleport-kind}&8)"
- ""
- "&8Click to use your position as the teleport point."
click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[mines] editor tp-set"
tp-go:
key: g
material: COMPASS
display-name: "₢f2&lTeleport there"
lore:
- "&7Point: &f{teleport}"
- ""
- "&8Click to teleport to the mine."
click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[mines] editor tp-go"
redefine:
key: d
material: BLAZE_ROD
display-name: "₢f2&lRedefine region"
lore:
- "&7Region: &f{size} blocks &8({world})"
- ""
- "&8Select a new area with the wand, then click"
- "&8to replace this mine's region with it."
click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[mines] editor redefine"
toggle-on:
key: e
material: LIME_DYE
display-name: "₢f2&lMine state"
lore:
- "&7The mine is: {enabled}"
- ""
- "&8Click to disable it."
click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[mines] editor toggle"
toggle-off:
key: e
material: GRAY_DYE
display-name: "₢f2&lMine state"
lore:
- "&7The mine is: {enabled}"
- ""
- "&8Click to enable it."
click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[mines] editor toggle"
reset-now:
key: r
material: DIAMOND_PICKAXE
display-name: "₢f2&lReset now"
lore:
- "&7Status: {status}"
- "&7Composition: {complete}"
- ""
- "&8Click to refill the mine right now."
flags:
- HIDE_ATTRIBUTES
click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[mines] editor reset"
delete:
key: k
material: TNT
display-name: "&c&lDelete mine"
lore:
- "&7Removes &r{mine} &7for good."
- ""
- "&8Click to ask for confirmation."
click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[mines] editor delete"guis/mine-blocks.yml
# ============================================================
# SnMines - composition menu (the blocks of one mine and their share)
# Managed by SnLib: new keys are auto-merged on boot; your values and
# comments are preserved. There is no version key to maintain.
# ============================================================
#
# TOKENS. Usable in the title and in the display-name and lore of the elements that list them.
# title {mine}
# header {mine} {id} {total} {free} {complete} {blocks} {status}
# block {mine} {id} {block} {percent} {free} {total} {drop-mode}
# {drop-item} {drop-kind} {amount} {index} {step} {step-large}
# {percent} is the share of that block, {free} the share of the composition
# still unassigned, {step} and {step-large} the share a click adds or removes
# (editor.percent-step and editor.percent-step-shift in config.yml). The state
# words ({complete}, {drop-mode}, {drop-kind}) come from the status: section of
# the lang file. A block shows its own item as the icon.
#
# LAYOUT. One character per slot, nine per row.
# f = background p = the blocks (paged) h = header (receives an item)
# < = previous page > = next page b = back to the mine editor
# To remove an element, delete its letter from the map.
# ============================================================
title: "₢f2&lBlocks &8| &r{mine}"
pagination: true
paged-key: p
# Only the four basic mouse clicks reach a control; the block lists below enable
# the middle click and the drop key.
strict-clicks: true
# The header receives the item you drag onto it (or shift-click in your own
# inventory) and adds its block; the item is read, never taken from you.
player-inventory: open
layout:
- "ffffhffff"
- "fpppppppf"
- "fpppppppf"
- "fpppppppf"
- "fpppppppf"
- "<fffbfff>"
items:
filler:
key: f
material: GRAY_STAINED_GLASS_PANE
display-name: " "
back:
key: b
material: ARROW
display-name: "&cBack"
lore:
- "&7Return to the mine editor."
click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[mines] blocks back"
previous-page:
key: "<"
material: ARROW
display-name: "₢f2Previous Page"
click-actions:
- "[previous-page]"
- "[sound] UI_BUTTON_CLICK"
nav-disabled:
material: GRAY_STAINED_GLASS_PANE
display-name: "&7No previous page"
lore:
- "&8You are on the first page"
next-page:
key: ">"
material: ARROW
display-name: "₢f2Next Page"
click-actions:
- "[next-page]"
- "[sound] UI_BUTTON_CLICK"
nav-disabled:
material: GRAY_STAINED_GLASS_PANE
display-name: "&7No next page"
lore:
- "&8You are on the last page"
templates:
header:
key: h
input: true
material: HOPPER
display-name: "₢f2&lComposition"
lore:
- "&7Total: &f{total}% &8| &7Free: &f{free}%"
- "&7Composition: {complete}"
- "&7Blocks: &f{blocks}"
- ""
- "&8Drag an item from your inventory onto this cell,"
- "&8or shift-click it, to add the block it places."
- "&8The item is not taken from you."
click-actions:
- "[mines] blocks hint"
# One block of the composition. Its icon is the item that was dragged in; the
# material below is only the fallback and is never shown. The name is the
# item's own, so no display-name is declared.
block:
material: STONE
lore:
- "&7Share: &f{percent}%"
- "&7Drop: {drop-mode} &7x &f{amount}"
- "&7Drop item: &f{drop-item} &8({drop-kind}&8)"
- ""
- "&8Left / right click: &7+{step}% / -{step}%"
- "&8Shift + left / right click: &7+{step-large}% / -{step-large}%"
- "&8Middle click or Q: &7edit this block"
left-click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[mines] blocks up {index}"
right-click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[mines] blocks down {index}"
shift-left-click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[mines] blocks up-large {index}"
shift-right-click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[mines] blocks down-large {index}"
middle-click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[mines] blocks edit {index}"
drop-click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[mines] blocks edit {index}"guis/block-editor.yml
# ============================================================
# SnMines - block editor menu (one block of a mine's composition)
# Managed by SnLib: new keys are auto-merged on boot; your values and
# comments are preserved. There is no version key to maintain.
# ============================================================
#
# TOKENS. Usable in the title and in the display-name and lore of every element.
# title {mine}
# elements {mine} {id} {block} {percent} {free} {total} {drop-mode}
# {drop-item} {drop-kind} {amount} {step} {step-large}
# {amount-step-large}
# {percent} is the share of the block, {free} the share of the composition still
# unassigned. {step} and {step-large} are editor.percent-step and
# editor.percent-step-shift, {amount-step-large} is editor.amount-step-shift.
# The state words ({drop-mode}, {drop-kind}) come from the status: section of
# the lang file.
#
# LAYOUT. One character per slot, nine per row.
# f = background i = block summary b = back to the composition
# q a e t = share -large, -, +, +large
# x = type an exact share l = fill to 100% m = drop mode
# u o w = drop amount -, drop item (receives an item), drop amount +
# r = remove the block p = use the block item as the drop again
# To remove an element, delete its letter from the map; its section below
# stays and is simply not placed.
# ============================================================
title: "₢f2&lBlock &8| &r{mine}"
# Only the four basic mouse clicks reach a control.
strict-clicks: true
# The drop item cell receives the item you drag onto it (or shift-click in your
# own inventory); the item is read, never taken from you.
player-inventory: open
layout:
- "fffffffff"
- "ffqaietff"
- "fffxlmfff"
- "ffufofwff"
- "fffrfpfff"
- "ffffbffff"
items:
filler:
key: f
material: GRAY_STAINED_GLASS_PANE
display-name: " "
back:
key: b
material: ARROW
display-name: "&cBack"
lore:
- "&7Return to the composition."
click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[mines] block back"
templates:
# The block's own item, with its share. The material is only the fallback and
# is never shown.
info:
key: i
material: STONE
display-name: "₢f2&l{block}"
lore:
- "&7Share: &f{percent}%"
- "&7Free in the mine: &f{free}%"
- "&7Drop: {drop-mode} &7x &f{amount}"
percent-down-large:
key: q
material: RED_STAINED_GLASS_PANE
display-name: "&c-{step-large}%"
lore:
- "&7Share: &f{percent}%"
click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[mines] block down-large"
percent-down:
key: a
material: ORANGE_STAINED_GLASS_PANE
display-name: "&6-{step}%"
lore:
- "&7Share: &f{percent}%"
click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[mines] block down"
percent-up:
key: e
material: LIME_STAINED_GLASS_PANE
display-name: "&a+{step}%"
lore:
- "&7Share: &f{percent}%"
- "&7Free in the mine: &f{free}%"
click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[mines] block up"
percent-up-large:
key: t
material: GREEN_STAINED_GLASS_PANE
display-name: "&2+{step-large}%"
lore:
- "&7Share: &f{percent}%"
- "&7Free in the mine: &f{free}%"
click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[mines] block up-large"
exact:
key: x
material: OAK_SIGN
display-name: "₢f2&lType an exact share"
lore:
- "&7Share: &f{percent}%"
- ""
- "&8Click, then type a number in chat, like 12.5."
- "&8Up to two decimals."
click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[mines] block exact"
fill:
key: l
material: EMERALD
display-name: "₢f2&lFill to 100%"
lore:
- "&7Share: &f{percent}%"
- "&7Adds the free &f{free}%"
- ""
- "&8Click to give this block what is left."
click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[mines] block fill"
drop-mode:
key: m
material: HOPPER
display-name: "₢f2&lDrop mode"
lore:
- "&7Current: {drop-mode}"
- ""
- "&8Ground: the drop falls where the block was."
- "&8Inventory: it goes to the miner; what does not fit falls at their feet."
- "&8Nothing: the block gives nothing (it still counts as mined)."
- ""
- "&8Click to switch."
click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[mines] block mode"
# The cell shows the item a miner receives and takes a new one. The material
# is only the fallback and is never shown.
drop-item:
key: o
input: true
material: STONE
display-name: "₢f2&lDrop item"
lore:
- "&7Gives: &f{drop-item} &7x &f{amount} &8({drop-kind}&8)"
- ""
- "&8Drag an item from your inventory onto this cell,"
- "&8or shift-click it, to change what drops."
- "&8The item is not taken from you."
click-actions:
- "[mines] block drop-hint"
drop-reset:
key: p
material: MILK_BUCKET
display-name: "₢f2&lUse the block item"
lore:
- "&7Drop item: &f{drop-item} &8({drop-kind}&8)"
- ""
- "&8Click to drop the block's own item again."
click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[mines] block drop-reset"
amount-down:
key: u
material: RED_STAINED_GLASS_PANE
display-name: "&c-1 &7drop amount"
lore:
- "&7Amount: &f{amount}"
- ""
- "&8Shift click: &7-{amount-step-large}"
click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[mines] block amount-down"
shift-left-click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[mines] block amount-down-large"
shift-right-click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[mines] block amount-down-large"
amount-up:
key: w
material: LIME_STAINED_GLASS_PANE
display-name: "&a+1 &7drop amount"
lore:
- "&7Amount: &f{amount}"
- ""
- "&8Shift click: &7+{amount-step-large}"
click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[mines] block amount-up"
shift-left-click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[mines] block amount-up-large"
shift-right-click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[mines] block amount-up-large"
remove:
key: r
material: LAVA_BUCKET
display-name: "&c&lRemove block"
lore:
- "&7Takes &f{block} &7out of the composition."
- "&7Its &f{percent}% &7becomes free."
- ""
- "&8Click to remove it."
click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[mines] block remove"guis/mine-reset.yml
# ============================================================
# SnMines - reset settings menu (when a mine regenerates by itself)
# Managed by SnLib: new keys are auto-merged on boot; your values and
# comments are preserved. There is no version key to maintain.
# ============================================================
#
# TOKENS. Usable in the title and in the display-name and lore of every element.
# title {mine}
# elements {mine} {id} {status} {complete} {free} {mined} {reset-in}
# {interval} {threshold} {tp-players} {interval-step}
# {interval-step-large} {threshold-step}
# {interval} is the time between timed resets and {threshold} the mined share
# that triggers a reset; both read None when off. {interval-step} and
# {interval-step-large} are editor.interval-step and editor.interval-step-large,
# {threshold-step} is editor.threshold-step. The state words ({tp-players}, ...)
# come from the status: section of the lang file.
#
# LAYOUT. One character per slot, nine per row.
# f = background b = back to the mine editor
# q a i e t = interval -large, -, current value, +, +large
# y = type an interval j n k = threshold -, current value, +
# w = teleport players toggle
# To remove an element, delete its letter from the map; its section below
# stays and is simply not placed.
# ============================================================
title: "₢f2&lReset &8| &r{mine}"
# Only the four basic mouse clicks reach a control.
strict-clicks: true
layout:
- "fffffffff"
- "ffqaietff"
- "ffffyffff"
- "fffjnkfff"
- "ffffwffff"
- "ffffbffff"
items:
filler:
key: f
material: GRAY_STAINED_GLASS_PANE
display-name: " "
back:
key: b
material: ARROW
display-name: "&cBack"
lore:
- "&7Return to the mine editor."
click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[mines] reset back"
templates:
interval-down-large:
key: q
material: RED_STAINED_GLASS_PANE
display-name: "&c-{interval-step-large}"
lore:
- "&7Reset every: &f{interval}"
click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[mines] reset interval-down-large"
interval-down:
key: a
material: ORANGE_STAINED_GLASS_PANE
display-name: "&6-{interval-step}"
lore:
- "&7Reset every: &f{interval}"
click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[mines] reset interval-down"
interval-info:
key: i
material: CLOCK
display-name: "₢f2&lReset every: &f{interval}"
lore:
- "&7Next reset in: &f{reset-in}"
- "&7Status: {status}"
- ""
- "&8A timed reset only runs when something was mined,"
- "&8and only while the composition is complete."
- "&8Lower it to 0 to turn the timed reset off."
interval-up:
key: e
material: LIME_STAINED_GLASS_PANE
display-name: "&a+{interval-step}"
lore:
- "&7Reset every: &f{interval}"
click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[mines] reset interval-up"
interval-up-large:
key: t
material: GREEN_STAINED_GLASS_PANE
display-name: "&2+{interval-step-large}"
lore:
- "&7Reset every: &f{interval}"
click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[mines] reset interval-up-large"
interval-type:
key: y
material: NAME_TAG
display-name: "₢f2&lType a duration"
lore:
- "&7Reset every: &f{interval}"
- ""
- "&8Click, then type it in chat, like 10m or 1h30m."
- "&8Type 0 to turn the timed reset off."
click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[mines] reset interval-type"
threshold-down:
key: j
material: RED_STAINED_GLASS_PANE
display-name: "&c-{threshold-step}%"
lore:
- "&7Mined threshold: &f{threshold}"
click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[mines] reset threshold-down"
threshold-info:
key: n
material: COMPARATOR
display-name: "₢f2&lMined threshold: &f{threshold}"
lore:
- "&7Mined now: &f{mined}%"
- ""
- "&8The mine resets when this share of it has been mined."
- "&8Lower it to 0 to turn the threshold off."
threshold-up:
key: k
material: LIME_STAINED_GLASS_PANE
display-name: "&a+{threshold-step}%"
lore:
- "&7Mined threshold: &f{threshold}"
click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[mines] reset threshold-up"
teleport-players:
key: w
material: ENDER_PEARL
display-name: "₢f2&lTeleport players"
lore:
- "&7Current: {tp-players}"
- ""
- "&8When on, players inside the mine are moved to its"
- "&8teleport point when it resets."
- ""
- "&8Click to switch."
click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[mines] reset teleport-players"guis/confirm-delete.yml
# ============================================================
# SnMines - delete confirmation menu
# Managed by SnLib: new keys are auto-merged on boot; your values and
# comments are preserved. There is no version key to maintain.
# ============================================================
#
# TOKENS. Usable in the title and in the display-name and lore of the summary.
# title {mine}
# info {mine} {id} {blocks} {size} {world} {complete}
#
# LAYOUT. One character per slot, nine per row.
# f = background c = confirm i = summary d = cancel
# ============================================================
title: "₢f2&lDelete &8| &r{mine}&8?"
# Only the four basic mouse clicks reach a control.
strict-clicks: true
layout:
- "fffffffff"
- "ffcfifdff"
- "fffffffff"
items:
filler:
key: f
material: GRAY_STAINED_GLASS_PANE
display-name: " "
confirm:
key: c
material: LIME_STAINED_GLASS_PANE
display-name: "&aConfirm"
lore:
- "&7Delete the mine for good."
click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[mines] confirm yes"
cancel:
key: d
material: RED_STAINED_GLASS_PANE
display-name: "&cCancel"
lore:
- "&7Keep the mine."
click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[mines] confirm no"
templates:
info:
key: i
material: TNT
display-name: "&c&lDelete {mine}&c?"
lore:
- "&7Id: &f{id}"
- "&7Blocks: &f{blocks} &8| &7Composition: {complete}"
- "&7Region: &f{size} blocks &8({world})"
- ""
- "&cThis cannot be undone."