Jump to content

Aidiah

Members
  • Posts

    3
  • Joined

  • Last visited

Aidiah's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  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?
×
×
  • Create New...

Important Information

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