Skip to content

Multi-Page Holograms

Holograms can have multiple pages. Only one page is visible to each player at a time, and different players can be on different pages simultaneously.

Adding Pages

/mh page add myHolo
/mh page add myHolo &bThis is the first line of the new page

Players navigate between pages using click actions. Set up navigation like this:

Simple Forward/Back

/mh page addaction myHolo 1 RIGHT NEXT_PAGE
/mh page addaction myHolo 2 RIGHT NEXT_PAGE
/mh page addaction myHolo 2 LEFT PREV_PAGE
/mh page addaction myHolo 3 LEFT PREV_PAGE

Cycle Through Pages

NEXT_PAGE and PREV_PAGE automatically wrap around — going next on the last page returns to page 1, and going previous on page 1 goes to the last page.

/mh page addaction myHolo 1 RIGHT NEXT_PAGE
/mh page addaction myHolo 1 LEFT PREV_PAGE

This single setup works for any number of pages.

Jump to Specific Page

/mh page addaction myHolo 1 RIGHT PAGE:3

Jumps directly to page 3 regardless of current page.

Page Indicators

Use the {page} and {pages} placeholders to show which page the player is viewing:

/mh line add myHolo 1 &7Page {page}/{pages}

This shows "Page 1/3" on the first page, "Page 2/3" on the second, etc.

Info

The {page} and {pages} placeholders are special — they resolve based on the viewer's current page, not a global value. Each player sees their own page number.

Per-Player Pages

Each player tracks their own current page independently. This means:

  • Player A can be on page 1 while Player B is on page 3
  • Clicking NEXT_PAGE only affects the clicking player
  • Page state resets when a player leaves the hologram's display range and returns

Admin Page Switching

Admins can force a player to a specific page:

/mh page switch myHolo 2 Steve

Or switch their own view:

/mh page switch myHolo 2

Page Management

Viewing Page Contents

/mh page info myHolo 1

Shows all lines on the page with interactive edit controls.

Reordering Pages

/mh page swap myHolo 1 3

Swaps page 1 and page 3 (all lines, actions, and viewer states are updated).

Removing Pages

/mh page remove myHolo 2

Removes page 2. Cannot remove the last page — every hologram must have at least one.

Example: Info Board

A three-page info board with navigation:

# Create hologram
/mh hologram create info_board

# Page 1 - Welcome
/mh line set info_board 1 1 &6=== Server Info ===
/mh line add info_board 1 &fWelcome to our server!
/mh line add info_board 1 &7Right-click for more info
/mh line add info_board 1 &8Page {page}/{pages}

# Page 2 - Rules
/mh page add info_board &6=== Rules ===
/mh line add info_board 2 &f1. Be respectful
/mh line add info_board 2 &f2. No griefing
/mh line add info_board 2 &f3. Have fun!
/mh line add info_board 2 &8Page {page}/{pages}

# Page 3 - Links
/mh page add info_board &6=== Links ===
/mh line add info_board 3 &fDiscord: discord.gg/example
/mh line add info_board 3 &fWebsite: example.com
/mh line add info_board 3 &8Page {page}/{pages}

# Navigation on all pages
/mh page addaction info_board 1 RIGHT NEXT_PAGE
/mh page addaction info_board 1 LEFT PREV_PAGE
/mh page addaction info_board 2 RIGHT NEXT_PAGE
/mh page addaction info_board 2 LEFT PREV_PAGE
/mh page addaction info_board 3 RIGHT NEXT_PAGE
/mh page addaction info_board 3 LEFT PREV_PAGE