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

Clear floating text particle

Discussion in 'Facepalm' started by SergeyIvanov, Aug 9, 2017.

  1. SergeyIvanov

    SergeyIvanov Witch

    Messages:
    59
    GitHub:
    sergeyivanov14
    How to clear all floating text particles in the world?
     
  2. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    Depends on how the floating text particles were spawned
     
  3. SergeyIvanov

    SergeyIvanov Witch

    Messages:
    59
    GitHub:
    sergeyivanov14
    $p = all players in world
    PHP:
         $this->getServer()->getDefaultLevel()->addParticle(new FloatingTextParticle(new Vector3(1281.50128), """text3"), [$e->getPlayer()]);
     
  4. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    There is no $p at all.
     
  5. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
  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.