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

Arrow particle

Comments in 'Plugin Development' started by KHAV, Aug 10, 2016.

  1. KHAV
    Offline

    KHAV New Member

    Joined:
    Aug 7, 2016
    Posts:
    35
    Minecraft User:
    KHAV
    Hello guys i have question

    How i change. The arrow particle

    Is name particle: CriticalParticle

    I want to change this particle in arrow to angryvillagerparticle

    So how i can do this

    Please i want answer
  2. Primus
    Offline

    Primus Notable Member

    Joined:
    Apr 7, 2015
    Posts:
    1,470
    Minecraft User:
    PrimusLV
  3. KHAV
    Offline

    KHAV New Member

    Joined:
    Aug 7, 2016
    Posts:
    35
    Minecraft User:
    KHAV
  4. KHAV
    Offline

    KHAV New Member

    Joined:
    Aug 7, 2016
    Posts:
    35
    Minecraft User:
    KHAV
  5. corytortoise
    Offline

    corytortoise New Member

    Joined:
    Aug 23, 2015
    Posts:
    10
    Minecraft User:
    corytortoise
    Please provide an example of what you attempted to do this, as per the new forum rules. That helps anyone viewing this thread, therefore helping you.
  6. KHAV
    Offline

    KHAV New Member

    Joined:
    Aug 7, 2016
    Posts:
    35
    Minecraft User:
    KHAV
    He is give me this link but i don't know how i can use this code

    I tried but i don't know

    So if you know how i can use this code please tell me
  7. corytortoise
    Offline

    corytortoise New Member

    Joined:
    Aug 23, 2015
    Posts:
    10
    Minecraft User:
    corytortoise
    In theory, I think you would just change the type of particle used. However, I tested that on my server and had no success. It stayed the same Critical Particle. Perhaps it is something involving the client.

    If you have no idea about php or what you are trying to do, please look at the many many resources available to learn about Pocketmine and PHP. Nobody can help you if you can't help yourself.
  8. BSHRMG
    Offline

    BSHRMG New Member

    Joined:
    Mar 15, 2016
    Posts:
    21
    I guess one way to do it for me is download the carpet "src" and after I go where is "src/ pocketmine/entity/ Arrow.php
    And add for example
    PHP:
    use pocketmine\level\particle\HeartParticle;
    And after change to
    PHP:
    $this->level->addParticle(new HeartParticle($this->add(
                    
    $this->width mt_rand(-100100) / 500,
                    
    $this->height mt_rand(-100100) / 500,
                    
    $this->width mt_rand(-100100) / 500)));
    And make it phar I guess this should work I think xD
    Nawaf_Craft1b, DC4CODE and Primus like this.

Share This Page

Advertisement