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 at the end of the hologram. Its first line is the given content, or the config defaultText when omitted.
Examples:
insert
Inserts a new page at the specified position, shifting existing pages. A position past the last page appends the page at the end.
remove
Removes a page. Every hologram must have at least one page, so you cannot remove the only page.
swap
Swaps two pages, with their lines and actions.
Players who are looking at a hologram stay on the page they were viewing when pages are inserted, removed or swapped; a player on a removed page moves to the page that takes its place.
switch
Switches the visible page for yourself or a specific online player.
Examples:
Page Info
info
Displays all lines on a page with interactive controls:
- Line text - click to put a
/mh line setcommand with the current content in your chat box - Up/Down arrows - swap the line with the line above or below
- ✖ - put the
/mh line removecommand in your chat box - ℹ - view line info
- [+ Add Line] - put a
/mh line addcommand in your chat box - Unknown click types from the file, if any (they never run; see Click Types)
This is the primary way to manage lines on a page. After most line edit commands, this view is shown again.
Click Actions
Actions are per-page and trigger when a player clicks the hologram while viewing that page.
addaction
Adds a click action to the end of a page's list for that click type. An unknown action type is refused with a list of the known types.
| 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, the number actions shows). An index past the last action is refused.
clearactions
Removes all actions of a specific click type from a page.
actions
Lists all actions for a specific click type on a page with their 1-based index. Click an entry to put its removeaction command in your chat box.
Example output: