How To Change Dirty Water Texture?

I thought to make it more dull and shift hue to blue a little bit (or to red, to make it more dirty and torfy) since that contrast between common and swamp water sticks in the eyes, but I can’t find a way to do it. I didn’t find that texture in .minecraft/mods/gregtech_1.7.10-6.15.01.jar. If you could tell me how to do it, or even give me a texture pack with a default dirty-water texture so I can edit it, I would be grateful.

By the way, I already use a texture pack, which I found here, for more dull stones (especially for that void-black granite), and I suggest to change original textures to be like in that pack.

1 Like

And I know that I can simply turn off swamp colors in settings, but that’s not the point.

1 Like

I take the Vanilla Water Texture and make it greener, that is basically what I do, just like Vanilla does it with Biome Colors.

What for? Vanilla texture is better, imo. So how can I change it back to default color?

Also, speaking of contrasts, right now I’m mining pyrolusite in basalt—my eyes never had such a strain. Dark dull purple embeds in black.

I bet you can’t see it.


1 Like

It is all color and not texture based, so there will be coincidences where the ore is barely visible.

just like Vanilla does it with Biome Colors.

At first I thought you just changed color-map for swamp, as you said it. So I’d copied default resource pack from vanilla jar-file, loaded it and nothing changed. Then I changed water texture with no result again. So it is not simple water, it’s a different fluid, Dirty Water, with its own texture, but I can’t find it anywhere in your jar-file. I searched for dirt and swamp. Please, help me locate where it is.

1 Like

Again it is the Vanilla Water TEXTURE with a manually applied hardcoded Color. Yes it is its own dedicated Waterlike Block, but it still uses the vanilla Texture.

hardcoded

Now I understand. That’s sad. I guess I found it in main/java/gregtech/blocks/fluids/BlockSwamp.java, is that it:

@Override public int getRenderColor(int aMeta) {return 0x0000ff00;}
	
@Override
public int colorMultiplier(IBlockAccess aWorld, int aX, int aY, int aZ) {
  if (aWorld.getBlock(aX, aY+1, aZ) ==this) return 0x0000ff00;
  if (water(aWorld.getBlock(aX+1, aY, aZ))) return 0x0060ff60;
  if (water(aWorld.getBlock(aX-1, aY, aZ))) return 0x0060ff60;
  if (water(aWorld.getBlock(aX, aY, aZ+1))) return 0x0060ff60;
  if (water(aWorld.getBlock(aX, aY, aZ-1))) return 0x0060ff60;
  return 0x0000ff00;
}

Is color encoded in ARGB here? Or what does these first two zeroes mean? Are those 0x0060ff60 for block bordering common water, like on that screenshot above.

And do you remember what was the default color?

1 Like

Default is 0x00FFFFFF, because the Water Texture is normally Blue, so I had to overcompensate the green.

I finally managed to compile it. It took some time for me as I know nothing about Java. I used the default color just to see what it will look like. Everything is okay, except that I can’t load my world, but can create a new one. I guess it’s because of different versions, it’s 6.15.01-50-g0418316c-dirty on your Github, and I need just plain 6.15.01. Where could I get source code for this version?

1 Like

I’ve just found sources on your site, but I have no idea how to compile it. I’ve tried to replace src directory from the github repo with it, and then compile, but it yields an error.

1 Like

isn’t it a simple “./gradlew build” ?

There is no Gradle in that one. I think I downloaded a wrong one, just sources, and should have downloaded Dev.

UPD: No, there is no Gradle in this one too.

image

1 Like

I replaced src/main/java/gregtech and src/main/java/gregapi from your Github with the corresponding directories from sources I downloaded from your site. It’s compiled fine and my world can be loaded with it. The only minor problem is that it still displays its version as ‘dirty’.

Here is what I’ve got after several tries:


It’s hard to choose the right color, because I have no idea how it’s applied.

1 Like

Finally I can enjoy my swamp. It still doesn’t blend with that river well, and the only way to fix it is to loose its greenish color, but then it will not look like dirty water at all. Or add more if-statements there that will check for water around in a larger radius, but that would be clumsy.


It blends more nicely with ocean water.

1 Like