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

Color dust particld

Comments in 'Plugin Development' started by TheMaks, Sep 29, 2015.

  1. TheMaks
    Offline

    TheMaks Active Member

    Joined:
    Jul 19, 2015
    Posts:
    58
    Minecraft User:
    TheMaks
    How mak random color for dust particles ?
  2. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    For how to spawn a particle, search the forums.
    For how to select a completely random color:
    PHP:
    $r mt_rand(0255);
    $g mt_rand(0255);
    $b mt_rand(0255);
  3. TheMaks
    Offline

    TheMaks Active Member

    Joined:
    Jul 19, 2015
    Posts:
    58
    Minecraft User:
    TheMaks
    What can you tell what color the figure represents?
  4. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    $r $g $b are the RGB representation of colors. For more info, Google it.
    CrazedMiner likes this.

Share This Page

Advertisement