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

Floating text particle

Comments in 'Plugin Development' started by Creeperface, Apr 12, 2016.

  1. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    I want to make logo of my server from floating text particle but particle looks wrong (only last line looks well) but why? Why are lines offset only to the right?
    Screenshot_2016-04-12-19-36-50.png
  2. Primus
    Offline

    Primus Notable Member

    Joined:
    Apr 7, 2015
    Posts:
    1,470
    Minecraft User:
    PrimusLV
    I had this problem too. Try to align each line with space.
    Creeperface likes this.
  3. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    Ok between each line is space 0.2 si maybe it must be more
  4. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    No still happens :/
  5. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    Probably it is an mcpe issue -,- Screenshot_2016-04-12-20-25-30.png
    ImagicalGamer likes this.
  6. tigerza118
    Offline

    tigerza118 Active Member

    Joined:
    Jan 31, 2015
    Posts:
    100
    Minecraft User:
    tigerza117
    use this
    PHP:
    public function spawnTo(Player $target){
            
    $pk = new AddPlayerPacket();
            
    $pk->uuid $this->uuid;
            
    $pk->username $this->name;
            
    $pk->eid $this->eid;
            
    $pk->$this->x;
            
    $pk->$this->y;
            
    $pk->$this->z;
            
    $pk->yaw 0;
            
    $pk->pitch 0;
            
    $pk->item $this->item;
            
    $pk->metadata =
                [
                    
    Entity::DATA_FLAGS => [Entity::DATA_TYPE_BYTE<< Entity::DATA_FLAG_INVISIBLE],
                    
    Entity::DATA_AIR => [Entity::DATA_TYPE_SHORT300],
                    
    Entity::DATA_SHOW_NAMETAG => [Entity::DATA_TYPE_BYTE1],
                    
    Entity::DATA_NO_AI => [Entity::DATA_TYPE_BYTE1]
                ];
            
    $target->dataPacket($pk);
        }
  7. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    It fix this issue? I have the same problem with popup / tip messages
  8. tigerza118
    Offline

    tigerza118 Active Member

    Joined:
    Jan 31, 2015
    Posts:
    100
    Minecraft User:
    tigerza117
  9. Primus
    Offline

    Primus Notable Member

    Joined:
    Apr 7, 2015
    Posts:
    1,470
    Minecraft User:
    PrimusLV
    Do you even know what this code does?

Share This Page

Advertisement