Skip to content

Line Commands

All line management commands are under /mh line. Lines are the individual content entries within a hologram page.

Adding & Removing Lines

add

/mh line add <hologram> <page> [content]

Appends a new line to the end of the specified page.

Parameter Description
hologram Hologram name
page Page number (1-indexed)
content Line content (optional, defaults to config defaultText)

Examples:

/mh line add welcome 1 &aHello World
/mh line add welcome 1 #ICON:DIAMOND
/mh line add welcome 1 #HEAD:Notch
/mh line add welcome 1 #ENTITY:minecraft:pig
/mh line add welcome 1 #PLAYER:Notch

insert

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

Inserts a new line at the specified position, pushing existing lines down.

Example:

/mh line insert welcome 1 1 &6=== Title ===

remove

/mh line remove <hologram> <page> <line>

Removes a line from the page. Remaining lines shift up to fill the gap.

set

/mh line set <hologram> <page> <line> <content>

Replaces the content of an existing line.

Example:

/mh line set welcome 1 2 &7New content here

swap

/mh line swap <hologram> <page> <line1> <line2>

Swaps the positions of two lines on the same page.

Line Properties

height

/mh line height <hologram> <page> <line> <height>

Sets the vertical spacing for a line. Range: 0.0-5.0.

Line Type Default Height
Text 0.3
Icon 0.6
Head 0.75
Small Head 0.6
Entity 1.0
Player 2.0

Setting a line's height affects the spacing below that line (or above, if downOrigin is true). A height of 0 makes the line overlap with the next.

Example:

/mh line height welcome 1 1 0.5

offsetx / offsetz

/mh line offsetx <hologram> <page> <line> <offset>
/mh line offsetz <hologram> <page> <line> <offset>

Sets a horizontal offset for a line relative to the hologram's center. Range: -10.0 to 10.0.

Use this to create side-by-side layouts or shift individual lines.

Example:

/mh line offsetx welcome 1 2 1.5

setfacing

/mh line setfacing <hologram> <page> <line> <angle>

Sets the rotation angle for a specific line, overriding the hologram-level facing. Angle in degrees (0-360).

Set to -1 to inherit the hologram's facing.

setscale

/mh line setscale <hologram> <page> <line> <scale>

Sets the scale of an entity or player line. Range: 0.01-64.0. Works for #ENTITY: and #PLAYER: lines.

Warning

Entity/NPC scaling requires the entityScaleAttribute to be configured in config.json. This attribute must be provided by an installed mod (e.g., Vault Hunters provides the_vault:generic.size_scale). If the attribute is not configured or the providing mod is not installed, this command will fail.

setpermission

/mh line setpermission <hologram> <page> <line> [permission]

Sets a permission required to see this specific line. Other lines on the same page remain visible.

Examples:

/mh line setpermission welcome 1 3 my.server.admin
/mh line setpermission welcome 1 3

Omitting the permission argument clears the requirement.

addflag / removeflag

/mh line addflag <hologram> <page> <line> <flag>
/mh line removeflag <hologram> <page> <line> <flag>

Add or remove flags on a specific line.

Player Line Options

These commands only apply to #PLAYER: lines and will return an error on other line types.

forcedlook

/mh line forcedlook <hologram> <page> <line> <true|false>

Enables or disables Taterzens' FORCED_LOOK movement mode for a player line. When enabled, the NPC continuously rotates to face the nearest player.

/mh line forcedlook myHolo 1 1 true
/mh line forcedlook myHolo 1 1 false

When disabled (default), the NPC stands still facing its spawn direction. Changes apply immediately to a live NPC without requiring a restart.

Information

info

/mh line info <hologram> <page> <line>

Displays all properties of a line in chat with clickable elements to edit each property.

Shows: content, type, height, offsets, facing (non-PLAYER lines), scale (ENTITY and PLAYER lines), forced look toggle (PLAYER lines only), permission, and flags.