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

Render Other Color when in custom fluid


reasure
 Share

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.)

2021-08-21_15.34.23.png

2021-08-21_15.34.29.png

Edited by reasure
Link to comment
Share on other sites

Posted (edited)
@SubscribeEvent
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.

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.