Page Commands
All page management commands are under /mh page. Pages are containers for lines — each hologram has at least one page.
Managing Pages
add
Adds a new page to the hologram. Optionally provide content for the first line.
Examples:
insert
Inserts a new page at the specified position, shifting existing pages.
remove
Removes a page. Every hologram must have at least one page, so you cannot remove the last page.
swap
Swaps two pages.
switch
Switches the visible page for yourself or a specific player.
Examples:
Page Info
info
Displays all lines on a page with interactive controls:
- [i] — View line info
- Up/Down arrows — Swap line with adjacent line
- X — Remove line
This is the primary way to manage lines on a page. After any line edit command, this view is automatically re-displayed.
Click Actions
Actions are per-page and trigger when a player clicks the hologram while viewing that page.
addaction
Adds a click action to a page.
| Parameter | Values |
|---|---|
clickType |
LEFT, RIGHT, SHIFT_LEFT, SHIFT_RIGHT |
action |
Action string (see Click Actions) |
Examples:
/mh page addaction myHolo 1 RIGHT MESSAGE:&aYou clicked!
/mh page addaction myHolo 1 RIGHT NEXT_PAGE
/mh page addaction myHolo 1 LEFT COMMAND:/spawn
/mh page addaction myHolo 1 SHIFT_RIGHT TELEPORT:minecraft:overworld:0:65:0
removeaction
Removes a specific action by its index (1-indexed). Use the actions command to see indices.
clearactions
Removes all actions of a specific click type from a page.
actions
Lists all actions for a specific click type on a page, showing their index and content.
Example output: