setname
Jump to navigation
Jump to search
The setname
script command is used to set the display name for an entity. The localized name will be shown at the top of the screen when the mouse cursor or crosshair is hovering over the entity.
Usage
setname <textkey>
Context: Any Entity
Parameters:
Parameter | Type | Description |
---|---|---|
textkey |
text |
The localization key of the entity's new name |
The text key can optionally start and end with []
brackets, which are ignored.