#How to nametag an entity upon spawning

1 messages · Page 1 of 1 (latest)

bright mist
#

You did get an answer.

potent heath
#

You're going to have to use scripting as far as I know.

#

It would then be beneficial to post it here so future people can reference this.

#

Thanks for not giving back to the community 👍 .

bright mist
#
world.afterEvents.entitySpawn.subscribe(data => {
    const entity = data.entity

    if (entity.typeId === 'minecraft:creeper') {
        entity.nameTag = 'TEST'
    }
    
})