Blocksmith logo
NextGens

Holograms

NextGens uses holograms to mark corrupted generators, so your players can find the broken ones without hunting through their whole base. NextGens doesn't render the holograms itself, it hooks into a hologram plugin of your choice.

Supported plugins

PluginConfig value
DecentHologramsDecentHolograms
FancyHologramsFancyHologram or FancyHolograms
Holographic DisplaysHolographicDisplays
You only need one of them. If none of them is installed, NextGens keeps working normally and simply disables the holograms.

Configuration

Which plugin gets used is controlled by the holograms section in config.yml.

holograms:
  # The hologram plugin to use. Supported values:
  #   - DecentHolograms
  #   - FancyHologram
  #   - HolographicDisplays
  # If the chosen plugin isn't installed (or this is left blank), NextGens will
  # automatically fall back to any supported hologram plugin it can find.
  type: DecentHolograms

The look of the corruption hologram itself is configured in the corruption section.

corruption:
  # Should we spawn hologram to indicate the generator is broken?
  hologram:
    enabled: true
    height: 1.85
    lines:
      - '&c&lBROKEN'
      - '&7(Shift + Right Click)'
OptionDescription
corruption.hologram.enabledTurn the corruption holograms on or off
corruption.hologram.heightHow high above the generator the hologram floats, in blocks
corruption.hologram.linesThe hologram text, supports color codes and hex colors

FancyHolograms options

These options only apply when FancyHolograms is the active provider, they are ignored by the other plugins.

holograms:
  fancyholograms:
    # How the hologram rotates to face players.
    # Options: CENTER, VERTICAL, HORIZONTAL, FIXED
    billboard: CENTER
    # Size multiplier of the hologram (1.0 = normal size).
    scale: 1.0
    # Text alignment. Options: LEFT, CENTER, RIGHT
    text-alignment: CENTER
    # Should the text cast a shadow?
    text-shadow: false
    # Should the hologram be visible through solid blocks?
    see-through: false
    # Background color behind the text.
    background: transparent
OptionValuesDescription
billboardCENTER, VERTICAL, HORIZONTAL, FIXEDHow the hologram rotates towards the player
scaleAny number above 0Size multiplier, 1.0 is the normal size
text-alignmentLEFT, CENTER, RIGHTAlignment of the text lines
text-shadowtrue / falseWhether the text casts a shadow
see-throughtrue / falseWhether the hologram is visible through blocks
backgroundtransparent, default, or a hex color like #FF5555The background behind the text

Information

Invalid values don't break anything, NextGens logs a warning and falls back to the default (CENTER for billboard and alignment, 1.0 for scale, and FancyHolograms' own background).

How the provider is picked

On startup NextGens registers every supported hologram plugin it finds, then chooses one:

  1. If holograms.type is set and that plugin is installed, it is used.
  2. If it isn't installed (or the option is left blank), NextGens falls back to the first supported hologram plugin that is installed, and logs which one it picked.
  3. If nothing supported is installed, generator holograms are disabled with a warning in the console.

So if you see No supported hologram plugin found! Generator holograms will be disabled. in your console, install one of the three plugins above. And if you see Configured hologram provider '...' is not available, check the spelling of holograms.type against the table at the top of this page.

Changing holograms.type requires a restart, hologram providers are only resolved once when the plugin enables.

Developers

NextGens' hologram system is open, so your own plugin can provide the holograms instead of the three built-in options. See Developer API for HologramManager#register and the HologramProvider interface.

If you need any help please join our Discord Server.