Jump to content

Render Other Color when in custom fluid


Recommended Posts

If I go into lava, the screen turns red, but if I go into custom fluid, the screen changes as if I went into water.

(Custom fluid has water tag to act like water)

Is there a way to render a different color (white) when I go into the custom fluid?


+) Is there a way to act like water without having a water tag? (For example, when an entity goes into custom fluid, it slows down.)



Edited by reasure
Link to comment
Share on other sites

public static void renderBlockOverlay(final RenderBlockOverlayEvent event) {
  if (event.getPlayer().level.getFluidState(event.getBlockPos()).is(ModTags.Fluids.RUBBER)) {
  ReasureCraft.LOGGER.info("render Event!");
  // Render Overlay


What should I do?

Edited by reasure
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.

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


  • Create New...

Important Information

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