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

Hoooowwww this ?!

Comments in 'Plugin Development' started by PmServer, Oct 14, 2016.

  1. PmServer
    Offline

    PmServer New Member

    Joined:
    May 7, 2015
    Posts:
    53
    Minecraft User:
    PmServer
    What is the code in the video that launched the stick if the Particle player dies?
  2. PmServer
    Offline

    PmServer New Member

    Joined:
    May 7, 2015
    Posts:
    53
    Minecraft User:
    PmServer
    Any help please?
  3. CraftYourBukkit
    Offline

    CraftYourBukkit Notable Member Plugin Developer

    Joined:
    Jan 20, 2015
    Posts:
    1,022
    Plugins:
    2
    Minecraft User:
    CraftYourBukkit
    I don't get what particle you need. "when the particle player dies"?

    Also, please be patient and don't post "Any help please" an hour after. When someone knows what you want, he will most likely help you.
  4. MyNameIsTriXz
    Offline

    MyNameIsTriXz Notable Member

    Joined:
    Aug 17, 2015
    Posts:
    538
    Minecraft User:
    MyNameIsTriXz
    Not sure what you mean exactly...
    Do you mean the black particles which are launched in the player's line of sight?
    If it's what you want:
    PHP:
    $dist 10;
    // the length in blocks of the particle line
    $rep 1;
    // the distance in blocks each particle should have to the other
    $p = <Your player object>;

    for(
    $i 0$i <= $dist$i += $rep){

    $p->getLevel()->addParticle(new DustPartcile(new Vector3($p->$p->getDirectionVector()->$i$p->$p->getDirectionVector()->$i$p->$p->getDirectionVector()->$i), 000));

    }

    Uses:

    PHP:
    use pocketmine\level\particle\DustParticle;
    use 
    pocketmine\math\Vector3;

  5. xBeastMode
    Offline

    xBeastMode Active Member

    Joined:
    Nov 27, 2015
    Posts:
    292
    You mean how to launch particles from a stick that damage the player within the rage of the particles?
  6. Thunder33345
    Offline

    Thunder33345 Notable Member

    Joined:
    Apr 3, 2014
    Posts:
    755
    Minecraft User:
    Thunder33345
    please give us exact time stamp we cant just watch the whole 3min video to figure out what you mean
    thanks
    Primus likes this.

Share This Page

Advertisement