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

ColorLeaves

Comments in 'Plugin Development' started by GamerXzavier, Oct 24, 2016.

  1. GamerXzavier
    Offline

    GamerXzavier New Member

    Joined:
    Oct 20, 2015
    Posts:
    7
    Minecraft User:
    GamerXzavier
    Heylo Everyone.

    I Need A Simple Code To Change The Oak Leaves To A Maple Color Or Crimson Red.

    The Last Time I Accidentally Make The Oak Leave Color To Pink , Its Was Like A Year Ago So I Dont Have The Code ..

    I Will Appreciate Your Help.
  2. Dog2puppy
    Offline

    Dog2puppy New Member

    Joined:
    Nov 30, 2015
    Posts:
    28
    Minecraft User:
    Dog2puppy
    I think this is done with biome colors.
  3. MyNameIsTriXz
    Offline

    MyNameIsTriXz Notable Member

    Joined:
    Aug 17, 2015
    Posts:
    538
    Minecraft User:
    MyNameIsTriXz
    Thats done through biome colors

    /biome pos1
    /biome pos2
    /biome color 0,255,0
  4. GamerXzavier
    Offline

    GamerXzavier New Member

    Joined:
    Oct 20, 2015
    Posts:
    7
    Minecraft User:
    GamerXzavier
    Itd Is Possible To Make A Code For It?
    Like When A Plugin OnLoad It Will Set The Biome To Specific Color.
  5. Blabla
    Offline

    Blabla Active Member

    Joined:
    Sep 19, 2015
    Posts:
    82
    Minecraft User:
    The_Beast_Inside
  6. MyNameIsTriXz
    Offline

    MyNameIsTriXz Notable Member

    Joined:
    Aug 17, 2015
    Posts:
    538
    Minecraft User:
    MyNameIsTriXz
    PHP:
    $minX 100;
    $minZ 100;
    $maxX 128;
    $maxZ 128;
    $c = [14618889];   //default biome grass color
    $level = <yourLevelObject>;


    for(
    $x $minX$x <= $maxX$x++){
    for(
    $z $minZ$z <= $maxZ$z++){

    $level->setBiomeColor($x$z$c[0], $c[1], $c[2]);


    }}
    Keep in mind that the biome color does not get changed for you directly, you need to rejoin to see the changes.
    xBeastMode and Blabla like this.
  7. xBeastMode
    Offline

    xBeastMode Active Member

    Joined:
    Nov 27, 2015
    Posts:
    292
    I recommend making a function rather than customized variables ;)
    GamerXzavier and MyNameIsTriXz like this.
  8. Dog2puppy
    Offline

    Dog2puppy New Member

    Joined:
    Nov 30, 2015
    Posts:
    28
    Minecraft User:
    Dog2puppy
    I got so many likes from that.

Share This Page

Advertisement