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

How to use DustParticle

Discussion in 'General discussion' started by MusicNOvas, May 28, 2019.

  1. MusicNOvas

    MusicNOvas Spider Jockey

    Messages:
    43
    Code:
    ArgumentCountError: "Too few arguments to function pocketmine\level\particle\DustParticle::__construct(), 2 passed in /home/container/plugins/DustParticlePl/src/lx/sacre/DPL.php on line 564 and at least 4 expected" (EXCEPTION) in "src/pocketmine/level/particle/DustParticle" at line 29
    PHP:
    $position $playerPos->add(-0.51.4, -0.8);
    $player->getLevel()->addParticle(new DustParticle($position10), 255255255);
     
  2. XdmingXD

    XdmingXD Baby Zombie

    Messages:
    158
    GitHub:
    xdmingxd
    PHP:
    $player->getLevel()->addParticle(new DustParticle($position10255255255));
     
    HimbeersaftLP and wolfdale like this.
  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.