-
Notifications
You must be signed in to change notification settings - Fork 1
Utilities: Holograms
Currently holograms are just packet blobs sent to 1.8 clients, to support our existing functionality in spawn tutorial, team respawn and some Limbo games.
To create a basic hologram:
/holo set "<text>"
It will create a hologram where you stand. The <text> parameter supports formatting codes (&a, &o, etc). You can also make multiple lines like this:
/holo set "First line<N>Second line"
Sometimes it’s necessary to name a hologram, to edit it later with Command Blocks or other plugins. In that case, use additional parameter:
/holo set <id> "<text>"
Example: /holo set spawn1 "&aWelcome to Flatcore!"
If a hologram spawn1 doesn’t exist, it will be created. If it exists however, you will overwrite its text with new value.
The /holo set command writes data to disk.
If you just want to update a hologram without saving the data permanently, you can use:
/holo update <id> "<text>"
The <text> parameter supports multiple lines, example: /holo update spawn1 "&aWelcome to Flatcore<N>&aHardcore Survival Server"
You can also update just one line:
/holo updateline <id> <line> "<text>"
Moreover, if you pass empty string to <text> it will hide that particular line.
/holo updateline <id> <line> ""
Both commands require the <id> parameter.
To remove the nearest hologram:
/holo remove
To remove a specific hologram:
/holo remove <id>
You can hide a hologram with following:
/holo hide <id>
If you want the state to persist in YAML, use:
/holo hide <id> p
Same with showing, just replace the parameter with show:
/holo show <id>
/holo show <id> p