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

FloatingTextParticle is not spawned

Discussion in 'Development' started by Kyd, Oct 9, 2017.

  1. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    PHP:
    $this->getServer()->getDefaultLevel()->addParticle(new \pocketmine\level\particle\FloatingTextParticle(new Vector3(0,62,-1),"§l§eTAP TO PLAY"));
    I'm doing this onEnable , but after I join I can't see particle..
     
  2. SkySeven

    SkySeven Baby Zombie

    Messages:
    145
    GitHub:
    SkySevenMC
    I think its the -1in y :)
     
  3. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    Are you sure it's in y? :D
    upload_2017-10-9_20-47-31.png
     
    SkySeven likes this.
  4. SkySeven

    SkySeven Baby Zombie

    Messages:
    145
    GitHub:
    SkySevenMC
  5. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    Yes and position 0,62,-1 is valid and If I do /tp 0,62,-1 It's not there so.. :D
     
  6. SkySeven

    SkySeven Baby Zombie

    Messages:
    145
    GitHub:
    SkySevenMC
    Why z = -1 ?
     
  7. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    I thought FloatingTextParticles were removed in 1.2
     
  8. Levi

    Levi Skeleton

    Messages:
    955
    GitHub:
    captainleviftw
    no
     
  9. SkySeven

    SkySeven Baby Zombie

    Messages:
    145
    GitHub:
    SkySevenMC
    No, why ?I use it.
     
  10. RoyalMCPE

    RoyalMCPE Slime

    Messages:
    87
    They weren't removed, entity naming was glitched in 1.2
     
  11. SkySeven

    SkySeven Baby Zombie

    Messages:
    145
    GitHub:
    SkySevenMC
    For me, no entity bug.
     
  12. themestl

    themestl Spider Jockey

    Messages:
    39
    GitHub:
    themestl
    Use human entity without skin, because floattextparticle is disappears.
     
    jasonwynn10 and rektpixel like this.
  13. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    I can't beceause I want to spawn text on top of entity, so if I spawn entity invisible entity it will block hitbox of my visible entity
     
  14. themestl

    themestl Spider Jockey

    Messages:
    39
    GitHub:
    themestl
    You can use nametag of this entity.
     
  15. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    I can't because if I do \n it then text will be on entities head and thats why I want to spawn floating text to make nametag higher , but don't block entities head.
     
  16. themestl

    themestl Spider Jockey

    Messages:
    39
    GitHub:
    themestl
    What about entity on this entity? You can use many \n
     
  17. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    Then hitbox of first entity will be blocked by second entity
     
  18. themestl

    themestl Spider Jockey

    Messages:
    39
    GitHub:
    themestl
    Hmm... FloatTextParticle isn't work and you haven't ways to correct it(I'm can mistake). Try another way, for example, you can place invisible entity next to entity.
     
  19. dktapps

    dktapps Administrator Staff Member PMMP Team

    Messages:
    774
    GitHub:
    dktapps
    tl;dr: much nonsense.

    only players who were online when you spawned the particle will be able to see it. If you want to additionally spawn it to players who joined later, you (currently) have to do so manually when the player joins.
     
    jasonwynn10 likes this.
  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.