HyperScript
Docs

← All of the Docs HyperHolograms

Asking and clicking HyperHolograms

expressionall holosHyperHolograms

A list of the names of every hologram

for each {_name} in all holos:
    send "&e%{_name}% &7at %location of holo {_name}%"
expressionholo exists <name>HyperHolograms

Whether there is one of that name

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

Where it is, as a location

send "&e%{_name}% &7at %location of holo {_name}%"
expressionlines of holo <name>HyperHolograms

A list of the lines of its first page

set {_lines} to lines of holo "hub"
expressionpages of holo <name>HyperHolograms

How many pages it has

if pages of holo "help" < 2:
    add page to holo "help" with lines "&6&lCommands", "&f/spawn &7- go to spawn", "&f/shop &7- open the shop"
structureon holo click "<name>":HyperHolograms

Runs when a player clicks that hologram. Without a name: any hologram

on holo click "daily":
    if {_click} is "right":
        execute player command "daily"
Guide and examples
command /holos:
    permission: "holo.manage"
    trigger:
        for each {_name} in all holos:
            send "&e%{_name}% &7at %location of holo {_name}%"

on holo click "daily":
    if {_click} is "right":
        execute player command "daily"

on holo click:
    log "%player.name% clicked the hologram %{_holo}% (%{_click}%)"
SyntaxResult
all holosA list of the names of every hologram
holo exists <name>Whether there is one of that name
location of holo <name>Where it is, as a location
lines of holo <name>A list of the lines of its first page
pages of holo <name>How many pages it has
on holo click "<name>":Runs when a player clicks that hologram. Without a name: any hologram
  • Inside the click block player is who clicked, {_holo} the hologram's name, {_click} one of left, right, shift left and shift right, and {_page} the page they were looking at.