Configuration
On this page(16)
SnHolograms ships with the following YAML files. New keys are auto-merged on boot; your edits and comments are preserved.
Files You Can Edit
Everything below plugins/SnHolograms/ is yours:
| File | What it holds |
|---|---|
config.yml | The defaults every hologram inherits, the click cooldown, motion, tracking and requirement timing, command aliases, debug |
lang/messages_en.yml | Every message the plugin sends |
animations.yml | Your text animations (seeded once with examples, never rewritten) |
holograms/<id>.yml, holograms/<folder>/<id>.yml | Your holograms, one file each (the extension must be lower-case .yml) |
scenes/<id>.yml, scenes/<folder>/<id>.yml | Your scenes, one file each |
assets/<name>.json | The constructions scenes show, written by scene import and editable by hand |
imports/ | Drop captures here to import them |
New keys from future versions are merged into config.yml and the language file on boot without touching your edits or comments. animations.yml and your hologram files are never touched by an update.
Hologram files
Drop YAML files in plugins/SnHolograms/holograms/, optionally grouped in subfolders (holograms/lobby/, holograms/shop/); the scan goes exactly one level deep and skips folders that start with a dot. The hologram id is the file name without .yml and the folder is the parent directory name. Ids are unique ignoring case: files are read in sorted path order and the first one wins, later duplicates are reported and skipped. A file that cannot be read is reported with its path and skipped; the rest still load. example.yml is always skipped; on the very first start (when holograms/ does not exist) a documented holograms/example.yml is created that lists every key. If you delete that file it does not come back, unless the whole holograms/ folder is gone.
enabled: true # a file without this key is enabled
type: display # display | armor_stand
location: { world: world, x: 0.5, y: 80.0, z: 0.5, yaw: 0.0, pitch: 0.0 }
view-distance: 48 # optional keys fall back to config.yml defaults
update-interval: 20 # ticks between refreshes of placeholder lines, 0 = never
page-rotation: 0 # seconds between automatic page changes, 0 = off
line-spacing: 0.3 # one number, or { display: 0.35, armor-stand: 0.25 } per renderer
view-requirements: [] # conditions to see it (see below)
look: { billboard: VERTICAL, background: none, shadow: true }
pages:
- lines:
- "₢f2&lWelcome, {player}"
- "&7Online: &f%server_online%"
- { text: "{anim:rainbow}", size: 1.2, offset: 0.1 } # size of this line only
- { item: DIAMOND, glow: true, motion: { type: rotate, speed: 4.0 } }
- { block: GRASS_BLOCK, motion: { type: bob, amplitude: 0.1, period: 40 } }
- { head: "%player_name%" }
actions:
right: ["[message] &aHello, {player}!", "[next-page]"]A file may use top-level lines: and actions: instead of pages: for a single page. The world may be missing or unloaded at startup; the hologram shows once it exists. The in-game editor rewrites a file when you change a hologram with a command; it writes only the keys that differ from config.yml, and comments you add to a file are not kept. After a hand edit, run /snholograms reload.
config.yml
Besides the SnLib keys (lang, update-configs, debug, command.aliases):
| Key | Default | What it does |
|---|---|---|
defaults.view-distance | 48 | Blocks within which a player sees a hologram |
defaults.update-interval | 20 | Ticks between refreshes of lines that use placeholders; 0 = never |
defaults.page-rotation | 0 | Seconds between automatic page changes; 0 = off |
defaults.line-spacing.display | 0.3 | Blocks between two lines of a display hologram |
defaults.line-spacing.armor-stand | 0.25 | Blocks between two lines of an armor stand hologram |
defaults.look.billboard | VERTICAL | How text turns toward the viewer |
defaults.look.background | none | Text background |
defaults.look.shadow | true | Drop shadow behind the text |
defaults.look.see-through | true | Whether the text can be seen through blocks |
defaults.look.* | see file | Alignment, line-width, text-opacity, scale and view-range every hologram inherits |
clicks.cooldown-ticks | 4 | Ticks a player must wait between two click actions on any hologram; 0 = off |
animations.motion-interval | 2 | Ticks between motion updates of rotating and bobbing lines (lower is smoother and sends more packets) |
tracking.check-interval | 10 | Ticks between range checks per player |
tracking.max-view-distance | 128 | Hard cap, in blocks, on any hologram's view distance (limit 1024) |
requirements.check-interval | 40 | Ticks between re-evaluations of a hologram's view requirements for each viewer |
scenes.view-distance | 48 | Blocks within which a new scene shows |
scenes.loop-tolerance | 0.01 | Largest difference of a pose value that still counts as the same pose |
scenes.loop-min-length | 0.5 | Shortest loop the importer suggests, as a part of the recording |
scenes.loop-blend | 5 | Ticks a piece glides back to the start of the loop when the end does not match it |
scenes.follow-look.interval | 2 | Ticks between two turns of a follow-look scene; each turn glides over this many ticks (1 to 59) |
scenes.follow-look.min-turn | 1.0 | Smallest turn in degrees that is sent to a viewer |
scenes.hide-from-old-clients | true | Clients before 1.19.4 (through ViaBackwards) see no scene instead of loose, unscaled blocks. Needs ViaVersion on this server |
scenes.limits.max-pieces | 512 | Most pieces in one asset |
scenes.limits.max-keyframes | 20000 | Most keyframes in one asset, adding up every piece |
scenes.limits.max-ticks | 72000 | Longest timeline of one asset, in ticks |
scenes.limits.max-file-size-mb | 64 | Largest file read as a capture or an asset |
A hologram file or a line overrides any of the look keys with the same name. A hologram shown at the edge of its range is kept until 2 blocks past it, so it does not flicker.
Lines and layout
- Anchor. The
locationis the TOP of the hologram. The first line hangs just below it and the others stack downward. - Line heights. A text line takes one row. Item and head lines take two text rows of height, and block lines take 3.5.
line-spacingis the gap per row, and the line's size grows its row. - Line spacing. A hologram's
line-spacingis one number for both renderers, or a map withdisplayandarmor-stand; a renderer without a value usesdefaults.line-spacing. - Size of a line. A line in map form takes
size(one number or per axis, 0.1 to 10) on top of the hologram's look; it is the same asscaleinside the line'slook, andsizewins when both are set. Armor stands cannot be resized. - Offset. A line's
offsetadds that many blocks of extra gap above that line. - Item, block and head extras.
custom-model-dataandglow(enchant glint) for items and heads;motionofrotate(speedin degrees per tick, negative spins the other way) orbob(amplitudein blocks,periodin ticks for one cycle). - Armor stands. Always face the viewer (no other billboard modes), have no block lines and ignore the display-only look keys.
- Look keys (hologram level, overridable per line):
billboard(CENTER, FIXED, VERTICAL, HORIZONTAL),background(default,none,#RRGGBB,#AARRGGBBorR, G, B[, A]),shadow,see-through,alignment,line-width,text-opacity,scale(one number or per axis),view-range,brightness,glow(#RRGGBBoutline),rotation(yaw and pitch for non-CENTER billboards),translationanditem-transform.
Text, placeholders and animations
Every text accepts & color codes, &#RRGGBB hex and MiniMessage. In lines and in click actions:
- PlaceholderAPI placeholders such as
%player_name%resolve for each viewer. A line with placeholders refreshes everyupdate-intervalticks (0 = never) and a packet is sent only when the text changed for that viewer. {player}is the viewer's name.{anim:<name>}is the current frame of an animation fromanimations.yml. An animated line refreshes at its animation's own frame interval, whateverupdate-intervalsays.
animations.yml top-level keys are the animation names (letters, digits, -, _). Each has an interval (ticks each frame is shown, minimum 1) and frames (at least one, looping). Three examples (rainbow, loading, pulse) are seeded once. Reloading re-reads the file and rebinds every hologram.
Pages
A hologram has one or more pages and each viewer sees one page at a time. Players change page with the page actions below, or automatically with page-rotation. Each viewer has their own current page, so one player turning a page never changes what another sees.
Click actions
Clicking a hologram line runs the actions of the page the player is looking at. Each page has up to five lists in its actions: block:
| List | Runs when the player |
|---|---|
left | left clicks |
right | right clicks |
shift-left | left clicks while sneaking |
shift-right | right clicks while sneaking |
any | clicks and no more specific list applies |
A sneaking click uses the shift- list when it has one, otherwise the plain side, otherwise any. A page with no actions ignores clicks.
Lines use SnLib's action syntax, [tag] argument: [message], [sound], [title], [actionbar], [player], [console], [close], [broadcastmessage], [connect] and the rest of SnLib's catalog. SnLib's click guards work too, because the click type is passed on: [right-click], [shift-left-click], [left-click-only], [chance=N] and so on can start a line.
Arguments can use {player} (the clicker), {hologram} (the hologram id) and {page} (the page the click happened on, starting at 1), plus PlaceholderAPI placeholders.
| Page action | Effect |
|---|---|
[next-page] | Show the clicking player the next page (wraps to the first) |
[prev-page] | Show the previous page (wraps to the last) |
[page] <n> | Jump to page n of this hologram (1 = first, clamped to the page count) |
[hologram-page] <id> <n> | Set the clicking player's page of another hologram |
SnLib's own [previous-page], [set-page] <n> and [refresh-page] work as well. Page changes affect only the clicking player.
clicks.cooldown-ticks is a per-player gap across all holograms, not per hologram: a click inside the gap is dropped. Set it to 0 to turn the cooldown off.
View requirements
view-requirements is a list of conditions, all of which a player must meet to see the hologram. They are evaluated for each viewer when the hologram would be shown and every requirements.check-interval ticks after, so a hologram can appear or disappear as a placeholder changes. Operators: =, ==, !=, >, <, >=, <=, joined with && and || (parentheses allowed):
view-requirements:
- "%player_level% >= 10"
- "%player_world% == world || %player_has_permission_vip% == yes"Scenes
A scene shows a construction made of many display entities, optionally animated, with no resource pack. Like a hologram it is packet-only and per viewer: nothing is spawned in the world. An asset is the reusable construction (its pieces and timeline); a scene is one placement of it, and one asset can be placed many times.
The flow: record, import, place.
- Capture the construction with SnOwnerTools 2.8.0 or newer: a snapshot (
displays-*.json) for a static one, or a recording (recording-*.json) for an animated one. - Copy the
.jsontoplugins/SnHolograms/imports/and run/snholograms scene import <file> [name]. It writesassets/<name>.jsonand reports the pieces, the keyframes and the suggested loop. - Stand where it should go and run
/snholograms scene create <id> <asset>. Adjust it with/snholograms scene set, or turn it with/snholograms scene rotate <id> <degrees>.
What an import keeps. Block displays with their full block state, item displays with their item and count, player heads with the skin of their minecraft:profile component, the transformation, light, glow, billboard, view range and culling box. Other components are dropped, with a warning. A head whose texture cannot be read stays a plain head, also with a warning. Text displays and interactions are omitted and counted. The origin becomes the common point of the pieces (for pieces that share none, their horizontal center at the height of the lowest), and the timeline starts at tick 0.
The suggested loop. The import looks for the longest stretch that starts and ends in the same full pose of every piece. Many animations never return to the exact same pose; then it picks the two most alike ticks at least scenes.loop-min-length of the recording apart and tells you how far apart their poses are. Either way the way back from loop-end to loop-start is interpolated, so there is no visible jump. Override it per scene with loop-start and loop-end.
Scene files. One YAML per scene in scenes/, with folders one level deep, like holograms:
asset: pinata
location: { world: world, x: 0.5, y: 80.0, z: 0.5 }
yaw: 0.0 # turns the whole scene around its origin (with follow-look: which side is the front)
scale: 1.0 # multiplies the size and the offsets of every piece
playing: true # false holds the loop-start pose
follow-look: false # true turns its front toward each viewer
speed: 1.0
loop-start: 8 # optional, follows the asset when absent
loop-end: 197 # optional, follows the asset when absent
view-distance: 48 # capped by tracking.max-view-distance
view-requirements: [] # same conditions as hologramsFollow look. /snholograms scene set <id> follow-look true makes a scene turn, for each player on their own, so that its front faces them as they walk round it. The front is the side that faced south (+Z) in the capture, turned by the scene's yaw: if the wrong side looks at you, turn it with /snholograms scene rotate <id> 90 (or 180, -90) until the right one does. Every turn glides on the client over scenes.follow-look.interval ticks, and a player who barely moved round it costs nothing (scenes.follow-look.min-turn). Each player sees the scene facing themselves, so two players on opposite sides both see its front.
Asset files. assets/<name>.json is compact and editable by hand. A pose is 14 numbers: translation xyz, left rotation xyzw, scale xyz, right rotation xyzw. Optional keys can be left out.
{
"format": 1,
"length": 200,
"loop-start": 8,
"loop-end": 197,
"pieces": [
{"block": "minecraft:oak_stairs[facing=north]", "offset": [0, 0, 0], "brightness": [15, 15], "width": 6.0, "height": 7.0,
"pose": [0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 1],
"keyframes": [
{"t": 20, "d": 4, "pose": [0, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 1]}
]}
]
}A piece uses exactly one of "block", "item" (with an optional "count") or "head". "item-transform" applies to items and heads. Other optional keys: "billboard", "glow" (RGB number), "view-range". In a keyframe t is the tick and d the ticks it glides. A file that cannot be read is reported with its path and skipped. After a hand edit, run /snholograms reload: scenes that did not change are not touched, so nothing flickers.
Heads. "head" shows a player head with a skin, as an item display. The value is a texture, written like the texture of a head line: raw base64, texture-<base64>, basehead-<base64> or a skin URL. Player names are not accepted, and nothing is looked up online. A value that holds no skin logs one warning. Only that piece is not shown, like a block that does not exist.
{"head": "http://textures.minecraft.net/texture/<hash>", "item-transform": "fixed",
"pose": [0.5, 0.5, 0.5, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 1]}An item display is placed by its center, not by its corner like a block display. With the same pose, a block grows from the position toward +x, +y and +z, while a head is centered on it. To put a head where a block of the same size would be, add half of its scale to each axis of the translation, as the example does.
Old clients. Display entities exist from client 1.19.4 on; a 1.20.4 client sees a scene exactly like a 1.21 one. A client before 1.19.4, joined through ViaBackwards, has no display entities, and ViaBackwards would draw every piece as a loose block with no scale or rotation. With ViaVersion on this server, those players see no scene at all (scenes.hide-from-old-clients: true, the default; false leaves it to ViaBackwards). The version is read once, when the player joins. Without ViaVersion on this server (none, or only on the proxy), every player gets the scenes.
Runtime holograms
Other plugins can create holograms from code. These runtime holograms are owned by the code that made them: they are not stored in any file, the editor commands do not list or change them, a /snholograms reload leaves them untouched, and they are removed when their owning plugin is disabled. Plugins create and control them through the Developer API.
Reload and saving
Edits made with commands apply at once and are written to the file in the background. /snholograms reload waits a moment for any write still in progress before it rescans, then adds new holograms, removes deleted ones, updates changed ones and re-binds animations; disabled holograms stay hidden. Hand edits need a reload to take effect. The first time the editor rewrites a file in a run it saves a copy next to it as <id>.yml.bak (an existing .bak is never overwritten); the rewrite drops comments and unknown keys, so keep hand-written notes in the .bak.
Known gaps
- No command moves a hologram between folders; move the file by hand and reload.
view-requirements, clickactions, lineoffset,motion,custom-model-dataandglow, and the per-linelookkeys other than its size are edited in the file and applied with/snholograms reload; there is no in-game command for them yet.
File: config.yml
# ============================================================
# SnHolograms - 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).
# Sections marked "# sn:extensible" are yours: entries you delete there
# stay deleted.
# ============================================================
# 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 /snholograms 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 /snholograms. Re-read on /snholograms reload.
aliases: [sholo, holo]
# ------------------------------------------------------------
# Public developer API.
# ------------------------------------------------------------
# Public developer API events (click, page change, edit, load). When false, no
# API event is dispatched (zero cost) and the cancellable click event reports
# "not cancelled" so clicks proceed. The API itself stays available either way.
api-events:
enabled: true
# ------------------------------------------------------------
# Hologram model: the values every hologram file inherits.
# ------------------------------------------------------------
# A hologram file overrides any of these with the same key; a missing key falls back to the value here.
defaults:
# Blocks within which a player sees a hologram. Capped by tracking.max-view-distance.
view-distance: 48
# Ticks between refreshes of lines that use placeholders. 0 = never. Animations refresh at their own frame interval.
update-interval: 20
# Seconds between automatic page changes. 0 = off.
page-rotation: 0
# Blocks between two lines, per renderer.
line-spacing:
# Spacing of display holograms.
display: 0.3
# Spacing of armor stand holograms.
armor-stand: 0.25
# Look of the lines. A hologram file can override any key in its own look section, and a line in its look.
look:
# How text turns toward the viewer: CENTER, FIXED, VERTICAL or HORIZONTAL. Armor stands always use CENTER.
billboard: VERTICAL
# Text background: default, none, #RRGGBB, #AARRGGBB or "R, G, B[, A]".
background: none
# Drop shadow behind the text.
shadow: true
# Whether the text can be seen through blocks.
see-through: true
# Alignment of multi-line text: CENTER, LEFT or RIGHT.
alignment: CENTER
# Pixels before the client wraps a line of text.
line-width: 200
# Text opacity, 0 to 255.
text-opacity: 255
# Size multiplier of the line, 0.1 to 10.
scale: 1.0
# Client view range multiplier of the line, 0.1 to 10.
view-range: 1.0
# ------------------------------------------------------------
# Hologram features: clicks and animations.
# ------------------------------------------------------------
# Click actions of holograms.
clicks:
# Ticks a player must wait between two click actions on holograms. 0 = no cooldown.
cooldown-ticks: 4
# Motion of item, block and head lines.
animations:
# Ticks between motion updates (rotate, bob). Lower is smoother and sends more packets.
motion-interval: 2
# ------------------------------------------------------------
# Hologram limits: how often viewers are checked.
# ------------------------------------------------------------
# Showing and hiding holograms as players move.
tracking:
# Ticks between range checks per player.
check-interval: 10
# Hard cap, in blocks, on the view distance of any hologram. Values above 1024 are
# lowered to 1024 with a warning in the console (every range check scans this far).
max-view-distance: 128
# View requirements of holograms.
requirements:
# Ticks between re-evaluations of a hologram's view-requirements for each viewer.
check-interval: 40
# Scenes: constructions of many displays placed in the world.
scenes:
# Blocks within which a new scene shows. Capped by tracking.max-view-distance.
view-distance: 48
# Largest difference of a pose value between two ticks that still counts as the same pose.
loop-tolerance: 0.01
# Shortest loop the importer suggests, as a part of the recording: 0.5 is half of it.
loop-min-length: 0.5
# Ticks a piece glides back to the start of the loop when the end of the loop does not match it.
loop-blend: 5
# Clients before 1.19.4 (joined through ViaBackwards) have no display entities and would see every
# piece as a loose, unscaled block. true hides scenes from them. Needs ViaVersion on this server.
hide-from-old-clients: true
# A scene with follow-look: true turns, for each viewer, so that its front faces them. Its yaw says
# which side is the front (yaw 0: the side that faced south when it was captured).
follow-look:
# Ticks between two turns; each turn glides over this many ticks on the client (1 to 59).
interval: 2
# Smallest turn in degrees that is sent: a viewer who barely moved costs nothing.
min-turn: 1.0
# What one asset may hold, so that a huge file cannot harm the server.
limits:
# Most pieces in one asset.
max-pieces: 512
# Most keyframes in one asset, adding up every piece.
max-keyframes: 20000
# Longest timeline of one asset, in ticks.
max-ticks: 72000
# Largest file read as a capture or an asset, in megabytes.
max-file-size-mb: 64File: animations.yml
# ============================================================
# SnHolograms - text animations
# Seeded once. This file is yours: SnHolograms never rewrites it.
# Run /snholograms reload after editing.
# ============================================================
# Every top-level key is an animation. Use one in a text line of a hologram with
# {anim:<name>}, for example "{anim:rainbow}" or "&7Status: {anim:loading}".
#
# Each animation has:
# interval: ticks each frame is shown (20 ticks = 1 second), minimum 1
# frames: the frames in order; they loop. A frame is text like any hologram
# line (& colors, &#RRGGBB, placeholders). At least one is required.
#
# Names: letters, digits, - and _ (no dots). Lookup ignores case.
# A line with an animation refreshes at the animation's own interval, whatever
# the hologram's update-interval is.
# Cycles a title through colors.
rainbow:
interval: 2
frames:
- "&cSnHolograms"
- "&6SnHolograms"
- "&eSnHolograms"
- "&aSnHolograms"
- "&bSnHolograms"
- "&9SnHolograms"
- "&dSnHolograms"
# Dots that grow, for a loading or waiting line.
loading:
interval: 10
frames:
- "&7Loading"
- "&7Loading&f."
- "&7Loading&f.."
- "&7Loading&f..."
# A line that fades between two shades of the brand color.
pulse:
interval: 6
frames:
- "₢f2Welcome"
- "	b7af5Welcome"
- "&#b3a0f8Welcome"
- "	b7af5Welcome"File: holograms/example.yml
# ============================================================
# SnHolograms - example hologram
# NOT loaded: files named example.yml are always skipped. Copy this file
# to a new name and edit it, or create holograms in game with /snholograms.
# ============================================================
# Where files go
# plugins/SnHolograms/holograms/<id>.yml a loose hologram
# plugins/SnHolograms/holograms/<folder>/<id>.yml a hologram grouped in a folder
# - The file name without .yml is the hologram id (letters, digits, - and _).
# - Only ONE level of subfolders is read; deeper folders and folders starting
# with a dot are ignored.
# - Ids are unique ignoring case. Files are read in sorted path order and the
# FIRST file with an id wins; a later duplicate is reported and skipped.
# - A file that cannot be read is reported with its path and skipped; the rest
# still load.
# - The in-game editor rewrites a file when you change a hologram with a
# command. It writes only the keys that differ from config.yml, and comments
# and keys it does not know are not kept: before the first rewrite of a file
# it saves a copy next to it as <id>.yml.bak (kept: an existing .bak is never
# overwritten), which the loader ignores. Edit by hand, then run /snholograms reload.
# - File names must end in a lower-case .yml; other spellings (Shop.YML) are skipped.
#
# Text lines accept the usual formats: & color codes, &#RRGGBB hex, MiniMessage,
# PlaceholderAPI placeholders such as %player_name%, and these tokens:
# {player} the viewer's name (lines and actions)
# {anim:<name>} the current frame of an animation from animations.yml (lines only)
# Whether the hologram is shown. A file without this key is enabled.
enabled: true
# Renderer: display or armor_stand.
# display text, item and block display entities. Supports every look key.
# armor_stand invisible armor stands. Has no billboard modes (always CENTER)
# and no block lines; a block line in an armor_stand file is
# reported and dropped.
type: display
# Where the hologram sits. The world must exist when players are near; it may be
# unloaded or missing at startup. yaw and pitch default to 0.
location:
world: world
x: 0.5
y: 80.0
z: 0.5
yaw: 0.0
pitch: 0.0
# Optional keys. A missing key takes its value from config.yml (defaults section).
# Blocks within which a player sees the hologram (capped by tracking.max-view-distance).
view-distance: 48
# Ticks between refreshes of lines that use placeholders. 0 = never. Animations refresh at their own frame interval.
update-interval: 20
# Seconds between automatic page changes for each viewer. 0 = off.
page-rotation: 0
# Blocks between two lines. One number applies to both renderers. A map sets each
# renderer on its own, and a renderer left out uses defaults.line-spacing:
# line-spacing:
# display: 0.35
# armor-stand: 0.25
# Without this key: defaults.line-spacing for the renderer.
line-spacing: 0.3
# Conditions a player must meet to see the hologram, evaluated for each viewer.
# One expression per line, all of them must pass. Operators: = == != > < >= <=
# joined with && and || (parentheses allowed). Example:
# view-requirements:
# - "%player_level% >= 10"
# - "%player_world% == world || %player_has_permission_vip% == yes"
view-requirements: []
# Look of every line of the hologram. Every key is optional.
look:
# CENTER (always faces the viewer), FIXED, VERTICAL or HORIZONTAL.
billboard: VERTICAL
# default, none, #RRGGBB, #AARRGGBB or "R, G, B[, A]".
background: none
# Drop shadow behind the text.
shadow: true
# Text visible through blocks.
see-through: true
# CENTER, LEFT or RIGHT.
alignment: CENTER
# Pixels before the client wraps a line of text.
line-width: 200
# 0 to 255.
text-opacity: 255
# Size multiplier of every line, 0.1 to 10. A single number scales every axis
# equally. A line sets its own with its size key (see the lines below).
scale: 1.0
# Client view range multiplier, 0.1 to 10.
view-range: 1.0
# More look keys (all optional, not written here because they are off by default):
# scale: per-axis scale instead of a single number, each 0.1 to 10
# x: 1.0
# y: 2.0
# z: 1.0
# brightness: 15 light 0 to 15 for block and sky together, or a map with
# block: and sky: for two values; -1 uses the world light
# glow: "#ff8800" colored glow outline around the line; none turns it off
# rotation: fixed facing for FIXED, VERTICAL and HORIZONTAL billboards.
# yaw: 90.0 A missing component uses the location's yaw/pitch.
# pitch: 0.0
# translation: offset of the line from its resting position, in blocks
# x: 0.0
# y: 0.5
# z: 0.0
# item-transform: FIXED how item and head lines are oriented: FIXED, GUI,
# GROUND, HEAD, NONE, THIRDPERSON_LEFTHAND,
# THIRDPERSON_RIGHTHAND, FIRSTPERSON_LEFTHAND,
# FIRSTPERSON_RIGHTHAND
# Pages. A hologram has one or more; players see one page at a time and the
# [next-page] / [prev-page] / [page] actions or page-rotation switch between them.
# Lines are listed top to bottom.
pages:
- lines:
# A plain string is a text line.
- "₢f2&lWelcome, {player}"
- "&7Online: &f%server_online%"
# A text line with extras. The map form carries more keys, on any kind of line:
# size: size multiplier of this line only, 0.1 to 10. Armor stands
# cannot be resized.
# look: look keys that apply to this line only (same keys as the
# look section above); the rest inherit the hologram's look
# offset: extra blocks of vertical gap above this line
# motion: see the item lines below
- text: "{anim:rainbow}"
size: 1.2
look:
shadow: false
offset: 0.1
# An item floating above the hologram.
# item: any item material name
# custom-model-data: optional integer for resource packs
# glow: enchantment glint on the item
# motion: rotate - spins around the vertical axis
# speed: degrees per tick (negative spins the other way)
# bob - moves up and down
# amplitude: blocks
# period: ticks for one full cycle
- item: DIAMOND
glow: true
motion:
type: rotate
speed: 4.0
- item: PAPER
custom-model-data: 1001
offset: 0.2
# A block. Display holograms only.
- block: GRASS_BLOCK
motion:
type: bob
amplitude: 0.1
period: 40
# A player head. The value can be a player name, %player_name% (the viewer's
# own head) or a texture value written as basehead-<base64>.
- head: "%player_name%"
# - head: "basehead-<base64 texture value>"
# What a click on this page runs. Each key is a list of actions in SnLib's
# [tag] argument form: [message] [sound] [title] [actionbar] [player]
# [console] [close] ... plus the page actions below. {player}, {hologram}
# and {page} are available in every argument.
# left left click right right click
# shift-left left click while sneaking shift-right right click while sneaking
# any any click with no more specific list
# A sneaking click uses the shift- list when it has one, else the plain
# side, else any. A hologram with no actions on a page ignores clicks there.
# Page actions:
# [next-page] next page
# [prev-page] previous page
# [page] <n> jump to page n of this hologram (1 = first)
# [hologram-page] <id> <n> set the clicking player's page of another hologram
actions:
right:
- "[message] &aHello, {player}!"
- "[sound] ENTITY_EXPERIENCE_ORB_PICKUP"
- "[next-page]"
left:
- "[message] &7You hit hologram {hologram} on page {page}."
shift-right:
- "[message] &7Shift-click works too."
# CAUTION: [console] runs the command as the server console, for EVERY player who
# clicks. Never copy a line like this into a live file without a view-requirement
# or a permission check around it, or anyone can run it:
# - "[console] give {player} diamond 1"
any: []
# A second page. A page needs only the keys it uses.
- lines:
- "₢f2&lPage two"
- "&7Click to go back."
actions:
any:
- "[prev-page]"
# Shorthand for a single page: write lines: and actions: at the top level instead
# of pages:. If both are present, pages: wins and the top-level pair is ignored.
# lines:
# - "&aHello"
# actions:
# right: ["[message] hi"]File: lang/messages_en.yml
# ============================================================
# SnHolograms - 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&lSnHolograms &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>"
# Short state words. Each is substituted into a {state}, {world-state} or {folder} slot of the
# messages below, so a restyle here applies everywhere at once.
status:
enabled: "&aEnabled"
disabled: "&cDisabled"
loaded: "&aLoaded"
unloaded: "&cNot loaded"
# Shown where a hologram sets no value: no folder, a feature switched off with 0.
none: "&7None"
# Shown where a value follows the config default (line spacing).
default: "&7Default"
# Whether the timeline of a scene runs.
playing: "&aPlaying"
stopped: "&cStopped"
# Whether the asset of a scene exists.
found: "&aFound"
missing: "&cMissing"
# 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:
# Feedback of the /snholograms editor commands.
editor:
# First line of a hologram made by /snholograms create. Empty or removed: the hologram starts with an empty page.
starter-line: "₢f2&lNew hologram"
players-only: "&cOnly players can use this command."
not-found: "&cNo hologram named &e{id}&c."
invalid-id: "&cInvalid id &e{id}&c: use letters, numbers, - and _ only. The id &eexample&c is reserved."
invalid-folder: "&cInvalid folder &e{folder}&c: use letters, numbers, - and _ only."
already-exists: "&cA hologram named &e{id}&c already exists."
write-failed: "&cThe change to &e{id}&c is live but could not be saved to its file. See the console."
world-not-loaded: "&cThe world &e{world}&c of hologram &e{id}&c is not loaded."
created: "&aCreated hologram &e{id}&a in folder &e{folder}&a. Add lines with &e/snholograms line add {id} 1 <text>&a."
deleted: "&aDeleted hologram &e{id}&a."
cloned: "&aCloned &e{id}&a to &e{new}&a (folder &e{folder}&a) at the same place. Move it with &e/snholograms movehere {new}&a."
moved: "&aMoved hologram &e{id}&a to your position."
teleported: "&aTeleported to hologram &e{id}&a."
state-changed: "&7Hologram &e{id}&7 is now {state}&7."
state-unchanged: "&7Hologram &e{id}&7 is already {state}&7."
type-changed: "&aHologram &e{id}&a now renders as &e{type}&a."
type-unchanged: "&7Hologram &e{id}&7 already renders as &e{type}&7."
type-dropped-blocks: "&eDropped &f{count}&e block line(s) of &f{id}&e: armor stands cannot show blocks."
set-done: "&aSet &e{property}&a of &e{id}&a to &f{value}&a."
set-reset: "&aReset &e{property}&a of &e{id}&a to its default."
set-malformed: "&cWrong number of values for &e{property}&c: &f{value}"
set-rejected: "&cCould not set &e{property}&c: &7{reason}"
set-view-capped: "&eThe server shows holograms up to &f{max}&e blocks (tracking.max-view-distance), so &f{id}&e is not seen farther than that."
page-added: "&aAdded page &e{page}&a to &e{id}&a. Fill it with &e/snholograms line add {id} {page} <text>&a."
page-removed: "&aRemoved page &e{page}&a of &e{id}&a."
page-out-of-range: "&cThe hologram has &e{max}&c page(s); there is no page &e{page}&c."
last-page: "&cA hologram needs at least one page. Delete &e{id}&c to remove it entirely."
page-empty: "&cPage &e{page}&c of &e{id}&c has no lines."
line-out-of-range: "&cLine &e{line}&c does not exist; valid numbers are &e1&c to &e{max}&c."
line-added: "&aAdded line &e{line}&a to page &e{page}&a of &e{id}&a."
line-inserted: "&aInserted line &e{line}&a on page &e{page}&a of &e{id}&a."
line-set: "&aReplaced line &e{line}&a on page &e{page}&a of &e{id}&a."
line-removed: "&aRemoved line &e{line}&a from page &e{page}&a of &e{id}&a."
line-size: "&aSet the size of line &e{line}&a on page &e{page}&a of &e{id}&a to &f{value}&a."
line-size-reset: "&aLine &e{line}&a on page &e{page}&a of &e{id}&a follows the size of the hologram again."
size-no-effect: "&eArmor stands cannot be resized, so this size has no effect on &f{id}&e. Switch it with &f/snholograms type {id} display&e."
empty-content: "&cNothing follows the prefix in &e{content}&c."
block-on-armor-stand: "&cArmor stand holograms cannot show blocks. Switch the hologram with &e/snholograms type <id> display&c first."
unknown-material: "&cUnknown material in &e{content}&c."
near-none: "&7No holograms within &e{radius}&7 blocks."
near-header: "&7Holograms within &e{radius}&7 blocks (&f{count}&7):"
near-entry: "&8- &f{id} &8(&7{folder}&8) &e{distance} &7blocks, {state}"
list-empty: "&7There are no holograms yet. Create one with &e/snholograms create <id>&7."
list-header: "&7Holograms: &f{count}"
list-group: "&8- &7{folder} &8(&f{count}&8)&7: {ids}"
folder-empty: "&7The folder &e{folder}&7 has no holograms."
# Name shown for the holograms that sit directly in holograms/ (no folder).
list-root: "&8(root)"
# How one id is shown in the list: enabled and disabled holograms.
list-entry: "&f{id}"
list-entry-disabled: "&8{id}"
list-separator: "&7, "
info:
- "&8&m------&r ₢f2&l{id} &8&m------"
- "&7Folder: &f{folder} &8| &7State: {state} &8| &7Renderer: &f{type}"
- "&7World: &f{world} &8(&r{world-state}&8)"
- "&7Position: &f{x} {y} {z}"
- "&7View distance: &f{view-distance} &8| &7Update interval (ticks): &f{update-interval}"
- "&7Page rotation (seconds): &f{page-rotation} &8| &7Line spacing: &f{line-spacing}"
- "&7Pages: &f{pages}"
info-page: "[noprefix]&8> &7Page &e{page} &8(&f{lines}&8 lines)"
info-line: "[noprefix]&8 {line}. &7{kind}: &f{content}"
# Feedback of the /snholograms scene commands.
scene-not-found: "&cNo scene named &e{id}&c."
scene-asset-not-found: "&cNo asset named &e{asset}&c. Import one with &e/snholograms scene import <file>&c."
scene-exists: "&cA scene named &e{id}&c already exists."
scene-write-failed: "&cThe change to scene &e{id}&c is live but could not be saved to its file. See the console."
scene-created: "&aPlaced scene &e{id}&a from asset &e{asset}&a in folder &e{folder}&a."
scene-deleted: "&aDeleted scene &e{id}&a."
scene-moved: "&aMoved scene &e{id}&a to your position."
scene-teleported: "&aTeleported to scene &e{id}&a."
scene-world-not-loaded: "&cThe world &e{world}&c of scene &e{id}&c is not loaded."
scene-rotated: "&aTurned scene &e{id}&a by &f{degrees}&a degrees; its yaw is now &f{yaw}&a."
scene-rotate-rejected: "&cThe value &f{value}&c is not a number of degrees."
scene-set-done: "&aSet &e{property}&a of scene &e{id}&a to &f{value}&a."
scene-set-rejected: "&cThe value &f{value}&c does not fit &e{property}&c."
scene-set-loop-invalid: "&cThe loop must go from a tick to a later one, up to &e{max}&c."
scene-set-view-capped: "&eThe server shows scenes up to &f{max}&e blocks (tracking.max-view-distance), so &f{id}&e is not seen farther than that."
scene-import-started: "&7Importing &e{file}&7..."
scene-imported: "&aImported &e{asset}&a: &f{pieces}&a pieces, &f{keyframes}&a keyframes, &f{length}&a ticks. Place it with &e/snholograms scene create <id> {asset}&a."
scene-import-loop-repeat: "&7Loop found: ticks &f{start}&7 to &f{end}&7."
scene-import-loop-closest: "&7Nothing repeats exactly; closest loop: ticks &f{start}&7 to &f{end}&7 (difference &f{difference}&7). The way back is interpolated."
scene-import-loop-whole: "&eNo loop found: the whole recording (&f{length}&e ticks) loops."
scene-import-omitted: "&eOmitted: &f{text}&e text displays, &f{interaction}&e interactions, &f{other}&e others."
scene-import-components: "&f{count}&e item display(s) lost their components: only the item, the count and the texture of a head are kept."
scene-import-ignored: "&f{count}&e change(s) in the recording are not part of the transformation and were ignored."
scene-import-not-found: "&cNo file &e{file}&c in the imports folder."
scene-import-too-large: "&cThe file is larger than &e{count}&c MB (scenes.limits.max-file-size-mb)."
scene-import-exists: "&cThe asset &e{asset}&c already exists. Pick another name or delete its file first."
scene-import-write-failed: "&cThe asset &e{asset}&c could not be imported. See the console."
scene-import-bad-format: "&cThe file &e{file}&c is not a snapshot or a recording of SnOwnerTools. See the console."
scene-import-no-pieces: "&cThe file &e{file}&c has no block or item displays."
scene-import-too-many-pieces: "&cThe file has &e{count}&c pieces, above scenes.limits.max-pieces."
scene-import-too-many-keyframes: "&cThe file has &e{count}&c keyframes or more, above scenes.limits.max-keyframes."
scene-import-too-long: "&cThe recording lasts &e{count}&c ticks, above scenes.limits.max-ticks."
scene-list-empty: "&7There are no scenes yet. Import a capture with &e/snholograms scene import <file>&7."
scene-list-header: "&7Scenes: &f{count}"
scene-list-entry: "&8- &f{id} &8(&7{folder}&8)&7: asset &f{asset}&7, viewers &f{viewers}"
scene-list-assets: "&7Assets (&f{count}&7): &f{assets}"
scene-info:
- "&8&m------&r ₢f2&l{id} &8&m------"
- "&7Folder: &f{folder} &8| &7Asset: &f{asset} &8(&r{asset-state}&8)"
- "&7World: &f{world} &8(&r{world-state}&8)"
- "&7Position: &f{x} {y} {z} &8| &7Yaw: &f{yaw} &8| &7Scale: &f{scale}"
- "&7Playback: {playing} &8| &7Speed: &f{speed} &8| &7Loop: &f{loop-start} &7to &f{loop-end}"
- "&7Follow look: {follow-look}"
- "&7Pieces: &f{pieces} &8| &7Keyframes: &f{keyframes} &8| &7Ticks: &f{length}"
- "&7View distance: &f{view-distance} &8| &7Viewers: &f{viewers}"