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.

Aidiah

Members
  • Joined

  • Last visited

  1. Having another issue with getting the density, fluid 1 has a density of -1000, and fluid 2 has a density of -1500. However: int density = BlockFluidBase.getDensity(world, pos); and int density2 = BlockFluidBase.getDensity(world, pos2); are both being set to -1000 any ideas why? Edit: Also if fluid1 is on top of fluid2, they seem to be acting as the same block? When fluid two calls to see what is on top of it the check returns the density of the block above fluid1.
  2. Thanks, I was looking in the wrong places.
  3. I'm trying to figure out how to get the density of a fluid block in the world. I'd like to check it something like this: world.getFluidDensity(pos) But that obviously doesn't work. Also I'm working with finite fluids if that matters What is the best way to get a fluid block's density? Edit: Is it also possible to change a fluid blocks density?

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.