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

Solved DestroyBlockParticle error?

Discussion in 'Development' started by minijaham, Jan 15, 2021.

  1. minijaham

    minijaham Skeleton

    Messages:
    801
    GitHub:
    minijaham
    What is wrong with destroy block particle? Or am I doing it wrong?

    Code:
    PHP:
    $block->getLevelNonNull()->addParticle(new DestroyBlockParticle($block->add(0.5,0.5,0.5), $block));
    The code is supposed to generate block break particle for one block(in the coordinate), but it seems to have tons of blocks breaking at the same time in the same coordinate.

    What the heck is wrong with the code? Is it an error that can be fixed? It seems to work some times.

    It's doing this:
     
  2. minijaham

    minijaham Skeleton

    Messages:
    801
    GitHub:
    minijaham
  3. minijaham

    minijaham Skeleton

    Messages:
    801
    GitHub:
    minijaham
    Never mind. Fixed the issue.
     
  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.