Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

I want to change which liquids are "infinite" (like water is in vanilla). I see that in net.minecraft.block.BlockDynamicLiquid, the updateTick method includes the line "if (this.adjacentSourceBlocks >= 2 && this.blockMaterial == Material.WATER)", which seems to be how this is controlled. My question is the best way to change this behavior. Should I subclass BlockDynamicLiquid and try to replace all uses of it? Should I use coremod/ASM to change that to do something like "if (this.adjacentSourceBlocks >= 2 && someFunctionInMyMod(this, worldIn, pos, state))"?

  • 1 month later...

I just saw this on forge changelog and decided to comment here for the record

Build 1.10.2-12.18.1.2023:
josephcsible: Add CreateFluidSourceEvent to control infinite fluid sources
josephcsible: Add a test for CreateFluidSourceEvent
josephcsible: Use CreateFluidSourceEvent for mod fluids as well

 

this might aid you in your problem without the need of ASM

  • Author

I just saw this on forge changelog and decided to comment here for the record

Build 1.10.2-12.18.1.2023:
josephcsible: Add CreateFluidSourceEvent to control infinite fluid sources
josephcsible: Add a test for CreateFluidSourceEvent
josephcsible: Use CreateFluidSourceEvent for mod fluids as well

 

this might aid you in your problem without the need of ASM

Yes, I'd say that definitely aids me in my problem, considering I'm the one who wrote it :P

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.