HyperScript
Docs

← All of the Docs HyperHolograms

Making and changing HyperHolograms

effectcreate holo <name> at <location> showing top <n> by {<variable>}HyperHolograms

A list of the players who have the most of a variable of their own, such as {coins}, best first, up to 25. It is worked out again every half minute. titled <text> puts a line over it. Make it in on load:, since it is the script that keeps it up to date

create holo "richest" at player's location showing top 10 by {coins} titled "&6&lRichest players"
effectcreate holo <name> at <location> with lines <text>, <text>HyperHolograms

Make a hologram. With a name that is taken, it is moved there and given the new lines

create holo "crown" at player's location with lines "&6&lKING"
effectdelete holo <name>HyperHolograms

Remove it for good

delete holo "hub"
expressionmove holo <name> to <location>HyperHolograms

Put it somewhere else

move holo "hub" to player's location
effectset line <n> of holo <name> to <text>HyperHolograms

Rewrite one line; the line after the last one is added

set line 2 of holo "hub" to "&7Players online: %server.online_players%"
effectadd line <text> to holo <name>HyperHolograms

Add a line at the bottom

add line "&e%arg.1%" to holo "hub"
effectremove line <n> of holo <name>HyperHolograms

Take one line out

remove line 3 of holo "hub"
effectmake holo <name> follow <who>HyperHolograms

The hologram stays over that player's head as they move, until told otherwise. Add <n> blocks above to say how high over their feet: make holo "tag" follow player 3 blocks above

make holo "crown" follow arg.1 3 blocks above
effectstop holo <name> followingHyperHolograms

It stays where it is

stop holo "crown" following
Guide and examples
command /sethub:
    permission: "holo.manage"
    players only: true
    trigger:
        create holo "hub" at player's location with lines "&b&lWelcome", "&7Players online: %server.online_players%"
        send "&aThe hub hologram is here now."

every 30 seconds:
    if holo exists "hub":
        set line 2 of holo "hub" to "&7Players online: %server.online_players%"

command /hubnews <text>:
    permission: "holo.manage"
    trigger:
        add line "&e%arg.1%" to holo "hub"
        set {_lines} to lines of holo "hub"
        send "&aAdded. It has %size of {_lines}% lines now."

command /hubclear:
    permission: "holo.manage"
    trigger:
        remove line 3 of holo "hub"

command /movehub:
    permission: "holo.manage"
    players only: true
    trigger:
        move holo "hub" to player's location

command /delhub:
    permission: "holo.manage"
    trigger:
        delete holo "hub"
SyntaxEffect
create holo <name> at <location> showing top <n> by {<variable>}A list of the players who have the most of a variable of their own, such as {coins}, best first, up to 25. It is worked out again every half minute. titled <text> puts a line over it. Make it in on load:, since it is the script that keeps it up to date
create holo <name> at <location> with lines <text>, <text>Make a hologram. With a name that is taken, it is moved there and given the new lines
delete holo <name>Remove it for good
move holo <name> to <location>Put it somewhere else
set line <n> of holo <name> to <text>Rewrite one line; the line after the last one is added
add line <text> to holo <name>Add a line at the bottom
remove line <n> of holo <name>Take one line out
make holo <name> follow <who>The hologram stays over that player's head as they move, until told otherwise. Add <n> blocks above to say how high over their feet: make holo "tag" follow player 3 blocks above
stop holo <name> followingIt stays where it is
command /crown <player>:
    permission: "crown.give"
    trigger:
        create holo "crown" at player's location with lines "&6&lKING"
        make holo "crown" follow arg.1 3 blocks above
        send "&6%arg.1% wears the crown."

command /uncrown:
    permission: "crown.give"
    trigger:
        stop holo "crown" following
        delete holo "crown"
  • A name is letters, digits, - and _.
  • A hologram that follows a player goes by one name, so each player needs a hologram of their own: name it after them, as in create holo "tag-%player.name%" .... While the player is offline it waits where it was; following is not remembered over a restart, so start it again in on player join:.
  • Lines are DecentHolograms' own, so everything it understands works in them: colours, PlaceholderAPI placeholders, and #ICON: diamond for a floating item.
  • Making one in on load: is safe: making it again only moves it.