Managing Lines
Add, insert, remove, move, and swap hologram lines
Edit on GitHubManaging Lines
Hologram lines are the building blocks of your holograms. Each line can display text, blocks, items, entities, or paged content.
Commands
Add a Line
Adds a new line to the end of a hologram.
Usage: /hologram line add <hologram> block|entity|item|text|paged <value>
Examples:
# Add a text line
/hologram line add my-hologram text Hello World!
# Add a block line
/hologram line add my-hologram block diamond_block
# Add an item line
/hologram line add my-hologram item diamond_sword
# Add an entity line
/hologram line add my-hologram entity minecraft:pig
# Add an empty paged line
/hologram line add my-hologram pagedInsert a Line
Inserts a new line at a specific position in the hologram.
Usage: /hologram line insert <hologram> <line> block|entity|item|text|paged <value>
Examples:
# Insert a text line at position 1
/hologram line insert my-hologram 1 text New First Line
# Insert a block line at position 3
/hologram line insert my-hologram 3 block gold_block
# Insert an item line at position 2
/hologram line insert my-hologram 2 item emeraldRemove a Line
Removes a line from the hologram.
Usage: /hologram line remove <hologram> <line>
Examples:
# Remove line 1
/hologram line remove my-hologram 1
# Remove line 3
/hologram line remove my-hologram 3Removing a line is permanent and cannot be undone.
All line settings, actions, and pages will be lost.
Move a Line
Moves a line from one position to another within the hologram.
Usage: /hologram line move <hologram> <from> <to>
Examples:
# Move line 1 to position 3
/hologram line move my-hologram 1 3
# Move line 5 to position 2
/hologram line move my-hologram 5 2Swap Lines
Swaps the positions of two lines in the hologram.
Usage: /hologram line swap <hologram> <first> <second>
Examples:
# Swap lines 1 and 3
/hologram line swap my-hologram 1 3
# Swap lines 2 and 5
/hologram line swap my-hologram 2 5Set Line Type
Changes the type and content of an existing line.
Usage: /hologram line edit <hologram> <line> set block|entity|item|text|paged <value>
Examples:
# Change a line to display a block
/hologram line edit my-hologram 1 set block emerald_block
# Change a line to display text
/hologram line edit my-hologram 2 set text Updated Text
# Change a line to display an item
/hologram line edit my-hologram 1 set item golden_apple
# Change a line to a paged line
/hologram line edit my-hologram 3 set pagedLast updated on