query(e, 'name')

View on GitHub

Syntax

query(entity, 'name', querye, display_name, querye, custom_name, querye, type)

String of entity name or formatted text in the case of display_name

query(e,'name')  => Leatherworker
query(e,'custom_name')  => null
query(e,'type')  => villager