Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

FloatedTextParticle

Comments in 'Plugin Development' started by Asidert, May 4, 2015.

  1. Asidert
    Offline

    Asidert Active Member Plugin Developer

    Joined:
    Oct 21, 2014
    Posts:
    123
    Plugins:
    1
    Minecraft User:
    Asidert
    Hi, who know how to spawn it? (FloatedTextParticle)
  2. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,710
    Plugins:
    22
    Minecraft User:
    Falkirknh
    let $level be an instance of \pocketmine\Level
    let $x, $y and $z be coordinates in $level
    PHP:
    $level->addParticle(new FloatingTextParticle(new Vector3($x$y$z), "Hello World!"));
  3. Asidert
    Offline

    Asidert Active Member Plugin Developer

    Joined:
    Oct 21, 2014
    Posts:
    123
    Plugins:
    1
    Minecraft User:
    Asidert
  4. Asidert
    Offline

    Asidert Active Member Plugin Developer

    Joined:
    Oct 21, 2014
    Posts:
    123
    Plugins:
    1
    Minecraft User:
    Asidert
    Who know it too?
  5. iJoshuaHD
    Offline

    iJoshuaHD Notable Member Plugin Developer

    Joined:
    Nov 7, 2013
    Posts:
    1,201
    Plugins:
    4
    Minecraft User:
    iJoshuaHD
    do you know how to spawn FloatingTextParticle only to a certain player? thanks :D
  6. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,710
    Plugins:
    22
    Minecraft User:
    Falkirknh
    let $level be an instance of \pocketmine\level\Level
    let $x, $y and $z be coordinates in $level
    ley $player be an instance of \pocketmine\Player
    PHP:
    $level->addParticle(new FloatingTextParticle(new Vector3($x$y$z), "Hello World!"), [$player]);
    There is probably a better way though.
  7. iJoshuaHD
    Offline

    iJoshuaHD Notable Member Plugin Developer

    Joined:
    Nov 7, 2013
    Posts:
    1,201
    Plugins:
    4
    Minecraft User:
    iJoshuaHD
    oh thats how, thanks again :D
  8. xiaoq
    Offline

    xiaoq Active Member

    Joined:
    Dec 23, 2014
    Posts:
    232
    Minecraft User:
    xiaoq
    cool, now I can make Holography..

Share This Page

Advertisement