Holograms

6commands
3files
2min read
Sheet 23 of 31 · Server Admin

Filesholograms.yml · config.yml · leaderboards.yml

Fileholograms.ymlFileconfig.ymlCommand/zadmin hologram previewCommand/zadmin hologram moveEvery machine, gate and barricade gets a floating label made from a TextDisplay. The text comes from templates in holograms.yml, and the position can be moved per structure. Arena holograms appear when a match starts and are removed when it ends; use /zadmin hologram preview <arena> to see them while building.

Fileconfig.ymlWhile a match runs, arena holograms are redrawn every hologram-update-interval ticks (20, once a second) in config.yml, so prices follow Discount events and shared state.

Templates

Fileholograms.ymlEach top-level key in holograms.yml is a list of lines, MiniMessage allowed. Lines that end up empty after placeholders are filled in are skipped.

TemplateUsed forPlaceholders
kit-shopKit Shop{ammo_refill_cost}
perk-shopPerk Shop{min_price}
weapon-shopWeapon shop locked to one weapon{weapon}, {price}
weapon-shop-anyOpen weapon shop{min_price}
lottery-shopLottery{cost}
mystery-boxMystery Box{cost}
weapon-enchanterPack-a-Punch{cost}
armor-shopArmor shop locked to one tier{tier}, {price}
armor-shop-anyOpen armor shop{min_price}
armor-enchanterArmor Forge{cost}
team-machineTeam Machine{cost}
power-switchPower switch{cost}
gateGates{cost}, {from_room}, {to_room}, {power_required}, {legacy_unlock}
barricadeBarricades{health}, {max_health}
leaderboardLeaderboard holograms{stat}, {rows}

Every template also gets {id}, the structure's id. Prices include an active Discount event. A locked weapon shop also shows the weapon item floating under its text.

Conditional lines

Start a line with [if:<placeholder>] to show it only when that placeholder is set and not false. The gate template uses it to show a power warning only on gates that need power:

gate:
  - "<yellow><bold>Gate <white>{id}"
  - "<gold>${cost}"
  - "<gray>{from_room} <-> {to_room}"
  - "[if:power_required]<red>Power required"

Positioning

By default a hologram sits just above the top of its region, or above the block for a machine without a region. Positions are saved in the arena file.

ToolHow
/zadmin hologram move <arena> <type> <id>Moves it to your eye position.
/zadmin hologram reset <arena> <type> <id>Back to the default spot.
Hologram Wand, /zadmin hologramwandRight-click a block to move the nearest hologram there, sneak + right-click to reset.
Blaze rod in Creator ModeNudges the nearest hologram 0.1 blocks. Right/left click moves it forward/back, with sneak up/down. F rotates it 15 degrees, sneak + F the other way. Q resets it, sneak + Q switches that hologram between facing players and fixed.

Look

# config.yml
dynamic-holograms: false    # true = labels turn to face each player
hologram-background: false  # false = no dark box behind the text

With dynamic-holograms: false a hologram keeps the rotation saved for it, so you can mount labels flat against a wall. Sneak + Q with the blaze rod overrides this for a single hologram.

Leaderboard holograms

Command/zadmin leaderboard add/zadmin leaderboard add <stat> places a live top list. These are not tied to an arena and stay up all the time. See Stats & Leaderboards.

Command/zadmin reloadFileleaderboards.yml/zadmin reload clears every hologram the plugin has spawned and puts the leaderboard holograms back from leaderboards.yml right away. Arena holograms come back with the next match.

Loading the index

Enter openUp Down moveEsc close