Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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?

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.

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.

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.