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. A position past the last line appends the line at the end.

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. If the new content is another line type (for example text to #ICON:) and the line still had the old type's default height, it takes the new type's default height; a height you set yourself is kept.

add, insert, set and hologram create warn in chat when an #ICON: line names an unknown item or has unreadable NBT.

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 space (band) a line takes. Range: 0.0-5.0.

Line Type Default Height
Text 0.3 (config defaultTextHeight)
Icon 0.6 (config defaultIconHeight)
Head 0.75 (config defaultHeadHeight)
Small Head 0.6 (config defaultSmallHeadHeight)
Entity 1.0
Player 2.3

Lines stack top-down in the order they are written (bottom-up if downOrigin is true), each in a band of its own height. A text line sits at the top of its band; an icon, head, entity or NPC stands at the bottom of its band, so a larger height gives it more room above. A height of 0 puts the next line at the same height, so the two overlap. See Line Types.

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). Only #ENTITY lines turn; text, icon, head and #PLAYER lines ignore it.

Set to -1 (any negative value) 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 entityScaleAttribute is empty, this command is refused. If it names an attribute that no installed mod provides, the command still succeeds but nothing is scaled.

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. Only DISABLE_PLACEHOLDERS and DISABLE_ANIMATIONS work on a line; DISABLE_UPDATING and DISABLE_ACTIONS are refused here and go on the hologram (/mh hologram addflag).

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. Requires Taterzens 1.9.6 to 1.9.x.

/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; click a property to put its edit command in your chat box (the forced look toggle runs at once).

Shows: content, type, height, offsets, facing (non-PLAYER lines), scale (ENTITY and PLAYER lines), forced look toggle (PLAYER lines only), permission, and flags (unknown flag names from the file are listed separately).