What's the point of spawning in a chicken if it's gonna be invisible..??? You first have to register the chicken entity then do PHP: $entity->setDataFlag(Entity::DATA_FLAGS, Entity::DATA_FLAG_INVISIBLE, true); to make the entity invisible. Then do PHP: $entity->setNameTagAlwaysVisible(True);$entity->setNameTag("CUSTOM NAME"); to make the entity have a custom name
PHP: $entity = new Zombie($this->getLevel(), Zombie::createBaseNBT($position));$entity->spawnToAll();