Holograms

Sep 30, 2020
Holograms
  • [​IMG] [​IMG]

    This section provides guides to configure holograms at your model.



    Introduction:
    Holograms are texts displayed on a dark rectangular background. They rotate with the player's camera to increase their readability.

    Take a look at an example pattern of several holograms in one model.
    Code (YAML):
    holograms:
        '0'
    :
            text
    :
                - '&f&m       &f&l Your Statistics &f&m       '
                - '&f&m       &8&l Y&f&lour Statistics &f&m       '
                - '&f&m       &a&l Y&8&lo&f&lur Statistics &f&m       '
                - '&f&m       &a&l Yo&8&lu&f&lr Statistics &f&m       '
                - '&f&m       &a&l You&8&lr&f&l Statistics &f&m       '
                - '&f&m       &a&l Your&8&l &f&lStatistics &f&m       '
                - '&f&m       &a&l Your &8&lS&f&ltatistics &f&m       '
                - '&f&m       &a&l Your S&8&lt&f&latistics &f&m       '
                - '&f&m       &a&l Your St&8&la&f&ltistics &f&m       '
                - '&f&m       &a&l Your Sta&8&lt&f&listics &f&m       '
                - '&f&m       &a&l Your Stat&8&li&f&lstics &f&m       '
                - '&f&m       &a&l Your Stati&8&ls&f&ltics &f&m       '
                - '&f&m       &a&l Your Statis&8&lt&f&lics &f&m       '
                - '&f&m       &a&l Your Statist&8&li&f&lcs &f&m       '
                - '&f&m       &a&l Your Statisti&8&lc&f&ls &f&m       '
                - '&f&m       &a&l Your Statistic&8&ls &f&m       '
                - '&f&m       &a&l Your Statistics &f&m       '
                - '&f&m       &a&l Your Statistics &f&m       '
                - '&f&m       &a&l Your Statistics &f&m       '
                - '&f&m       &a&l Your Statistics &f&m       '
                - '&f&m       &a&l Your Statistics &f&m       '
                - '&f&m       &a&l Your Statistics &f&m       '
                - '&f&m       &a&l Your Statistics &f&m       '
                - '&f&m       &a&l Your Statistics &f&m       '
                - '&f&m       &a&l Your Statistics &f&m       '
                - '&f&m       &a&l Your Statistics &f&m       '
                - '&f&m       &f&l Your Statistics &f&m       '
                - '&f&m       &f&l Your Statistics &f&m       '
                - '&f&m       &f&l Your Statistics &f&m       '
                - '&f&m       &a&l Your Statistics &f&m       '
                - '&f&m       &a&l Your Statistics &f&m       '
                - '&f&m       &a&l Your Statistics &f&m       '
                - '&f&m       &f&l Your Statistics &f&m       '
                - '&f&m       &f&l Your Statistics &f&m       '
                - '&f&m       &f&l Your Statistics &f&m       '
            timing
    : 2
            position
    :
                x
    : 0
                y
    : 1.85
                z
    : 0
        '1'
    :
            text
    :
                - '$table[140][&f▶ &8Name:, 5][$right&f%player_name% &f◀, 132]'
                - '$table[140][&a  Name:, 5][$right&f%player_name%  , 132]'
                - '$table[140][&a  Name:, 5][$right&f%player_name%  , 132]'
                - '$table[140][&a  Name:, 5][$right&f%player_name%  , 132]'
                - '$table[140][&a  Name:, 5][$right&f%player_name%  , 132]'
                - '$table[140][&a  Name:, 5][$right&f%player_name%  , 132]'
                - '$table[140][&a  Name:, 5][$right&f%player_name%  , 132]'
            timing
    : 10
            position
    :
                x
    : 0
                y
    : 1.55
                z
    : 0
        '2'
    :
            text
    :
                - '$table[140][&a  Total Exp:, 5][$right&f%player_total_exp%  , 132]'
                - '$table[140][&f▶ &8Total Exp:, 5][$right&f%player_total_exp% &f◀, 132]'
                - '$table[140][&a  Total Exp:, 5][$right&f%player_total_exp%  , 132]'
                - '$table[140][&a  Total Exp:, 5][$right&f%player_total_exp%  , 132]'
                - '$table[140][&a  Total Exp:, 5][$right&f%player_total_exp%  , 132]'
                - '$table[140][&a  Total Exp:, 5][$right&f%player_total_exp%  , 132]'
                - '$table[140][&a  Total Exp:, 5][$right&f%player_total_exp%  , 132]'
            timing
    : 10
            position
    :
                x
    : 0
                y
    : 1.30
                z
    : 0
        '3'
    :
            text
    :
                - '$table[140][&a  Total Deaths:, 5][$right&f%statistic_deaths%  , 132]'
                - '$table[140][&a  Total Deaths:, 5][$right&f%statistic_deaths%  , 132]'
                - '$table[140][&f▶ &8Total Deaths:, 5][$right&f%statistic_deaths% &f◀, 132]'
                - '$table[140][&a  Total Deaths:, 5][$right&f%statistic_deaths%  , 132]'
                - '$table[140][&a  Total Deaths:, 5][$right&f%statistic_deaths%  , 132]'
                - '$table[140][&a  Total Deaths:, 5][$right&f%statistic_deaths%  , 132]'
                - '$table[140][&a  Total Deaths:, 5][$right&f%statistic_deaths%  , 132]'
            timing
    : 10
            position
    :
                x
    : 0
                y
    : 1.05
                z
    : 0
        '4'
    :
            text
    :
                - '$table[140][&a  Total Kills:, 5][$right&f%statistic_player_kills%  , 132]'
                - '$table[140][&a  Total Kills:, 5][$right&f%statistic_player_kills%  , 132]'
                - '$table[140][&a  Total Kills:, 5][$right&f%statistic_player_kills%  , 132]'
                - '$table[140][&f▶ &8Total Kills:, 5][$right&f%statistic_player_kills% &f◀, 132]'
                - '$table[140][&a  Total Kills:, 5][$right&f%statistic_player_kills%  , 132]'
                - '$table[140][&a  Total Kills:, 5][$right&f%statistic_player_kills%  , 132]'
                - '$table[140][&a  Total Kills:, 5][$right&f%statistic_player_kills%  , 132]'
            timing
    : 10
            position
    :
                x
    : 0
                y
    : 0.80
                z
    : 0
        '5'
    :
            text
    :
                - '$table[140][&a  Health:, 5][$right&f%player_health_rounded%  , 132]'
                - '$table[140][&a  Health:, 5][$right&f%player_health_rounded%  , 132]'
                - '$table[140][&a  Health:, 5][$right&f%player_health_rounded%  , 132]'
                - '$table[140][&a  Health:, 5][$right&f%player_health_rounded%  , 132]'
                - '$table[140][&f▶ &8Health:, 5][$right&f%player_health_rounded% &f◀, 132]'
                - '$table[140][&a  Health:, 5][$right&f%player_health_rounded%  , 132]'
                - '$table[140][&a  Health:, 5][$right&f%player_health_rounded%  , 132]'
            timing
    : 10
            position
    :
                x
    : 0
                y
    : 0.55
                z
    : 0
        '6'
    :
            text
    :
                - '$table[140][&a  Ping:, 5][$right&f%player_ping%  , 132]'
                - '$table[140][&a  Ping:, 5][$right&f%player_ping%  , 132]'
                - '$table[140][&a  Ping:, 5][$right&f%player_ping%  , 132]'
                - '$table[140][&a  Ping:, 5][$right&f%player_ping%  , 132]'
                - '$table[140][&a  Ping:, 5][$right&f%player_ping%  , 132]'
                - '$table[140][&f▶ &8Ping:, 5][$right&f%player_ping% &f◀, 132]'
                - '$table[140][&a  Ping:, 5][$right&f%player_ping%  , 132]'
            timing
    : 10
            position
    :
                x
    : 0
                y
    : 0.30
                z
    : 0
        '7'
    :
            text
    : '&f&m                                       '
            position
    :
                x
    : 0
                y
    : 0
                z
    : 0


    text:

    [Required]
    Defines the content of the hologram displayed as a text.
    Code (YAML):
    text:
       - '&d» &f &d «'
        - '&d» &fC &d «'
        - '&d  &fCl &d  '
        - '&d» &fCli &d «'
        - '&d  &fClic &d  '
        - '&d» &fClick &d «'
        - '&d  &fClick t &d  '
        - '&d» &fClick to &d «'
        - '&d  &fClick to o &d  '
        - '&d» &fClick to op &d «'
        - '&d  &fClick to ope &d  '
        - '&d» &fClick to open &d «'
        - '&d  &fClick to open! &d  '
        - '&d» &fClick to open! &d «'
        - '&d  &fClick to open! &d  '
        - '&d» &fClick to open! &d «'
        - '&d  &fClick to open! &d  '
        - '&d» &fClick to open! &d «'
        - '&d  &fClick to open! &d  '
        - '&d» &fClick to open &d «'
        - '&d  &fClick to ope &d  '
        - '&d» &fClick to op &d «'
        - '&d  &fClick to o &d  '
        - '&d» &fClick to &d «'
        - '&d  &fClick t &d  '
        - '&d» &fClick &d «'
        - '&d  &fClic &d  '
        - '&d» &fCli &d «'
        - '&d  &fCl &d  '
        - '&d» &fC &d «'
        - '&d» &f &d «'


    timing:

    [Not Required]
    Defines how often the text should be refreshed to the next frame.
    Code (YAML):
    timing: 2
    With this option you are able to synchronize entire model.


    position:

    [Required]
    Defines the position of the hologram. You can move it in any direction you want.
    Code (YAML):
    position:
        x
    : 0
        y
    : 0.26
        z
    : 0
    Don't forget that the holograms rotate with the player's camera, the cubes should always be at the center of the content.


    [​IMG]


    A powerful tool that allows you to expand the basic functions of displaying holograms in Minecraft.



    This feature allows you to format holograms in several different ways.
    Take a look at one of the available options:
    [​IMG]
    As you can see the text is stuck to a given pixel.
    Additionally, the resource allows you to align the text.​

    Let's look at the raw structure of the table:
    Code (YAML):
    - '$table[WIDTH][ALGIN_VALUE TEXT_VALUE, WIDTH_PIXEL][ALGIN_VALUE TEXT_VALUE, WIDTH_PIXEL]'
    WIDTH - Maximum width of the displayed rectangle. The value is given as a number.
    ALGIN_VALUE - This value is not required for the table to function properly. Left alignment is the default value.
    • $left
    • $center
    • $right
    TEXT_VALUE - Content to display.
    WIDTH_PIXEL - Location of the text in the table. The value cannot exceed the table width. The value is given as a number.

    It is worth mentioning that the amount of table content is not limited and may be more than two.

    Example:
    Code (YAML):
    text:
        - '$table[140][&f▶ &8Name:, 5][$right&f%player_name% &f◀, 132]'
        - '$table[140][&a  Name:, 5][$right&f%player_name%  , 132]'
        - '$table[140][&a  Name:, 5][$right&f%player_name%  , 132]'
        - '$table[140][&a  Name:, 5][$right&f%player_name%  , 132]'
        - '$table[140][&a  Name:, 5][$right&f%player_name%  , 132]'
        - '$table[140][&a  Name:, 5][$right&f%player_name%  , 132]'
  • Loading...
  • Loading...