Skip to content

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

/mh page add <hologram> [content]

Adds a new page at the end of the hologram. Its first line is the given content, or the config defaultText when omitted.

Examples:

/mh page add welcome
/mh page add welcome &bWelcome to page 2!

insert

/mh page insert <hologram> <page> <content>

Inserts a new page at the specified position, shifting existing pages. A position past the last page appends the page at the end.

remove

/mh page remove <hologram> <page>

Removes a page. Every hologram must have at least one page, so you cannot remove the only page.

swap

/mh page swap <hologram> <page1> <page2>

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

/mh page switch <hologram> <page> [player]

Switches the visible page for yourself or a specific online player.

Examples:

/mh page switch welcome 2
/mh page switch welcome 1 Steve

Page Info

info

/mh page info <hologram> <page>

Displays all lines on a page with interactive controls:

  • Line text - click to put a /mh line set command with the current content in your chat box
  • Up/Down arrows - swap the line with the line above or below
  • ✖ - put the /mh line remove command in your chat box
  • ℹ - view line info
  • [+ Add Line] - put a /mh line add command 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

/mh page addaction <hologram> <page> <clickType> <action>

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

/mh page removeaction <hologram> <page> <clickType> <index>

Removes a specific action by its index (1-indexed, the number actions shows). An index past the last action is refused.

clearactions

/mh page clearactions <hologram> <page> <clickType>

Removes all actions of a specific click type from a page.

actions

/mh page actions <hologram> <page> <clickType>

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:

--- Actions for RIGHT click on page 1 ---
  1: MESSAGE:&aYou clicked!
  2: SOUND:minecraft:entity.experience_orb.pickup:1.0:1.0
  3: NEXT_PAGE