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

Question about FloatingTextParticle

Discussion in 'Development' started by TwistedAsylumMC, Mar 13, 2018.

  1. TwistedAsylumMC

    TwistedAsylumMC Slime

    Messages:
    96
    GitHub:
    twistedasylummc
    with FloatingTextParticle, i was reading through the source code and saw this title thing after text.
    PHP:
     /**
      * @param Vector3 $pos
      * @param string $text
      * @param string $title
      */
     
    public function __construct(Vector3 $posstring $textstring $title ""){
      
    parent::__construct($pos->x$pos->y$pos->z);
      
    $this->text $text;
      
    $this->title $title;
     }
    PHP:
    Entity::DATA_NAMETAG => [Entity::DATA_TYPE_STRING$this->title . ($this->text !== "" "\n" $this->text "")],
    I tried adding another string into the floating text particle when spawning it, and nothing changed. Im confused what this "title" does, if anyone knows please reply.
     
  2. MioTaku

    MioTaku Witch

    Messages:
    69
    GitHub:
    uselesswaifu
    Title is the same thing as putting \n within the message
     
  3. TwistedAsylumMC

    TwistedAsylumMC Slime

    Messages:
    96
    GitHub:
    twistedasylummc
    i gathered, but it doesn't add any text, only what i enter first
     
  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.