Skip to main content

EntityNameplateCustomization

A nameplate customization that is specialized for entities

warning

This page is a WIP. It contains all the information in Figura's documentation but we're working on adding more helpful descriptions.


Text

setText()

The text to use in this nameplate

setText(text)

Parameters:

NameTypeDescriptionDefault
textString--

Returns:

TypeDescription
NameplateCustomization-

Example:

nameplate.Entity:setText("Hi")

getText()

The text to use in this nameplate

getText()

Returns:

TypeDescription
String-

Example:

nameplate.Entity:getText()

setOutline()

Aliases: outline()

Sets whether or not the nameplate should have outline

Incompatible with "shadow"

setOutline(outline)

Parameters:

NameTypeDescriptionDefault
outlineBoolean--

Returns:

TypeDescription
EntityNameplateCustomizationReturns self for chaining

Example:

nameplate.Entity:setOutline(true)

hasOutline()

Gets whether or not the nameplate should have an outline

hasOutline()

Returns:

TypeDescription
Boolean-

Example:

nameplate.Entity:hasOutline()

setOutlineColor()

Aliases: outlineColor()

Sets the color used for the outline in the outline mode

setOutlineColor(color)

Parameters:

NameTypeDescriptionDefault
colorVector3--

Returns:

TypeDescription
EntityNameplateCustomizationReturns self for chaining

Example:

nameplate.Entity:setOutlineColor(100 / 255, 100 / 255, 100 / 255)

setShadow()

Aliases: shadow()

Sets whether or not the nameplate should have shadow

Incompatible with "outline"

setShadow(shadow)

Parameters:

NameTypeDescriptionDefault
shadowBoolean--

Returns:

TypeDescription
EntityNameplateCustomizationReturns self for chaining

Example:

nameplate.Entity:setShadow(true)

hasShadow()

Gets whether or not the nameplate should have shadow

hasShadow()

Returns:

TypeDescription
Boolean-

Example:

nameplate.Entity:hasShadow()

Nameplate Properties

setBackgroundColor()

Aliases: backgroundColor()

Sets the color of the nameplate background

If the alpha value is not given, it will use the vanilla value (as in the accessibility settings)

setBackgroundColor(rgba)

Parameters:

NameTypeDescriptionDefault
rgbaVector4--

Returns:

TypeDescription
EntityNameplateCustomizationReturns self for chaining

Example:

nameplate.Entity:setBackgroundColor(100 / 255, 100 / 255, 100 / 255)

getBackgroundColor()

Gets the set color of the nameplate background

getBackgroundColor()

Returns:

TypeDescription
Vector4-

Example:

nameplate.Entity:getBackgroundColor()

setLight()

Aliases: light()

Sets the light override value

Values are given from 0 to 15, indicating the block light and sky light levels you want to use

Passing nil will reset the lighting override

setLight(light)

Parameters:

NameTypeDescriptionDefault
lightVector2--

Returns:

TypeDescription
EntityNameplateCustomizationReturns self for chaining

Example:

nameplate.Entity:setLight(15, 15)

getLight()

Gets the lighting override value

getLight()

Returns:

TypeDescription
Vector2-

Example:

nameplate.Entity:getLight()

setPivot()

Aliases: pivot()

Sets the pivot of the nameplate, in world coordinates

setPivot(pivot)

Parameters:

NameTypeDescriptionDefault
pivotVector3--

Returns:

TypeDescription
EntityNameplateCustomizationReturns self for chaining

Example:

nameplate.Entity:setPivot(0, 3, 0)

getPivot()

Gets the pivot of the nameplate, in world coordinates

getPivot()

Returns:

TypeDescription
Vector3-

Example:

nameplate.Entity:getPivot()

setPos()

Aliases: pos()

Sets the position offset of the nameplate, in world coordinates

setPos(pos)

Parameters:

NameTypeDescriptionDefault
posVector3--

Returns:

TypeDescription
EntityNameplateCustomizationReturns self for chaining

Example:

nameplate.Entity:setPos(0, 1, 0)

getPos()

Gets the position offset of the nameplate, in world coordinates

getPos()

Returns:

TypeDescription
Vector3-

Example:

nameplate.Entity:getPos()

setScale()

Aliases: scale()

Sets the scale factor of the nameplate

setScale(scale)

Parameters:

NameTypeDescriptionDefault
scaleVector3--

Returns:

TypeDescription
EntityNameplateCustomizationReturns self for chaining

Example:

nameplate.Entity:setScale(2, 2, 2)

getScale()

Gets scale factor of the nameplate

getScale()

Returns:

TypeDescription
Vector3-

Example:

nameplate.Entity:getScale()

setVisible()

Aliases: visible()

Sets whether or not the nameplate should be rendered

setVisible(visible)

Parameters:

NameTypeDescriptionDefault
visibleBoolean--

Returns:

TypeDescription
EntityNameplateCustomizationReturns self for chaining

Example:

nameplate.Entity:setVisible(false)

isVisible()

Gets whether or not the nameplate should be rendered

isVisible()

Returns:

TypeDescription
Boolean-

Example:

nameplate.Entity:isVisible()