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

How can I create not falling dust particle?

Discussion in 'Development' started by Enes5519, Jun 17, 2018.

  1. Enes5519

    Enes5519 Spider Jockey

    Messages:
    28
    GitHub:
    Enes5519
    I want to create not falling dust particle. Is this possible in mcbe?
     
  2. Pab45O

    Pab45O Spider Jockey

    Messages:
    37
    GitHub:
    Pab450
    Hm "not falling dust" is approximately this, i think -> "RisingDust" (id 11)
    addParticle(new GenericParticle(new Vector3($x, $y, $z), 11));
     
  3. Enes5519

    Enes5519 Spider Jockey

    Messages:
    28
    GitHub:
    Enes5519
    I want colored.
     
  4. Pab45O

    Pab45O Spider Jockey

    Messages:
    37
    GitHub:
    Pab450
  5. Levi

    Levi Skeleton

    Messages:
    955
    GitHub:
    captainleviftw
  6. Pab45O

    Pab45O Spider Jockey

    Messages:
    37
    GitHub:
    Pab450
    no..
     
  7. Levi

    Levi Skeleton

    Messages:
    955
    GitHub:
    captainleviftw
    how do you do that
     
  8. Pab45O

    Pab45O Spider Jockey

    Messages:
    37
    GitHub:
    Pab450
    with packet and rgb
     
  9. Enes5519

    Enes5519 Spider Jockey

    Messages:
    28
    GitHub:
    Enes5519
    I found some particles.
    [​IMG]
    [​IMG]
     
  10. Pab45O

    Pab45O Spider Jockey

    Messages:
    37
    GitHub:
    Pab450
    They are already known..
     
  11. byyEmirhanWSD

    byyEmirhanWSD Witch

    Messages:
    50
    GitHub:
    EmirhanWSD
    Use www.w3schools.com/colors/colors_rgb.asp for calculate rgb colors.
    PHP:
    $r 1;
    $g 2;
    $b 3;
    $particle = new DustParticle(new Vector3(xyz), $r$g$b);
    Level->addParticle($particle);
     
  12. Enes5519

    Enes5519 Spider Jockey

    Messages:
    28
    GitHub:
    Enes5519
    -.- I want don't falling.
     
  13. xXNiceAssassinlo YT

    xXNiceAssassinlo YT Zombie Pigman

    Messages:
    499
    GitHub:
    xXNiceYT
    Make the y low
     
  14. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    You can't do it because the particle movements are client-sided, which means even if the server is lagging for you, the dust particle's movement will not be affected by the lag.
    In that video, the particle isn't moving. The entity is moving and a trail of particles are spawned at the position its moving to.
    The lifespan of some particles is very less so it may seem like the particle is moving.

    For colored dust particles, you can specify their RGB values.
    PHP:
    /** @var Vector3 $pos */
    /** @var int $r */
    /** @var int $g */
    /** @var int $b */
    new DustParticle($pos$r$g$b);
     
  15. wolfdale

    wolfdale Zombie Pigman

    Messages:
    535
    GitHub:
    diamond-gold
    Do you know how this is done? How did he manage to color other normally not color-able particles?
    https://twitter.com/supermaxalex/status/985461939227815936
     
  16. xXNiceAssassinlo YT

    xXNiceAssassinlo YT Zombie Pigman

    Messages:
    499
    GitHub:
    xXNiceYT
  17. Enes5519

    Enes5519 Spider Jockey

    Messages:
    28
    GitHub:
    Enes5519
  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.