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

Entity Eror

Discussion in 'Development' started by Muhammed0232, Jul 11, 2018.

  1. Muhammed0232

    Muhammed0232 Spider Jockey

    Messages:
    38
    GitHub:
    Muhammed0232
    Code:

    PHP:
    <?php

    declare(strict_types=1);

    namespace 
    Muhammed0232\Entityler;

    use 
    pocketmine\entity\Living;

    class 
    Fireworks extends Living {

        public const 
    NETWORK_ID 72;
        public const 
    HEIGHT 0.25;
        public const 
    WIDTH 0.25;
        
       public function 
    initEntity(): void{
      
    parent::intEntity();
     }
      
      public function 
    getName(): string{
     return 
    "Fireworks";
     }
    }
    Eror:
    Pls Open Photo
     

    Attached Files:

  2. Sergey Dertan

    Sergey Dertan Silverfish

    Messages:
    18
    How do u create instance of compoundtag?
     
    Last edited: Jul 11, 2018
  3. Muhammed0232

    Muhammed0232 Spider Jockey

    Messages:
    38
    GitHub:
    Muhammed0232
    Pls create new Post Pls Don't spam
     
    Muqsit likes this.
  4. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    You need to specify the $width and $height class properties. By default, these properties have no value (and hence are null).
     
    Muhammed0232 likes this.
  5. Muhammed0232

    Muhammed0232 Spider Jockey

    Messages:
    38
    GitHub:
    Muhammed0232
    I've got it done But this is happening but it never disappears How do I make a sura then disappear How do I do it and I'm in the air How do I get to the air
     
  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.