Jump to content

Recommended Posts

Posted (edited)

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

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

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

Announcements



×
×
  • Create New...

Important Information

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