Saltar al contenido principal

Custom Marker Definition

The Custom Marker Definition allows you to create reusable marker templates. Define icon paths, colors, and behaviors once and reference them by ID in marker actions.

Configuration

markerIdString

Unique ID for this marker type.

displayNameString

Name shown when hovering over the marker on the map.

iconPathString

Path to texture in resource pack.

colorColor

Tint color for the icon.

iconSizeInteger

Size of the marker in pixels/map units.

showLabelBoolean

Whether to show the name label.

rotateWithMapBoolean

If true, icon rotates with the map. If false, it stays upright (usually preferred for icons).

clampToEdgeBoolean

If true, marker sticks to the edge of the map when the target is out of range.

pulseAnimationBoolean

Enable a pulsing size animation for visibility.

Usage

Reference this definition in a Minimap Marker Action using the customDefinition field.

config:
type: custom_marker
markerId: "quest_primary"
iconPath: "minimap/quest_yellow.png"
clampToEdge: true
pulseAnimation: true