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

Solved How to add Floating text ?

Discussion in 'Development' started by Notjblus, Jun 19, 2019.

  1. Notjblus

    Notjblus Spider Jockey

    Messages:
    28
    GitHub:
    JblusItsMe
    How could we add a floating text? from a config.yml or other?
     
  2. BayAlper10

    BayAlper10 Silverfish

    Messages:
    17
    GitHub:
    BayAlper10
    PHP:
    // To create the particle
     
    $ftext = new FloatingTextParticle(Vector3 $positionint $textstring $title);
     
    // To spawn it so players can see it:
     
    $level->addParticle($ftext);
    use pocketmine\level\particle\FloatingTextParticle;
     
  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.