Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Water Color "Aqua"


Arendium
 Share

Recommended Posts

Hello, i would the html color "Aqua" but my water don't change the color right now

 

HTML Color code: aqua 0,255,255 #00ffff 180 100 50

http://www.mediaevent.de/tutorial/farbcodes.html

 

So i tried this:

 

package hdr.dimension.biome;

import hdr.MainData;
import net.minecraft.block.Block;
import net.minecraft.world.biome.BiomeGenBase;

public class BiomGenRohan extends BiomeGenBase
{
public BiomGenRohan(int par1)
    {
        super(par1);
        this.spawnableMonsterList.clear(); //this part
        this.spawnableCreatureList.clear(); //this part
        this.spawnableWaterCreatureList.clear(); //this part
        this.spawnableCaveCreatureList.clear(); //this part
        this.topBlock = (byte)Block.grass.blockID;
        this.fillerBlock = (byte)MainData.RohanLehmBlock.blockID;
        this.theBiomeDecorator.treesPerChunk = -999;
        this.waterColorMultiplier = 0x00FFFF;
        this.setColor(0xFFEE03);
        this.biomeName = "Rohan";
    }
    public int getBiomeGrassColor()
    {
    return 0xFFEE03;
    }
    public int getSkyColorByTemp(float par1)
    {
    return 0xF5ED7A;
    }    
}

 

Can anyone help me?

Link to comment
Share on other sites

The problem about setting the water's color is that it gets multiplied by the value you define, hence the name waterColorMultiplier. Water is default blue (0x0000FF, it's not true but let's say that), you define a color multiplier of 0x00FFFF.

The end result would be 0x0000FF * 0x00FFFF -> 0x0000FF

If you would define a multiplier of 0x000000 then it would be 0x0000FF * 0x000000 -> 0x000000

or if 0x008080 then 0x0000FF * 0x008080 -> 0x000080

 

For easier understanding you can always look at those hex values like rgb values:

0x0000FF = rgb(0,0,255)

0xFF0000 = rgb(255,0,0)

Thus 0x0000FF * 0xFF0000 = rgb(0*255, 0*0, 255*0) = rgb(0,0,0)

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

Link to comment
Share on other sites

okay can you please say me what i can use for a aqua color blue?

 

There's nothing you can do except replacing the water texture, but that would affect any water.

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.