Skip to content

Ways to change isInfinite of fluids in different dimension #1930

Discussion options

You must be logged in to vote

The method I can think of is to override the isInfinite() method inside FlowableFluid class via mixin and change all the places where it appears.

In vanilla it is only used in one place - FlowableFluid.getUpdateState() where it checks it alongside

  • there are 2 or more horizontal still blocks
  • a still block in the down direction.

To me this looks like it would be a candidate for a Fabric API event.
I also don't see the architectury api providing in its compatibility layer.

I know forge has such an event - see CreateFluidSourceEvent here:
https://github.com/MinecraftForge/MinecraftForge/blob/1.18.x/src/main/java/net/minecraftforge/event/world/BlockEvent.java.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by theAfish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants