Posted March 30, 20205 yr I am making a tank, I did some tests and the lava will render it correctly with its texture. The water, on the other hand, is shown with a gray texture. Anyone know why? What am I doing wrong? RenderTileDimTank.java GitHub
March 30, 20205 yr Water is biome-color-multiplied. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
March 30, 20205 yr Get the color of the fluid from either the FluidAttributes if you want it to be its default color or from the biome itself if you want the color to change depending on the biome. What you see are the default textures of water and lava. Lava is only ever one color and not affected by anything so having the texture only be what it is fine. Water changes color depending on the biome so it's represented as a gray texture file so it can be color mapped within the game using an overlay.
March 30, 20205 yr 1 hour ago, Edivad99 said: And why does lava work? Because lava isn't biome tinted? Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
March 30, 20205 yr Author 41 minutes ago, ChampionAsh5357 said: Get the color of the fluid from either the FluidAttributes if you want it to be its default color or from the biome itself if you want the color to change depending on the biome. What you see are the default textures of water and lava. Lava is only ever one color and not affected by anything so having the texture only be what it is fine. Water changes color depending on the biome so it's represented as a gray texture file so it can be color mapped within the game using an overlay. Could you tell me how to do it? I'm trying but nothing changes.
March 30, 20205 yr Author TextureAtlasSprite sprite = Minecraft.getInstance().getTextureMap().getSprite(still); int color = fluid.getFluid().getAttributes().getColor(fluid); GlStateManager.color4f((color >> 16 & 0xFF) / 255.0F, (color >> 8 & 0xFF) / 255.0F, (color & 0xFF) / 255.0F, (color >> 24 & 0xFF) / 255.0F);
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.