TheNextLvlTheNextLvl

Paged Lines

Manage paged hologram lines with multiple pages of content

GitHub Edit on GitHub

Paged Lines

Paged lines allow a single hologram line to cycle through multiple pages of content. Each page can display different text, blocks, items, or entities, and pages can be configured to automatically cycle at a set interval.

Managing Pages

Add a Page

Adds a new page to the end of a paged line.
Usage: /hologram page add <hologram> <line> block|entity|item|text <value>

Examples:

# Add a text page
/hologram page add my-hologram 1 text Page One

# Add a block page
/hologram page add my-hologram 1 block diamond_block

# Add an item page
/hologram page add my-hologram 1 item golden_apple

# Add an entity page
/hologram page add my-hologram 1 entity minecraft:pig

Insert a Page

Inserts a page at a specific position in a paged line.
Usage: /hologram page insert <hologram> <line> <page> block|entity|item|text <value>

Examples:

# Insert a text page at position 1
/hologram page insert my-hologram 1 1 text New First Page

# Insert a block page at position 2
/hologram page insert my-hologram 1 2 block gold_block

Remove a Page

Removes a page from a paged line.
Usage: /hologram page remove <hologram> <line> <page>

Examples:

# Remove page 1
/hologram page remove my-hologram 1 1

# Remove page 3
/hologram page remove my-hologram 1 3

Clear All Pages

Removes all pages from a paged line.
Usage: /hologram page clear <hologram> <line>

Examples:

# Clear all pages from line 1
/hologram page clear my-hologram 1

Move a Page

Moves a page from one position to another.
Usage: /hologram page move <hologram> <line> <from> <to>

Examples:

# Move page 1 to position 3
/hologram page move my-hologram 1 1 3

# Move page 4 to position 2
/hologram page move my-hologram 1 4 2

Swap Pages

Swaps the positions of two pages.
Usage: /hologram page swap <hologram> <line> <first> <second>

Examples:

# Swap pages 1 and 3
/hologram page swap my-hologram 1 1 3

# Swap pages 2 and 5
/hologram page swap my-hologram 1 2 5

List Pages

Lists all pages of a paged line.
Usage: /hologram page list <hologram> <line>

Examples:

# List all pages of line 1
/hologram page list my-hologram 1

Page Settings

Interval

Sets the automatic page cycle interval.
Usage: /hologram page settings <hologram> <line> interval <interval>

Examples:

# Set page cycle interval to 5 seconds
/hologram page settings my-hologram 1 interval 5s

# Set page cycle interval to 1 minute
/hologram page settings my-hologram 1 interval 60s

Pause

Pauses or resumes automatic page cycling.
Usage: /hologram page settings <hologram> <line> pause <paused>

Examples:

# Pause page cycling
/hologram page settings my-hologram 1 pause true

# Resume page cycling
/hologram page settings my-hologram 1 pause false

Random

Toggles random page order instead of sequential cycling.
Usage: /hologram page settings <hologram> <line> random <random>

Examples:

# Enable random page order
/hologram page settings my-hologram 1 random true

# Use sequential page order
/hologram page settings my-hologram 1 random false

Page Editing

Pages support all the same edit commands as regular lines.
Usage: /hologram page edit <hologram> <line> <page> <property> <value>

Examples:

# Set the alignment of page 1
/hologram page edit my-hologram 1 1 alignment center

# Set the scale of page 2
/hologram page edit my-hologram 1 2 scale 2

# Enable glowing on page 1
/hologram page edit my-hologram 1 1 glowing true

# Set billboard mode on page 3
/hologram page edit my-hologram 1 3 billboard center

See Editing Lines for the full list of edit properties.

Page Actions

Pages support the same click actions as regular lines.
Usage: /hologram page action add <hologram> <line> <page> <action> <click-types> <type> <args>

Examples:

# Add a command action to page 1
/hologram page action add my-hologram 1 1 go-spawn any-click run-command spawn

# Add a message action to page 2
/hologram page action add my-hologram 1 2 greet right-click send-message Hello!

Page action management commands follow the same pattern:

# Set action chance on page 1
/hologram page action chance my-hologram 1 1 go-spawn 0.5

# Set action cooldown on page 2
/hologram page action cooldown my-hologram 1 2 greet 30s

# List actions on page 1
/hologram page action list my-hologram 1 1

# Remove action from page 1
/hologram page action remove my-hologram 1 1 go-spawn

See Click Actions for the full list of action types and management commands.

Page View Permissions

You can restrict the visibility of individual pages.
Usage: /hologram page view-permission <hologram> <line> <page> [<permission> | remove]

Examples:

# Set a view permission on page 1
/hologram page view-permission my-hologram 1 1 server.vip

# Remove the view permission from page 2
/hologram page view-permission my-hologram 1 2 remove

# View current permission on page 1
/hologram page view-permission my-hologram 1 1

Last updated on

On this page