TransWikia.com

How do you rename existing entities with a custom name?

Arqade Asked by Orez on January 8, 2021

I’m in the process of renaming all existing villagers to "Villager" in a server I manage (fairly new to admin stuff) but I do not know what code to use. I did find one before but it was kind of a stupid move for me to not bookmark it so now I can’t find it. All I know is that I need to use the /execute command.

One Answer

On 1.13+, it is:

/execute as @e[type=villager] run data merge entity @s {CustomName:""Bob""}

on 1.12− it is:

/entitydata @e[type=villager] {CustomName:Bob}

Answered by lawrencfgsdfg on January 8, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP