# SetEntityNameTag

TIP

  • setEntityNameTag(<entity_ID>, <nameTag>)
  • Sets the nametag of an entity.

# Parameters

  • <entity_ID> The entity ID as int
  • <nameTag> The nametag to set to the entity as string

# Example

1: $id$ = spawnEntity("Zombie", $world$, $x$, $y$, $z$)
2: setEntityNameTag($id$, 'Health: ' + getEntityHealth($id$))