1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

how does Waypoint with the name of an entity?

Discussion in 'Development' started by YogaLose, May 11, 2021.

  1. YogaLose

    YogaLose Spider

    Messages:
    10
    Generating an entity in the xyz coordinate, that entity will have a name called "Here", so that the player knows where to go, if he gets lost somewhere in this world, he will follow that name until he reaches his destination, no matter how far he is, the name will appear, just for him.

    PHP:
    $position = new Vector3(1023070123);
    $nbt Villager::createBaseNBT($position);
    $point = new Villager($player->getLevelNonNull(), $nbt);
    $point->setNameTag("Here");
    $point->setNameTagAlwaysVisible(true);
    $point->spawnTo($player);
     
  2. minijaham

    minijaham Skeleton

    Messages:
    801
    GitHub:
    minijaham
    Why dont u just use floating text?
     
  3. YogaLose

    YogaLose Spider

    Messages:
    10
    I can't see the particle from far away
    i try
    PHP:
    $level $player->getLevel();
    $destine = new FloatingTextParticle($position,"""§7[§e§l!§r§7]");
    $level->addParticle($destine, [$player]);
     
    Last edited: May 12, 2021
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.