I have tryed to update entity's using NBT tags but when i try to do that i have a problem, every update that task do i have a new entity on that world, anyone know how to spawn only 1 entity and then every task update, updates his(entity) nametag and skin? can enyone give me an example? i think this bug are because i use Entity::createEntity on task, but i don't know how to fix the NPC whitout using this.
Yes i want to spawn a Human entity, did you know how to spawn when Enable server and then update every second in task that Human but whitout every second spawn another one..?
Create a task and use entity->setNameTag("New name tag") to set/change the name tag. To update the skin, use entity->setSkin() and then call entity->sendSkin(entity->getViewers())