Skip to content

Modify Label Render

Power Type

Modifies the name label of the entity that has the power.

Type ID: eggolib:modify_label_render

Fields

Field Type Default Description
render_mode Render Mode "default" Determines how the name label of the entity is rendered.
text Text Component optional If specified, this text will be used to replace the content of the name label of the entity.
priority Integer 0 Determines the priority of the power. The power with the highest value will be used.

Examples

{
    "type": "eggolib:modify_label_render",
    "render_mode": "hide_partially"
}

This example will render the name label of the entity semi-transparently as if the entity is sneaking.

{
    "type": "eggolib:modify_label_render",
    "text": {
        "text": "[REDACTED]",
        "bold": true,
        "color": "black"
    }
}

This example will replace the content of the name label of the entity to [REDACTED] with the color black.